|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: Dynamic arrays
> What are the ranges for these integers? I thought rgb values went from 0-1, > which makes for very simple colors if you can only use integers. Here's the list. Derold void glColor3b( GLbyte red, any signed byte value GLbyte green, GLbyte blue ); void glColor3d( GLdouble red, any signed double value GLdouble green, GLdouble blue ); void glColor3f( GLfloat red, float from 0.0 to 1.0 GLfloat green, GLfloat blue ); void glColor3i( GLint red, any signed integer value(machine dependent, on mine it's 32bit) GLint green, GLint blue ); void glColor3s( GLshort red, any signed short integer(usually half the integer size) GLshort green, GLshort blue ); add a u before the descriptor to use unsigned what have yaw void glColor3ub( GLubyte red, GLubyte green, GLubyte blue ); void glColor3ui( GLuint red, GLuint green, GLuint blue ); void glColor3us( GLushort red, GLushort green, GLushort blue ); ================================================================= The GameProgrammer.Com mailing list is for the open discussion of any topic related to the art, science, and business of programming games. This list is especially tolerant of beginners. We were all beginners once To SUBSCRIBE or UNSUBSCRIBE please visit: http://gameprogrammer.com/mailinglist.html
|
|