14-opengl4-quick-reference-card

14-opengl4-quick-reference-card - OpenGL 4.00 API Quick...

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

View Full Document Right Arrow Icon
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 VertexAttribPointer (uint index , int size , enum type , boolean normalized , sizei stride , const void * pointer ); type: see ColorPointer void VertexAttribIPointer (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 EnableVertexAttribArray (uint index ); void DisableVertexAttribArray (uint index ); index: [0, MAX_VERTEX_ATTRIBS - 1] void VertexAttribDivisor (uint index , uint divisor ); void ClientActiveTexture (enum texture ); index: TEXTURE i (where i is [0, MAX_TEXTURE_COORDS - 1]) void ArrayElement (int i ); Enable / Disable (PRIMITIVE_RESTART) void PrimitiveRestartIndex (uint index ); Drawing Commands [2.8.2] [2.8.3] void DrawArrays (enum mode , int first , sizei count ); void DrawArraysInstanced (enum mode , int first , sizei count , sizei primcount }; void DrawArraysIndirect (enum mode , const void * indirect ); void MultiDrawArrays (enum mode , int * first , 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 MultiDrawElements (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 , enum type , const void * indices , sizei primcount , int basevertex ); void DrawElementsIndirect (enum mode , enum type , const void * indirect ); void MultiDrawElementsBaseVertex ( enum mode , sizei * count , enum type , void ** indices , sizei primcount , int * basevertex ); mode: POINTS, LINE_STRIP, LINE_LOOP, LINES, POLYGON , TRIANGLE_STRIP, TRIANGLE_FAN, TRIANGLES, QUAD_STRIP , QUADS ,
Image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern