mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-15 17:30:32 +01:00
mesa: added _mesa_DrawArrays, DrawElements, DrawRangeElements() wrappers for VBO funcs
This commit is contained in:
parent
f6bb2f87b9
commit
feb722fa98
2 changed files with 41 additions and 0 deletions
|
|
@ -147,6 +147,20 @@ _mesa_MultiModeDrawElementsIBM( const GLenum * mode, const GLsizei * count,
|
|||
GLsizei primcount, GLint modestride );
|
||||
|
||||
|
||||
|
||||
extern void GLAPIENTRY
|
||||
_mesa_DrawArrays(GLenum mode, GLint first, GLsizei count);
|
||||
|
||||
extern void GLAPIENTRY
|
||||
_mesa_DrawElements(GLenum mode, GLsizei count, GLenum type,
|
||||
const GLvoid *indices);
|
||||
|
||||
extern void GLAPIENTRY
|
||||
_mesa_DrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count,
|
||||
GLenum type, const GLvoid *indices);
|
||||
|
||||
|
||||
|
||||
extern void
|
||||
_mesa_init_varray( GLcontext * ctx );
|
||||
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@
|
|||
#include "main/state.h"
|
||||
#include "main/api_validate.h"
|
||||
#include "main/api_noop.h"
|
||||
#include "main/varray.h"
|
||||
#include "glapi/dispatch.h"
|
||||
|
||||
#include "vbo_context.h"
|
||||
|
|
@ -400,3 +401,29 @@ void vbo_exec_array_destroy( struct vbo_exec_context *exec )
|
|||
{
|
||||
/* nothing to do */
|
||||
}
|
||||
|
||||
|
||||
/* This API entrypoint is not ordinarily used */
|
||||
void GLAPIENTRY
|
||||
_mesa_DrawArrays(GLenum mode, GLint first, GLsizei count)
|
||||
{
|
||||
vbo_exec_DrawArrays(mode, first, count);
|
||||
}
|
||||
|
||||
|
||||
/* This API entrypoint is not ordinarily used */
|
||||
void GLAPIENTRY
|
||||
_mesa_DrawElements(GLenum mode, GLsizei count, GLenum type,
|
||||
const GLvoid *indices)
|
||||
{
|
||||
vbo_exec_DrawElements(mode, count, type, indices);
|
||||
}
|
||||
|
||||
|
||||
/* This API entrypoint is not ordinarily used */
|
||||
void GLAPIENTRY
|
||||
_mesa_DrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count,
|
||||
GLenum type, const GLvoid *indices)
|
||||
{
|
||||
vbo_exec_DrawRangeElements(mode, start, end, count, type, indices);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue