GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


Manpage of GLINTERLEAVEDARRAYS

GLINTERLEAVEDARRAYS

Index
 

NAME

glInterleavedArrays - simultaneously specify and enable several interleaved arrays

 

C SPECIFICATION

void f3glInterleavedArraysfP( GLenum fIformatfP,
f2formatfP
Specifies the type of array to enable. Symbolic constants
%f3GL_V2FfP,
%f3GL_V3FfP,
%f3GL_C4UB_V2FfP,
%f3GL_C4UB_V3FfP,
%f3GL_C3F_V3FfP,
%f3GL_N3F_V3FfP,
%f3GL_C4F_N3F_V3FfP,
%f3GL_T2F_V3FfP,
%f3GL_T4F_V4FfP,
%f3GL_T2F_C4UB_V3FfP,
%f3GL_T2F_C3F_V3FfP,
%f3GL_T2F_N3F_V3FfP,
%f3GL_T2F_C4F_N3F_V3FfP,
and
%f3GL_T4F_C4F_N3F_V4FfP
are accepted. 
f2stridefP
Specifies the offset in bytes between each aggregate array element.
 

DESCRIPTION

%f3glInterleavedArraysfP lets you specify and enable individual color, normal, texture and vertex arrays whose elements are part of a larger aggregate array element. For some implementations, this is more efficient than specifying the arrays separately. If f2stridefP is 0, the aggregate elements are stored consecutively. Otherwise, f2stridefP bytes occur between the beginning of one aggregate array element and the beginning of the next aggregate array element. f2formatfP serves as a ``key'' describing the extraction of individual arrays from the aggregate array. If f2formatfP contains a T, then texture coordinates are extracted from the interleaved array. If C is present, color values are extracted. If N is present, normal coordinates are extracted. Vertex coordinates are always extracted. The digits 2, 3, and 4 denote how many values are extracted. F indicates that values are extracted as floating-point values. Colors may also be extracted as 4 unsigned bytes if 4UB follows the C. If a color is extracted as 4 unsigned bytes, the vertex array element which follows is located at the first possible floating-point aligned address.  

NOTES

%f3glInterleavedArraysfP is available only if the GL version is 1.1 or greater. If %f3glInterleavedArraysfP is called while compiling a display list, it is not compiled into the list, and it is executed immediately. Execution of %f3glInterleavedArraysfP is not allowed between the execution of %f3glBeginfP and the corresponding execution of %f3glEndfP, but an error may or may not be generated. If no error is generated, the operation is undefined. %f3glInterleavedArraysfP is typically implemented on the client side. Vertex array parameters are client-side state and are therefore not saved or restored by %f3glPushAttribfP and %f3glPopAttribfP. Use %f3glPushClientAttribfP and %f3glPopClientAttribfP instead. When the %f3GL_ARB_multitexturefP extension is supported, %f3glInterleavedArraysfP only updates the texture coordinate array for the active active texture unit. The texture coordinate state for other client texture units is not update, regardless if they are enabled or not.  

ERRORS

%f3GL_INVALID_ENUMfP is generated if f2formatfP is not an accepted value. %f3GL_INVALID_VALUEfP is generated if f2stridefP is negative.  

SEE ALSO

%f3glArrayElement(3G)fP, %f3glClientActiveTextureARB(3G)fP, %f3glColorPointer(3G)fP, %f3glDrawArrays(3G)fP, %f3glDrawElements(3G)fP, %f3glEdgeFlagPointer(3G)fP, %f3glEnableClientState(3G)fP, %f3glGetPointer(3G)fP, %f3glIndexPointer(3G)fP, %f3glNormalPointer(3G)fP, %f3glTexCoordPointer(3G)fP, %f3glVertexPointer(3G)fP


 

Index

NAME
C SPECIFICATION
DESCRIPTION
NOTES
ERRORS
SEE ALSO