See your GL header GL/gl.h this is were you will find most defines as per OGL 1.2 ( maybe 1.4), after that you have to look in the extension headers
_____ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David _ Sent: Wednesday, June 18, 2008 8:15 AM To: osg-users@lists.openscenegraph.org Subject: [osg-users] question about osg::image Hi i´ve created an osg::image and i want to call the method allocateImage to allocate memory for the image data void allocateImage <http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a01 233.html#a12> (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 _____ Tecnología, moda, motor, viajes,.suscríbete a nuestros boletines para estar siempre a la última MSN Newsletters <http://newsletters.msn.com/hm/maintenanceeses.asp?L=ES&C=ES&P=WCMaintenance &Brand=WL&RU=http%3a%2f%2fmail.live.com>
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org