Add glViewport()

This commit is contained in:
Pierre Pronchery 2016-09-10 04:03:23 +02:00
parent c8f3314a28
commit de9b4e67ba
6 changed files with 16 additions and 5 deletions

View File

@ -218,5 +218,11 @@ arg1=INT32
arg2=INT32
arg3=INT32
[call::glViewport]
arg1=INT32
arg2=INT32
arg3=INT32
arg4=INT32
[call::SwapBuffers]
ret=void

View File

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

View File

@ -569,6 +569,7 @@ GSERVER_PROTO4f(void, glRotatef)
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)
GSERVER_PROTO4i(void, glViewport, int32_t, int32_t, int32_t, int32_t)
/* proto4s */
GSERVER_PROTO4s(void, glColor4s, int16_t, int16_t, int16_t, int16_t)

View File

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

View File

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

View File

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