|
xoreos
0.0.5
|
Generic vertex attribute data. More...
#include <vertexbuffer.h>
Public Member Functions | |
| VertexAttrib () | |
| VertexAttrib (GLuint i, GLint s, GLenum t, GLsizei st=0, const GLvoid *p=0) | |
| GLvoid * | getData () |
| const GLvoid * | getData () const |
| void | enable () const |
| void | disable () const |
Public Attributes | |
| GLuint | index |
| Index of the vertex attribute (see VertexAttribIdEnum). More... | |
| GLint | size |
| Number of components per vertex attribute, must be 1, 2, 3, 4. More... | |
| GLenum | type |
| Data type of each attribute component in the array. More... | |
| GLsizei | stride |
| Byte offset between consecutive vertex attributes. More... | |
| const GLvoid * | pointer |
| Offset of the first component of the first generic vertex attribute. More... | |
Generic vertex attribute data.
Definition at line 43 of file vertexbuffer.h.
|
inline |
Definition at line 50 of file vertexbuffer.h.
|
inline |
Definition at line 51 of file vertexbuffer.h.
| void Graphics::VertexAttrib::disable | ( | ) | const |
Definition at line 69 of file vertexbuffer.cpp.
References index, Graphics::VCOLOR, Graphics::VNORMAL, Graphics::VPOSITION, and Graphics::VTCOORD.
| void Graphics::VertexAttrib::enable | ( | ) | const |
Definition at line 42 of file vertexbuffer.cpp.
References index, pointer, size, stride, type, Graphics::VCOLOR, Graphics::VNORMAL, Graphics::VPOSITION, and Graphics::VTCOORD.
| GLvoid * Graphics::VertexAttrib::getData | ( | ) |
Definition at line 34 of file vertexbuffer.cpp.
References pointer.
| const GLvoid * Graphics::VertexAttrib::getData | ( | ) | const |
Definition at line 38 of file vertexbuffer.cpp.
References pointer.
| GLuint Graphics::VertexAttrib::index |
Index of the vertex attribute (see VertexAttribIdEnum).
Definition at line 44 of file vertexbuffer.h.
Referenced by Graphics::Aurora::Model_Sonic::createBound(), disable(), and enable().
| const GLvoid* Graphics::VertexAttrib::pointer |
Offset of the first component of the first generic vertex attribute.
Definition at line 48 of file vertexbuffer.h.
Referenced by Graphics::Aurora::Model_Sonic::createBound(), enable(), and getData().
| GLint Graphics::VertexAttrib::size |
Number of components per vertex attribute, must be 1, 2, 3, 4.
Definition at line 45 of file vertexbuffer.h.
Referenced by Graphics::Aurora::Model_Sonic::createBound(), and enable().
| GLsizei Graphics::VertexAttrib::stride |
Byte offset between consecutive vertex attributes.
Definition at line 47 of file vertexbuffer.h.
Referenced by Graphics::Aurora::Model_Sonic::createBound(), and enable().
| GLenum Graphics::VertexAttrib::type |
Data type of each attribute component in the array.
Definition at line 46 of file vertexbuffer.h.
Referenced by Graphics::Aurora::Model_Sonic::createBound(), and enable().
1.8.14