Represents an OpenGL Vertex Array and its associated buffer.
More...
#include <VertexArray.h>
|
| VertexArray (BufferUsage usage=BufferUsage::STATIC) |
| Constructs an empty VertexArray with the specified usage.
|
|
| VertexArray (const float *pVertices, u32 pVerticeCount, BufferUsage usage=BufferUsage::STATIC) |
| Constructs a VertexArray and uploads the provided vertex data.
|
|
| ~VertexArray () |
| Destructor. Releases OpenGL resources.
|
|
void | Set (const float *pVertices, u32 pVerticeCount) |
| Sets or updates the vertex data in the buffer.
|
|
void | Bind () |
| Binds the vertex array for rendering.
|
|
void | Unbind () |
| Unbinds the vertex array.
|
|
u32 | GetVerticeCount () const |
| Gets the number of vertices in the array.
|
|
Represents an OpenGL Vertex Array and its associated buffer.
◆ VertexArray() [1/2]
clt::VertexArray::VertexArray |
( |
BufferUsage | usage = BufferUsage::STATIC | ) |
|
|
inline |
Constructs an empty VertexArray with the specified usage.
- Parameters
-
usage | The buffer usage pattern. |
◆ VertexArray() [2/2]
VertexArray::VertexArray |
( |
const float * | pVertices, |
|
|
u32 | pVerticeCount, |
|
|
BufferUsage | usage = BufferUsage::STATIC ) |
Constructs a VertexArray and uploads the provided vertex data.
- Parameters
-
pVertices | Pointer to the vertex data. |
pVerticeCount | Number of vertices. |
usage | The buffer usage pattern. |
◆ GetVerticeCount()
u32 clt::VertexArray::GetVerticeCount |
( |
| ) |
const |
|
inline |
Gets the number of vertices in the array.
- Returns
- The vertex count.
◆ Set()
void VertexArray::Set |
( |
const float * | pVertices, |
|
|
u32 | pVerticeCount ) |
Sets or updates the vertex data in the buffer.
- Parameters
-
pVertices | Pointer to the vertex data. |
pVerticeCount | Number of vertices. |
The documentation for this class was generated from the following files:
- D:/DEV JEUX/2025/CPP/Opengl/ClutterEngineOpenGL/ClutterEngine/Engine/Graphics/Shader/VertexArray.h
- D:/DEV JEUX/2025/CPP/Opengl/ClutterEngineOpenGL/ClutterEngine/Engine/Graphics/Shader/VertexArray.cpp