Add glScissor()

This commit is contained in:
Pierre Pronchery 2016-09-10 04:01:31 +02:00
parent 601dbf5dc6
commit c8f3314a28
6 changed files with 16 additions and 5 deletions

View File

@ -176,6 +176,12 @@ arg2=FLOAT
arg3=FLOAT
arg4=FLOAT
[call::glScissor]
arg1=INT32
arg2=INT32
arg3=INT32
arg4=INT32
[call::glShadeModel]
arg1=UINT32

View File

@ -170,9 +170,10 @@ typedef enum _GServerVideoCall4f
typedef enum _GServerVideoCall4i
{
GSERVER_VIDEO_CALL4i_glColor4i = 0,
GSERVER_VIDEO_CALL4i_glColor4ui
GSERVER_VIDEO_CALL4i_glColor4ui,
GSERVER_VIDEO_CALL4i_glScissor
} GServerVideoCall4i;
# define GSERVER_VIDEO_CALL4i_LAST GSERVER_VIDEO_CALL4i_glColor4ui
# define GSERVER_VIDEO_CALL4i_LAST GSERVER_VIDEO_CALL4i_glScissor
# define GSERVER_VIDEO_CALL4i_COUNT (GSERVER_VIDEO_CALL4i_LAST + 1)
typedef enum _GServerVideoCall4s

View File

@ -568,6 +568,7 @@ GSERVER_PROTO4f(void, glRotatef)
/* proto4i */
GSERVER_PROTO4i(void, glColor4i, int32_t, int32_t, int32_t, int32_t)
GSERVER_PROTO4i(void, glColor4ui, uint32_t, uint32_t, uint32_t, uint32_t)
GSERVER_PROTO4i(void, glScissor, int32_t, int32_t, int32_t, int32_t)
/* proto4s */
GSERVER_PROTO4s(void, glColor4s, int16_t, int16_t, int16_t, int16_t)

View File

@ -181,7 +181,8 @@ static void (*_glut_func4i[GSERVER_VIDEO_CALL4i_COUNT])(uint32_t, uint32_t,
uint32_t, uint32_t) =
{
glColor4i,
glColor4ui
glColor4ui,
glScissor
};
static void (*_glut_func4s[GSERVER_VIDEO_CALL4s_COUNT])(uint16_t, uint16_t,

View File

@ -185,7 +185,8 @@ static void (*_glx_func4i[GSERVER_VIDEO_CALL4i_COUNT])(uint32_t, uint32_t,
uint32_t, uint32_t) =
{
glColor4i,
glColor4ui
glColor4ui,
glScissor
};
static void (*_glx_func4s[GSERVER_VIDEO_CALL4s_COUNT])(uint16_t, uint16_t,

View File

@ -180,7 +180,8 @@ static void (*_sdl_func4i[GSERVER_VIDEO_CALL4i_COUNT])(uint32_t, uint32_t,
uint32_t, uint32_t) =
{
glColor4i,
glColor4ui
glColor4ui,
glScissor
};
static void (*_sdl_func4s[GSERVER_VIDEO_CALL4s_COUNT])(uint16_t, uint16_t,