added glVertexAttribIPointer
This commit is contained in:
parent
b80250bee4
commit
556cc988de
10
src/rlgl.h
10
src/rlgl.h
|
|
@ -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 rlUnloadVertexArray(unsigned int vaoId); // Unload vertex array (vao)
|
||||||
RLAPI void rlUnloadVertexBuffer(unsigned int vboId); // Unload vertex buffer object
|
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 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 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 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)
|
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
|
#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
|
// Set vertex attribute divisor
|
||||||
void rlSetVertexAttributeDivisor(unsigned int index, int divisor)
|
void rlSetVertexAttributeDivisor(unsigned int index, int divisor)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user