android - Nexus One GL_FRAMEBUFFER_OES Extension... Not actually there? -


I am porting an iPhone app to Android, and I need to use Open Framebuffers. I call a Nexus One, and GlGet (GL_EXTENSIONS) to indicate that the Nexus One supports the same framebuffer extension as the iPhone. However, I can not see openGL extension-related tasks to call in my GLSurfusWhite. When I call a simple framebuffer function, I get an UnsupportedOperationException.

I can not solve this problem, and I should continue the development of the framebuffers. Do I need to pass some options when the OpenGL reference is created to get the fully capable OpenGL reference object? Here's the block of code I'm trying to run which defines the capabilities of the hardware, it claims to support the extension (and my GL object is an example of GL11ExtensionPack, but glGetFramebufferAttachmentParameterivOES calls to an UnsupportedOperationException Fails.

  Public Zero runEnvironmentTests () {string extension = gl.glGetString GL11 .GL_EXTENSIONS}; Log D. ("Layers Graphics", Extensions); If (gl example GL11ExtensionPack) {log d. ("Layers Graphics", "GL 11 Extensions Pack Supported"); GL 11 ExtensionPak G = (GL 11 ExtensionPak) GL; Int [] r = new int [1]; Try {g.glGetFramebufferAttachmentParameterivOES (GL11ExtensionPack.GL_FRAMEBUFFER_OES, GL11ExtensionPack.GL_COLOR_ATTACHMENT0_OES, L11.GL_TEXTURE_2D, R., 0); Log D. ("Layers graphics", "framebuffers are supported"); } Hold (unsupported exception e) {e.printStackTrace (); Framebuffers supported = false; Log D. ("Layers graphics", "framebuffers are not supported"); }}}  

Anyone has successfully used GL_FRAMEBUFFERS_OES extension, please let me know. I am thinking that this can not be implemented in Java API!

Currently there is a bug that is impossible to implement Java versions of these functions in Android. The only way to use these extension functions at this time is to use NDK.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -