problem solved

thanks

> Date: Wed, 18 Jun 2008 14:25:58 +0200
> From: [EMAIL PROTECTED]
> To: [email protected]
> Subject: Re: [osg-users] question about osg::image
> 
> Hi David,
> 
> You could take a look at an OpenGL manual page/examples since the same 
> parameters need to be used for osg.
> 
> regards
> Raymond
> 
> 
> David _ wrote:
> > 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/a01233.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
> > [email protected]
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >   
> 
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_________________________________________________________________
MSN Noticias
http://noticias.msn.es/comunidad.aspx
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to