#include <glm/glm.hpp>
#include <jGL/OpenGL/gl.h>
Go to the source code of this file.
|
void | subFullBuffer (GLuint &buffer, float *data, GLuint size) |
| Substitute a GL_ARRAY_BUFFER fully.
|
|
void | enableBuffer (GLuint &buffer, GLuint attribute, GLuint size, GLuint divisor) |
| Enable a GL_ARRAY_BUFFER.
|
|
void | createBuffer (GLuint &buffer, const float *data, GLuint dataSize, int drawType, GLuint attribute, GLuint size, GLuint divisor) |
| Create a GL_ARRAY_BUFFER from data.
|
|
◆ createBuffer()
Create a GL_ARRAY_BUFFER from data.
- Parameters
-
buffer | the GL_ARRAY_BUFFER id. |
data | the data to upload. |
dataSize | the amount of data. |
drawType | the draw type. |
attribute | the vertex attribute. |
size | dimension. |
divisor | the instance divisor. |
◆ enableBuffer()
Enable a GL_ARRAY_BUFFER.
- Parameters
-
buffer | the GL_ARRAY_BUFFER id. |
attribute | the vertex attributed. |
size | the dimension. |
divisor | the intancing divisor. |
◆ subFullBuffer()
Substitute a GL_ARRAY_BUFFER fully.
- Parameters
-
buffer | the GL_ARRAY_BUFFER id |
data | the new data. |
size | the size. |