|
|
|
@ -743,6 +743,7 @@ RLAPI void rlUpdateVertexBufferElements(unsigned int id, const void *data, int d |
|
|
|
RLAPI void rlUnloadVertexArray(unsigned int vaoId); // Unload vertex array (vao) |
|
|
|
RLAPI void rlUnloadVertexBuffer(unsigned int vboId); // Unload vertex buffer object |
|
|
|
RLAPI void rlSetVertexAttribute(unsigned int index, int compSize, int type, bool normalized, int stride, int offset); // Set vertex attribute data configuration |
|
|
|
RLAPI void rlSetVertexAttributeI(unsigned int index, int compSize, int type, int stride, int offset); |
|
|
|
RLAPI void rlSetVertexAttributeDivisor(unsigned int index, int divisor); // Set vertex attribute data divisor |
|
|
|
RLAPI void rlSetVertexAttributeDefault(int locIndex, const void *value, int attribType, int count); // Set vertex attribute default value, when attribute to provided |
|
|
|
RLAPI void rlDrawVertexArray(int offset, int count); // Draw vertex array (currently active vao) |
|
|
|
@ -4041,6 +4042,15 @@ void rlSetVertexAttribute(unsigned int index, int compSize, int type, bool norma |
|
|
|
#endif |
|
|
|
} |
|
|
|
|
|
|
|
void rlSetVertexAttributeI(unsigned int index, int compSize, int type, int stride, int offset) |
|
|
|
{ |
|
|
|
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2) |
|
|
|
|
|
|
|
size_t offsetNative = offset; |
|
|
|
glVertexAttribIPointer(index, compSize, type, stride, (void *)offsetNative); |
|
|
|
#endif |
|
|
|
} |
|
|
|
|
|
|
|
// Set vertex attribute divisor |
|
|
|
void rlSetVertexAttributeDivisor(unsigned int index, int divisor) |
|
|
|
{ |
|
|
|
|