Open GoogleCodeExporter opened 9 years ago
It seems GL_TEXTURE_3D has been split off into it's own Texture3D class, so it
makes sense for any changes to be for a new Texture1D class.
The image blit_to_texture methods would also have to be updated to handle
glTexImage1D instead of glTexImage2d/3d as it is now.
Original comment by adam.lw....@gmail.com
on 9 Sep 2012 at 9:29
I've modified pyglet.image.Texture in a fork on Github.
https://github.com/adamlwgriffiths/Pyglet/commit/f00fed3bb8f7a4fc8be57e6307feef8
58da8ed34
It may not be the best way to do it.
Original comment by adam.lw....@gmail.com
on 13 Sep 2012 at 2:53
I'm not sure if there are more 1D 'target' types apart from GL_TEXTURE_1D.
I have to take into account that there are many 2D types, not just
GL_TEXTURE_2D.
Hence, most code is:
if target != GL_TEXTURE_2D:
do 1D stuff
Honestly, the image module needs a bit of refactoring. But it's working at the
moment so it's obviously a low priority =)
Original comment by adam.lw....@gmail.com
on 13 Sep 2012 at 2:55
Original comment by useboxnet
on 21 Sep 2013 at 10:52
Original issue reported on code.google.com by
adam.lw....@gmail.com
on 9 Sep 2012 at 8:52