|
| | SLGLVertexArrayExt () |
| |
| virtual | ~SLGLVertexArrayExt () |
| |
| void | generateVertexPos (SLVVec2f *p) |
| | Adds or updates & generates a position vertex attribute for colored line or point drawing. More...
|
| |
| void | generateVertexPos (SLVVec3f *p) |
| | Adds or updates & generates a position vertex attribute for colored line or point drawing. More...
|
| |
| void | generateVertexPos (SLVVec4f *p) |
| | Adds or updates & generates a position vertex attribute for colored line or point drawing. More...
|
| |
| void | drawArrayAsColored (SLGLPrimitiveType primitiveType, SLCol4f color, SLfloat lineOrPointSize=1.0f, SLuint indexFirstVertex=0, SLuint countVertices=0) |
| | Draws the array as the specified primitive with the color. More...
|
| |
| void | drawElementAsColored (SLGLPrimitiveType primitiveType, SLCol4f color, SLfloat pointSize, SLuint indexFirstVertex=0, SLuint countVertices=0) |
| | Draws the VAO by element indices with the specified primitive with the color. More...
|
| |
| | SLGLVertexArray () |
| |
| | ~SLGLVertexArray () |
| |
| void | deleteGL () |
| | Deletes all vertex array & vertex buffer objects. More...
|
| |
| void | clearAttribs () |
| | Clears the attribute definition. More...
|
| |
| SLint | vaoID () const |
| | Returns either the VAO id or the VBO id. More...
|
| |
| SLint | tfoID () const |
| | Returns the TFO id. More...
|
| |
| void | setAttrib (SLGLAttributeType type, SLint elementSize, SLint location, void *dataPointer, SLGLBufferType dataType=BT_float) |
| | Adds a vertex attribute with data pointer and an element size. More...
|
| |
| void | setAttrib (SLGLAttributeType type, SLint location, SLVuint *data) |
| | Adds a vertex attribute with vector of SLuint. More...
|
| |
| void | setAttrib (SLGLAttributeType type, SLint location, SLVfloat *data) |
| | Adds a vertex attribute with vector of SLfloat. More...
|
| |
| void | setAttrib (SLGLAttributeType type, SLint location, SLVVec2f *data) |
| | Adds a vertex attribute with vector of SLVec2f. More...
|
| |
| void | setAttrib (SLGLAttributeType type, SLint location, SLVVec3f *data) |
| | Adds a vertex attribute with vector of SLVec3f. More...
|
| |
| void | setAttrib (SLGLAttributeType type, SLint location, SLVVec4f *data) |
| | Adds a vertex attribute with vector of SLVec4f. More...
|
| |
| void | setIndices (SLuint numIndicesElements, SLGLBufferType indexDataType, void *indexDataElements, SLuint numIndicesEdges=0, void *indexDataEdges=nullptr) |
| | Adds the index array for indexed element drawing. More...
|
| |
| void | setIndices (SLVubyte *indicesElements, SLVubyte *indicesEdges=nullptr) |
| | Adds the index array for indexed element drawing with a vector of ubyte. More...
|
| |
| void | setIndices (SLVushort *indicesElements, SLVushort *indicesEdges=nullptr) |
| | Adds the index array for indexed element drawing with a vector of ushort. More...
|
| |
| void | setIndices (SLVuint *indicesElements, SLVuint *indicesEdges=nullptr) |
| | Adds the index array for indexed element drawing with a vector of uint. More...
|
| |
| void | updateAttrib (SLGLAttributeType type, SLint elementSize, void *dataPointer) |
| | Updates a specific vertex attribute in the VBO. More...
|
| |
| void | updateAttrib (SLGLAttributeType type, SLVuint *data) |
| | Updates a specific vertex attribute in the VBO. More...
|
| |
| void | updateAttrib (SLGLAttributeType type, SLVfloat *data) |
| | Updates a specific vertex attribute in the VBO. More...
|
| |
| void | updateAttrib (SLGLAttributeType type, SLVVec2f *data) |
| | Updates a specific vertex attribute in the VBO. More...
|
| |
| void | updateAttrib (SLGLAttributeType type, SLVVec3f *data) |
| | Updates a specific vertex attribute in the VBO. More...
|
| |
| void | updateAttrib (SLGLAttributeType type, SLVVec4f *data) |
| | Updates a specific vertex attribute in the VBO. More...
|
| |
| void | generate (SLuint numVertices, SLGLBufferUsage usage=BU_static, SLbool outputInterleaved=true) |
| | Generates the VA & VB objects for a NO. of vertices. More...
|
| |
| void | generateTF (SLuint numVertices, SLGLBufferUsage usage=BU_static, SLbool outputInterleaved=true) |
| | Generates the VA & VB & TF objects. More...
|
| |
| void | beginTF (SLuint tfoID) |
| | Begin transform feedback. More...
|
| |
| void | endTF () |
| | End transform feedback. More...
|
| |
| void | drawElementsAs (SLGLPrimitiveType primitiveType, SLuint numIndexes=0, SLuint indexOffsetBytes=0) |
| | Draws the VAO by element indices with a primitive type. More...
|
| |
| void | drawArrayAs (SLGLPrimitiveType primitiveType, SLint firstVertex=0, SLsizei countVertices=0) |
| | Draws the VAO as an array with a primitive type. More...
|
| |
| void | drawEdges (SLCol4f color, SLfloat lineWidth=1.0f) |
| | Draws the hard edges of the VAO with the edge indices. More...
|
| |
| SLuint | numVertices () const |
| |
| SLuint | numIndicesElements () const |
| |
| SLuint | numIndicesEdges () const |
| |
SLGLVertexArray adds Helper Functions for quick Line & Point Drawing.
These functions where separated from SLGLVertexAttribute because they use the predefined shader ColorUniform and have there for references to the classes SLScene and SLGLProgram.