14-opengl4-quick-reference-card

14-opengl4-quick-reference-card - www.opengl.org/registry...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: www.opengl.org/registry 2010 Khronos Group - Rev. 0210 OpenGL 4.00 API Quick Reference Card Vertex Arrays [2.8] Vertex data may be placed into arrays stored in the client address space or server address space. void VertexPointer (int size , enum type , sizei stride , void * pointer ); type: SHORT, INT, FLOAT, HALF_FLOAT, DOUBLE, INT_2_10_10_10_REV, UNSIGNED_INT_2_10_10_10_REV void NormalPointer (enum type , sizei stride , void * pointer ); type: see VertexPointer , plus BYTE void ColorPointer (int size , enum type , sizei stride , void * pointer ); type: see VertexPointer , plus BYTE, UBYTE, USHORT, UINT void SecondaryColorPointer (int size , enum type , sizei stride , void * pointer ); type: see ColorPointer void IndexPointer (enum type , sizei stride , void * pointer ); type: UBYTE, SHORT, INT, FLOAT, DOUBLE void EdgeFlagPointer (sizei stride , void * pointer ); void FogCoordPointer (enum type , sizei stride , void * pointer ); type: FLOAT, HALF_FLOAT, DOUBLE void TexCoordPointer (int size , enum type , sizei stride , void * pointer ); type: see VertexPointer void VertexATribPointer (uint index , int size , enum type , boolean normalized , sizei stride , const void * pointer ); type: see ColorPointer void VertexATribIPointer (uint index , int size , enum type , sizei stride , const void * pointer ); type: BYTE, UBYTE, SHORT, USHORT, INT, UINT index: [0, MAX_VERTEX_ATTRIBS - 1] void EnableClientState (enum array ); void DisableClientState (enum array ); array: VERTEX_ARRAY, NORMAL_ARRAY, COLOR_ARRAY, SECONDARY_COLOR_ARRAY, INDEX_ARRAY, EDGE_FLAG_ARRAY, FOG_COORD_ARRAY, TEXTURE_COORD_ARRAY void EnableVertexATribArray (uint index ); void DisableVertexATribArray (uint index ); index: [0, MAX_VERTEX_ATTRIBS - 1] void VertexATribDivisor (uint index , uint divisor ); void ClientAcveexture (enum texture ); index: TEXTURE i (where i is [0, MAX_TEXTURE_COORDS - 1]) void ArrayElement (int i ); Enable / Disable (PRIMITIVE_RESTART) void PrimiveRestartIndex (uint index ); Drawing Commands [2.8.2] [2.8.3] void DrawArrays (enum mode , int frst , sizei count ); void DrawArraysInstanced (enum mode , int frst , sizei count , sizei primcount }; void DrawArraysIndirect (enum mode , const void * indirect ); void MulDrawArrays (enum mode , int * frst , sizei * count , sizei primcount ); void DrawElements (enum mode , sizei count , enum type , void * indices ); void DrawElementsInstanced (enum mode , sizei count , enum type , const void * indices , sizei primcount ); void MulDrawElements (enum mode , sizei * count , enum type , void ** indices , sizei primcount ); void DrawRangeElements (enum mode , uint start , uint end , sizei count , enum type , void * indices ); void DrawElementsBaseVertex (enum mode , sizei count , enum type , void * indices , int basevertex ); void DrawRangeElementsBaseVertex ( enum mode , uint start , uint end , sizei count , enum type , void * indices , int basevertex ); void DrawElementsInstancedBaseVertex ( enum mode , sizei count...
View Full Document

Page1 / 8

14-opengl4-quick-reference-card - www.opengl.org/registry...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online