[Feat] (...): Implement glDrawArrays.

This commit is contained in:
BZLZHH
2025-11-01 13:06:18 +08:00
parent 0ae69cfe9e
commit e8d6cd4b31
6 changed files with 21 additions and 3 deletions
@@ -35,7 +35,17 @@ namespace MobileGL {
#endif
}
void DrawArrays_Backend(GLenum mode, GLint first, GLsizei count) {
#if MOBILEGL_BACKEND == MOBILEGL_BACKEND_TYPE_DIRECT_GLES
MG_Backend::DirectGLES::DrawArrays(mode, first, count);
#endif
}
/* @INSERTION_POINT:FUNCTION_IMPLEMENTATION@ */
void DrawArrays(GLenum mode, GLint first, GLsizei count) {
DrawArrays_Backend(mode, first, count);
}
void MultiDrawElements(GLenum mode, const GLsizei* count, GLenum type, const void* const* indices,
GLsizei drawcount) {
MultiDrawElements_Backend(mode, count, type, indices, drawcount);