Hallo.
I am reffering to this code:
http://www.java-gaming.org/forums/index.php?topic=6286.0
answer by nnevatie.
I have modified the code for GL_TEXTURE_RECTANGLE_EXT to GL_TEXTURE_2D by
- writing 2D instead of RECTANGLE_EXT and
- do dimensions to 2^n and
- modified texcoord to range [0,1]: just changed the 2 following ranges from vertex and texcoord.
Problem: He just draws me the clear color and not my correct picture.
I have a 300300 window
I have rendered differently: 256256 or 512*512 and combinations of them, none do work.
Is there a problem with CopyTexImage?
I used both: copytexsubimage and copyteximage. same problem: black screen when drawing the texture.