Login  Register

Re: JOGL GL2.GL_REPEAT

Posted by Demoscene Passivist on Nov 07, 2011; 3:09pm
URL: https://forum.jogamp.org/JOGL-GL2-GL-REPEAT-tp3483478p3487249.html

To be honest I can't understand the whole point here. Theres nothing wrong with the JOGL Texture class regarding GL_REPEAT texure wrapping. The code I postet before as a simple example works fine, and I've used the Texture class setTexParameterf() dozends of times in conjunction with GL_REPEAT. It exactly does what it's supposed to do.

Sure maybe the code u posted doesn't work (haven't tested it), but I think u are looking at the wrong place here regarding ur texture wrapping bug, even though changing stg with the texture loading fixed ur problem.

Please don't misunderstand my comment here, it is in no way meant to be discouraging ur efforts, but I think ur chasing ghosts by picking up on the Texture class.

ps. Maybe if u need some example code on how to use the Texture class or e.g. load a texture directly via bytebuffers u may have a look at my TextureUtils.java.