google-code-export / pyglet

Automatically exported from code.google.com/p/pyglet
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

No support for float images / textures #606

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Image and Texture support:
GL_RGBA
GL_RGB
GL_LUMINANCE_ALPHA
GL_ALPHA
GL_LUMINANCE
GL_INTENSITY

But there is no support for float textures.

GLETools (for pyglet) supports Float textures.
http://hg.codeflow.org/gletools/file/da011bbc16d0/gletools/texture.py
I believe the license is APL.

Original issue reported on code.google.com by adam.lw....@gmail.com on 14 Sep 2012 at 4:46

GoogleCodeExporter commented 9 years ago
Correction, I listed the wrong fields.
I shouldve listed:
GL_UNSIGNED_BYTE
GL_UNSIGNED_INT_8_8_8_8_REV

There is no GL_FLOAT

Original comment by adam.lw....@gmail.com on 14 Sep 2012 at 4:48

GoogleCodeExporter commented 9 years ago
License is AGLP sorry, not APL =P

Original comment by adam.lw....@gmail.com on 14 Sep 2012 at 5:05

GoogleCodeExporter commented 9 years ago
I find the coupling between Image and Texture to be cumbersome.
The workflow of creating an image from bytes (rather than loading) is 
inefficient.
It seems to be trying to black box the process instead of expose convenience 
functions.
It would be better to do something more like GLETools texture does.

I'm sure you can already do this using GL commands rather than Image.blit_to, 
etc.
But it's just not clear from the docs how to do about this.

Original comment by adam.lw....@gmail.com on 14 Sep 2012 at 5:07