PDA

View Full Version : Cubemap Vertex Array



razor
03-07-2002, 06:56 PM
how do i go about specifying a cubemap texture for use in a vertex array?

ie, what is the cubemap alternative to the following code:

glClientActiveTextureARB (GL_TEXTURE0_ARB);
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
glTexCoordPointer(2, GL_FLOAT, 0, coords);

zeckensack
03-07-2002, 07:28 PM
glEnable(GL_TEXTURE_CUBE_MAP_ARB);
glTexCoordPointer(3, GL_FLOAT, 0, coords);