[osg-users] Glenum pixelFormat

2008-04-08 Thread Vincent Bourdier
Hi All,

I'm trying to make a osg::Image, but in allocateImage(...) and setImage(...)
I need :

Pixel format,
Internal texture format,
AllocationMode...

But I didn't find any possible values ?!

Where can I find it ?

thanks

Regards,
   Vincent.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Glenum pixelFormat

2008-04-08 Thread Robert Osfield
Hi Vincent,

The format values are OpenGL enums.  For examples have a look at the plugins
that load osg::Images.

Robert.

On Tue, Apr 8, 2008 at 1:54 PM, Vincent Bourdier [EMAIL PROTECTED]
wrote:

 Hi All,

 I'm trying to make a osg::Image, but in allocateImage(...) and
 setImage(...) I need :

 Pixel format,
 Internal texture format,
 AllocationMode...

 But I didn't find any possible values ?!

 Where can I find it ?

 thanks

 Regards,
Vincent.

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Glenum pixelFormat

2008-04-08 Thread Guy
Here is what I've found in gl.h:

 

 

 

/* PixelFormat */

#define GL_COLOR_INDEX0x1900

#define GL_STENCIL_INDEX  0x1901

#define GL_DEPTH_COMPONENT0x1902

#define GL_RED0x1903

#define GL_GREEN  0x1904

#define GL_BLUE   0x1905

#define GL_ALPHA  0x1906

#define GL_RGB0x1907

#define GL_RGBA   0x1908

#define GL_LUMINANCE  0x1909

#define GL_LUMINANCE_ALPHA0x190A

 

/* texture */

#define GL_ALPHA4 0x803B

#define GL_ALPHA8 0x803C

#define GL_ALPHA120x803D

#define GL_ALPHA160x803E

#define GL_LUMINANCE4 0x803F

#define GL_LUMINANCE8 0x8040

#define GL_LUMINANCE120x8041

#define GL_LUMINANCE160x8042

#define GL_LUMINANCE4_ALPHA4  0x8043

#define GL_LUMINANCE6_ALPHA2  0x8044

#define GL_LUMINANCE8_ALPHA8  0x8045

#define GL_LUMINANCE12_ALPHA4 0x8046

#define GL_LUMINANCE12_ALPHA120x8047

#define GL_LUMINANCE16_ALPHA160x8048

#define GL_INTENSITY  0x8049

#define GL_INTENSITY4 0x804A

#define GL_INTENSITY8 0x804B

#define GL_INTENSITY120x804C

#define GL_INTENSITY160x804D

#define GL_R3_G3_B2   0x2A10

#define GL_RGB4   0x804F

#define GL_RGB5   0x8050

#define GL_RGB8   0x8051

#define GL_RGB10  0x8052

#define GL_RGB12  0x8053

#define GL_RGB16  0x8054

#define GL_RGBA2  0x8055

#define GL_RGBA4  0x8056

#define GL_RGB5_A10x8057

#define GL_RGBA8  0x8058

#define GL_RGB10_A2   0x8059

#define GL_RGBA12 0x805A

#define GL_RGBA16 0x805B

#define GL_TEXTURE_RED_SIZE   0x805C

#define GL_TEXTURE_GREEN_SIZE 0x805D

#define GL_TEXTURE_BLUE_SIZE  0x805E

#define GL_TEXTURE_ALPHA_SIZE 0x805F

#define GL_TEXTURE_LUMINANCE_SIZE 0x8060

#define GL_TEXTURE_INTENSITY_SIZE 0x8061

#define GL_PROXY_TEXTURE_1D   0x8063

#define GL_PROXY_TEXTURE_2D   0x8064

 

For internal texture format there are also definitions in osg/Texture

 

In osg/Image:

 

enum AllocationMode {

NO_DELETE,

USE_NEW_DELETE,

USE_MALLOC_FREE

};

 

Good luck,

 Guy.



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Vincent
Bourdier
Sent: Tuesday, April 08, 2008 2:55 PM
To: osg
Subject: [osg-users] Glenum pixelFormat

 

Hi All,

I'm trying to make a osg::Image, but in allocateImage(...) and
setImage(...) I need :

Pixel format, 
Internal texture format, 
AllocationMode...

But I didn't find any possible values ?!

Where can I find it ?

thanks

Regards,
   Vincent.

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Glenum pixelFormat

2008-04-08 Thread Vincent Bourdier
Thanks Guy

I've looked at gl.h too to find that.

Thanks a lot.

Regard.
   Vincent.

2008/4/8, Guy [EMAIL PROTECTED]:

  Here is what I've found in gl.h:







 /* PixelFormat */

 #define GL_COLOR_INDEX0x1900

 #define GL_STENCIL_INDEX  0x1901

 #define GL_DEPTH_COMPONENT0x1902

 #define GL_RED0x1903

 #define GL_GREEN  0x1904

 #define GL_BLUE   0x1905

 #define GL_ALPHA  0x1906

 #define GL_RGB0x1907

 #define GL_RGBA   0x1908

 #define GL_LUMINANCE  0x1909

 #define GL_LUMINANCE_ALPHA0x190A



 /* texture */

 #define GL_ALPHA4 0x803B

 #define GL_ALPHA8 0x803C

 #define GL_ALPHA120x803D

 #define GL_ALPHA160x803E

 #define GL_LUMINANCE4 0x803F

 #define GL_LUMINANCE8 0x8040

 #define GL_LUMINANCE120x8041

 #define GL_LUMINANCE160x8042

 #define GL_LUMINANCE4_ALPHA4  0x8043

 #define GL_LUMINANCE6_ALPHA2  0x8044

 #define GL_LUMINANCE8_ALPHA8  0x8045

 #define GL_LUMINANCE12_ALPHA4 0x8046

 #define GL_LUMINANCE12_ALPHA120x8047

 #define GL_LUMINANCE16_ALPHA160x8048

 #define GL_INTENSITY  0x8049

 #define GL_INTENSITY4 0x804A

 #define GL_INTENSITY8 0x804B

 #define GL_INTENSITY120x804C

 #define GL_INTENSITY160x804D

 #define GL_R3_G3_B2   0x2A10

 #define GL_RGB4   0x804F

 #define GL_RGB5   0x8050

 #define GL_RGB8   0x8051

 #define GL_RGB10  0x8052

 #define GL_RGB12  0x8053

 #define GL_RGB16  0x8054

 #define GL_RGBA2  0x8055

 #define GL_RGBA4  0x8056

 #define GL_RGB5_A10x8057

 #define GL_RGBA8  0x8058

 #define GL_RGB10_A2   0x8059

 #define GL_RGBA12 0x805A

 #define GL_RGBA16 0x805B

 #define GL_TEXTURE_RED_SIZE   0x805C

 #define GL_TEXTURE_GREEN_SIZE 0x805D

 #define GL_TEXTURE_BLUE_SIZE  0x805E

 #define GL_TEXTURE_ALPHA_SIZE 0x805F

 #define GL_TEXTURE_LUMINANCE_SIZE 0x8060

 #define GL_TEXTURE_INTENSITY_SIZE 0x8061

 #define GL_PROXY_TEXTURE_1D   0x8063

 #define GL_PROXY_TEXTURE_2D   0x8064



 For internal texture format there are also definitions in osg/Texture



 In osg/Image:



 enum AllocationMode {

 NO_DELETE,

 USE_NEW_DELETE,

 USE_MALLOC_FREE

 };



 Good luck,

  Guy.
  --

 *From:* [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] *On Behalf Of *Vincent
 Bourdier
 *Sent:* Tuesday, April 08, 2008 2:55 PM
 *To:* osg
 *Subject:* [osg-users] Glenum pixelFormat



 Hi All,

 I'm trying to make a osg::Image, but in allocateImage(...) and
 setImage(...) I need :

 Pixel format,
 Internal texture format,
 AllocationMode...

 But I didn't find any possible values ?!

 Where can I find it ?

 thanks

 Regards,
Vincent.

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org