Web site domain - Page 298 OpenGL Super Bible! Each element in

Page 298 OpenGL Super Bible! Each element in the array must be of the same type. When the alpha component is not specified, it is implicitly set to 1.0. When non-floating point types are specified, the range from zero to the largest value represented by that type is mapped to the floating point range 0.0 to 1.0. Parameters red Specifies the red component of the color. green Specifies the green component of the color. blue Specifies the blue component of the color. alpha Specifies the alpha component of the color. Used only in variations that take four arguments. *v A pointer to an array of red, green, blue, and possibly alpha values. Returns None. Example The following code from the CCUBE example in this chapter sets one of the corners of the color cube to white. // Front face glBegin(GL_POLYGON); // White glColor3ub((GLubyte) 255, (GLubyte)255, (GLubyte)255); glVertex3f(50.0f,50.0f,50.0f); See Also glIndex
From our experience, we can recommend PHP Web Hosting services, if you need affordable webhost to host and run your web application.

Leave a Reply