Login  Register

Re: Using OpenGl extensions in JOGL.

Posted by Xerxes Rånby on Feb 04, 2014; 10:44am
URL: https://forum.jogamp.org/Using-OpenGl-extensions-in-JOGL-tp4031433p4031434.html

Like you said you can check if the extension is available using:
gl.isExtensionAvailable("GL_ARB_texture_non_power_of_two")

Then please look at the specification of the extension:
http://www.opengl.org/registry/specs/ARB/texture_non_power_of_two.txt
" There is no additional procedural or enumerant api introduced by this extension except that an implementation which exports the extension string will allow an application to pass in texture dimensions for the 1D, 2D, cube map, and 3D targets that may or may not be a power of two. "

Thats how you use it.


2014-02-04 anandcta123 [via jogamp] <[hidden email]>:
Hi,

I am rendering non-power-of-two textures using glTextureImage2D with GL_TEXTURE_2D. But I understood that textures will operate as power of two textures. So I learnt about GL_ARB_texture_non_power_of_two, but if I try to use this with OpenGL, I am not found this extension macro with the GL2 class. If I call isExtensionAvailable. it returns true. Please tell me how I can use this extension with JOGL.

If not possible. Give suggestions to use Non-power-of-two textures.

Thanks and Regards,
Anand


If you reply to this email, your message will be added to the discussion below:
http://forum.jogamp.org/Using-OpenGl-extensions-in-JOGL-tp4031433.html
To start a new topic under jogl, email [hidden email]
To unsubscribe from jogamp, click here.
NAML