|
Hymn to Beauty
C++ 3D Engine
|
OpenGL implementation of GeometryBinding. More...
#include <OpenGLGeometryBinding.hpp>
Public Member Functions | |
| OpenGLGeometryBinding (const VertexDescription *vertexDescription, const Buffer *vertexBuffer, IndexType indexType=IndexType::NONE, const Buffer *indexBuffer=nullptr) | |
| Create new OpenGL geometry binding. More... | |
| ~OpenGLGeometryBinding () final | |
| Destructor. More... | |
| GLuint | GetVertexArray () const |
| Get the vertex array object. More... | |
| GLenum | GetIndexType () const |
| Get the type of the values in the index buffer. More... | |
| uintptr_t | GetIndexBufferOffset () const |
| Get the offset into the index buffer. More... | |
Public Member Functions inherited from Video::GeometryBinding | |
| GeometryBinding () | |
| Create a new shader. More... | |
| virtual | ~GeometryBinding () |
| Destructor. More... | |
Additional Inherited Members | |
Public Types inherited from Video::GeometryBinding | |
| enum class | IndexType { NONE = 0 , SHORT , INT } |
| The type of values in the index buffer. More... | |
OpenGL implementation of GeometryBinding.
| Video::OpenGLGeometryBinding::OpenGLGeometryBinding | ( | const VertexDescription * | vertexDescription, |
| const Buffer * | vertexBuffer, | ||
| IndexType | indexType = IndexType::NONE, |
||
| const Buffer * | indexBuffer = nullptr |
||
| ) |
Create new OpenGL geometry binding.
| vertexDescription | Description of the attributes in the vertex buffer. |
| vertexBuffer | Buffer containing the vertex data. |
| indexType | The type of values in the index buffer. |
| indexBuffer | Index buffer. |
|
final |
Destructor.
| uintptr_t Video::OpenGLGeometryBinding::GetIndexBufferOffset | ( | ) | const |
Get the offset into the index buffer.
| GLenum Video::OpenGLGeometryBinding::GetIndexType | ( | ) | const |
Get the type of the values in the index buffer.
| GLuint Video::OpenGLGeometryBinding::GetVertexArray | ( | ) | const |
Get the vertex array object.