added comment

This commit is contained in:
snoopyPlayz 2025-03-11 15:47:05 +01:00
parent 556cc988de
commit 10f9a1ea4f

View File

@ -4045,6 +4045,8 @@ void rlSetVertexAttribute(unsigned int index, int compSize, int type, bool norma
void rlSetVertexAttributeI(unsigned int index, int compSize, int type, int stride, int offset) void rlSetVertexAttributeI(unsigned int index, int compSize, int type, int stride, int offset)
{ {
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2) #if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
// NOTE: Data type could be: GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT
size_t offsetNative = offset; size_t offsetNative = offset;
glVertexAttribIPointer(index, compSize, type, stride, (void *)offsetNative); glVertexAttribIPointer(index, compSize, type, stride, (void *)offsetNative);