Hi
i´ve created an osg::image and i want to call the method allocateImage to
allocate memory for the image data
void allocateImage (int s, int t, int r, GLenum pixelFormat, GLenum type, int
packing=1)
my problem is that i can´t find a list of valid GLenum pixelFormat values and
the same for GLenum type
in the osg::image header file i can see this macros declared at the beginning
#define GL_BGR 0x80E0
#define GL_BGRA 0x80E1
#define GL_UNSIGNED_BYTE_3_3_2 0x8032
#define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362
#define GL_UNSIGNED_SHORT_5_6_5 0x8363
#define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364
#define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
#define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365
#define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
#define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366
#define GL_UNSIGNED_INT_8_8_8_8 0x8035
#define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367
#define GL_UNSIGNED_INT_10_10_10_2 0x8036
#define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368
i want to create RGBA, RGB and Alpha (1byte per pixel) images and don´t know
which parameters to use
i guess that the pixel format is GL_BGR and GL_BGRA for the first two ones, but
no idea of how to declare a just alpha image
what is the GLenum type parameter???
thanks
_________________________________________________________________
MSN Noticias
http://noticias.msn.es/comunidad.aspx
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org