Reflect the initializers with reality

This commit is contained in:
Pierre Pronchery 2017-04-13 00:59:47 +02:00
parent 931b22ac80
commit 3e96fd5267
7 changed files with 119 additions and 19 deletions

View File

@ -11,20 +11,20 @@ arg1=UINT32,texture
[call::glArrayElement] [call::glArrayElement]
arg1=INT32,i arg1=INT32,i
[call::glAttachShader] #[call::glAttachShader]
arg1=UINT32,program #arg1=UINT32,program
arg2=UINT32,shader #arg2=UINT32,shader
[call::glBegin] [call::glBegin]
arg1=UINT32,mode arg1=UINT32,mode
[call::glBeginQuery] #[call::glBeginQuery]
arg1=UINT32,target #arg1=UINT32,target
arg2=UINT32,id #arg2=UINT32,id
[call::glBindBuffer] #[call::glBindBuffer]
arg1=UINT32,target #arg1=UINT32,target
arg2=UINT32,buffer #arg2=UINT32,buffer
[call:glBindTexture] [call:glBindTexture]
arg1=UINT32,target arg1=UINT32,target
@ -33,19 +33,19 @@ arg2=UINT32,texture
[call::glBlendEquation] [call::glBlendEquation]
arg1=UINT32,mode arg1=UINT32,mode
[call::glBlendEquationSeparate] #[call::glBlendEquationSeparate]
arg1=UINT32,modeRGB #arg1=UINT32,modeRGB
arg2=UINT32,modeAlpha #arg2=UINT32,modeAlpha
[call::glBlendFunc] [call::glBlendFunc]
arg1=UINT32,sfactor arg1=UINT32,sfactor
arg2=UINT32,dfactor arg2=UINT32,dfactor
[call::glBlendFuncSeparate] #[call::glBlendFuncSeparate]
arg1=UINT32,srcRGB #arg1=UINT32,srcRGB
arg2=UINT32,dstRGB #arg2=UINT32,dstRGB
arg3=UINT32,srcAlpha #arg3=UINT32,srcAlpha
arg4=UINT32,dstAlpha #arg4=UINT32,dstAlpha
[call::glCallList] [call::glCallList]
arg1=UINT32,list arg1=UINT32,list
@ -175,8 +175,8 @@ arg4=BOOL,alpha
arg1=UINT32,face arg1=UINT32,face
arg2=UINT32,mode arg2=UINT32,mode
[call::glCompileShader] #[call::glCompileShader]
arg1=UINT32,shader #arg1=UINT32,shader
[call::glDepthFunc] [call::glDepthFunc]
arg1=UINT32 arg1=UINT32

View File

@ -82,7 +82,9 @@ typedef enum _GServerVideoCall1i
GSERVER_VIDEO_CALL1i_glClear, GSERVER_VIDEO_CALL1i_glClear,
GSERVER_VIDEO_CALL1i_glClearStencil, GSERVER_VIDEO_CALL1i_glClearStencil,
GSERVER_VIDEO_CALL1i_glClientActiveTexture, GSERVER_VIDEO_CALL1i_glClientActiveTexture,
#if 0
GSERVER_VIDEO_CALL1i_glCompileShader, GSERVER_VIDEO_CALL1i_glCompileShader,
#endif
GSERVER_VIDEO_CALL1i_glDepthFunc, GSERVER_VIDEO_CALL1i_glDepthFunc,
GSERVER_VIDEO_CALL1i_glDisable, GSERVER_VIDEO_CALL1i_glDisable,
GSERVER_VIDEO_CALL1i_glDisableClientState, GSERVER_VIDEO_CALL1i_glDisableClientState,
@ -104,11 +106,15 @@ typedef enum _GServerVideoCall2f
typedef enum _GServerVideoCall2i typedef enum _GServerVideoCall2i
{ {
#if 0
GSERVER_VIDEO_CALL2i_glAttachShader = 0, GSERVER_VIDEO_CALL2i_glAttachShader = 0,
GSERVER_VIDEO_CALL2i_glBeginQuery, GSERVER_VIDEO_CALL2i_glBeginQuery,
GSERVER_VIDEO_CALL2i_glBindBuffer, GSERVER_VIDEO_CALL2i_glBindBuffer,
GSERVER_VIDEO_CALL2i_glBindTexture, GSERVER_VIDEO_CALL2i_glBindTexture,
GSERVER_VIDEO_CALL2i_glBlendEquationSeparate, GSERVER_VIDEO_CALL2i_glBlendEquationSeparate,
#else
GSERVER_VIDEO_CALL2i_glBindTexture = 0,
#endif
GSERVER_VIDEO_CALL2i_glBlendFunc, GSERVER_VIDEO_CALL2i_glBlendFunc,
GSERVER_VIDEO_CALL2i_glColorMaterial, GSERVER_VIDEO_CALL2i_glColorMaterial,
GSERVER_VIDEO_CALL2i_glFogi, GSERVER_VIDEO_CALL2i_glFogi,
@ -193,8 +199,12 @@ typedef enum _GServerVideoCall4f
typedef enum _GServerVideoCall4i typedef enum _GServerVideoCall4i
{ {
#if 0
GSERVER_VIDEO_CALL4i_glBlendFuncSeparate = 0, GSERVER_VIDEO_CALL4i_glBlendFuncSeparate = 0,
GSERVER_VIDEO_CALL4i_glColor4i, GSERVER_VIDEO_CALL4i_glColor4i,
#else
GSERVER_VIDEO_CALL4i_glColor4i = 0,
#endif
GSERVER_VIDEO_CALL4i_glColor4ui, GSERVER_VIDEO_CALL4i_glColor4ui,
GSERVER_VIDEO_CALL4i_glColorMask, GSERVER_VIDEO_CALL4i_glColorMask,
GSERVER_VIDEO_CALL4i_glScissor, GSERVER_VIDEO_CALL4i_glScissor,

View File

@ -530,7 +530,9 @@ GSERVER_PROTO1i(void, glCallList, uint32_t)
GSERVER_PROTO1i(void, glClear, uint32_t) GSERVER_PROTO1i(void, glClear, uint32_t)
GSERVER_PROTO1i(void, glClearStencil, int32_t) GSERVER_PROTO1i(void, glClearStencil, int32_t)
GSERVER_PROTO1i(void, glClientActiveTexture, uint32_t) GSERVER_PROTO1i(void, glClientActiveTexture, uint32_t)
#if 0
GSERVER_PROTO1i(void, glCompileShader, uint32_t) GSERVER_PROTO1i(void, glCompileShader, uint32_t)
#endif
GSERVER_PROTO1i(void, glDepthFunc, uint32_t) GSERVER_PROTO1i(void, glDepthFunc, uint32_t)
GSERVER_PROTO1i(void, glDisable, uint32_t) GSERVER_PROTO1i(void, glDisable, uint32_t)
GSERVER_PROTO1i(void, glDisableClientState, uint32_t) GSERVER_PROTO1i(void, glDisableClientState, uint32_t)
@ -545,11 +547,15 @@ GSERVER_PROTO2f(void, glPolygonOffset)
GSERVER_PROTO2f(void, glTexCoord2f) GSERVER_PROTO2f(void, glTexCoord2f)
/* proto2i */ /* proto2i */
#if 0
GSERVER_PROTO2i(void, glAttachShader, uint32_t, uint32_t) GSERVER_PROTO2i(void, glAttachShader, uint32_t, uint32_t)
GSERVER_PROTO2i(void, glBeginQuery, uint32_t, uint32_t) GSERVER_PROTO2i(void, glBeginQuery, uint32_t, uint32_t)
GSERVER_PROTO2i(void, glBindBuffer, uint32_t, uint32_t) GSERVER_PROTO2i(void, glBindBuffer, uint32_t, uint32_t)
#endif
GSERVER_PROTO2i(void, glBindTexture, uint32_t, uint32_t) GSERVER_PROTO2i(void, glBindTexture, uint32_t, uint32_t)
#if 0
GSERVER_PROTO2i(void, glBlendEquationSeparate, uint32_t, uint32_t) GSERVER_PROTO2i(void, glBlendEquationSeparate, uint32_t, uint32_t)
#endif
GSERVER_PROTO2i(void, glBlendFunc, uint32_t, uint32_t) GSERVER_PROTO2i(void, glBlendFunc, uint32_t, uint32_t)
GSERVER_PROTO2i(void, glColorMaterial, uint32_t, uint32_t) GSERVER_PROTO2i(void, glColorMaterial, uint32_t, uint32_t)
GSERVER_PROTO2i(void, glFogi, uint32_t, int32_t) GSERVER_PROTO2i(void, glFogi, uint32_t, int32_t)
@ -598,8 +604,10 @@ GSERVER_PROTO4f(void, glColor4f)
GSERVER_PROTO4f(void, glRotatef) GSERVER_PROTO4f(void, glRotatef)
/* proto4i */ /* proto4i */
#if 0
GSERVER_PROTO4i(void, glBlendFuncSeparate, uint32_t, uint32_t, uint32_t, GSERVER_PROTO4i(void, glBlendFuncSeparate, uint32_t, uint32_t, uint32_t,
uint32_t) uint32_t)
#endif
GSERVER_PROTO4i(void, glColor4i, int32_t, int32_t, int32_t, int32_t) 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, glColor4ui, uint32_t, uint32_t, uint32_t, uint32_t)
GSERVER_PROTO4i(void, glColorMask, bool, bool, bool, bool) GSERVER_PROTO4i(void, glColorMask, bool, bool, bool, bool)

View File

@ -93,13 +93,23 @@ static void (*_glut_func1d[GSERVER_VIDEO_CALL1d_COUNT])(double) =
static void (*_glut_func1f[GSERVER_VIDEO_CALL1f_COUNT])(float) = static void (*_glut_func1f[GSERVER_VIDEO_CALL1f_COUNT])(float) =
{ {
glClearIndex,
glPointSize glPointSize
}; };
static void (*_glut_func1i[GSERVER_VIDEO_CALL1i_COUNT])(uint32_t) = static void (*_glut_func1i[GSERVER_VIDEO_CALL1i_COUNT])(uint32_t) =
{ {
glActiveTexture,
glArrayElement,
glBegin, glBegin,
glBlendEquation,
glCallList,
glClear, glClear,
glClearStencil,
glClientActiveTexture,
#if 0
glCompileShader,
#endif
glDepthFunc, glDepthFunc,
glDisable, glDisable,
glDisableClientState, glDisableClientState,
@ -117,7 +127,16 @@ static void (*_glut_func2f[GSERVER_VIDEO_CALL2f_COUNT])(float, float) =
static void (*_glut_func2i[GSERVER_VIDEO_CALL2i_COUNT])(uint32_t, uint32_t) = static void (*_glut_func2i[GSERVER_VIDEO_CALL2i_COUNT])(uint32_t, uint32_t) =
{ {
#if 0
glAttachShader,
glBeginQuery,
glBindBuffer,
#endif
glBindTexture, glBindTexture,
#if 0
glBlendEquationSeparate,
#endif
glBlendFunc,
glColorMaterial, glColorMaterial,
glFogi, glFogi,
glHint, glHint,
@ -182,6 +201,7 @@ static void (*_glut_func4d[GSERVER_VIDEO_CALL4d_COUNT])(double, double, double,
static void (*_glut_func4f[GSERVER_VIDEO_CALL4f_COUNT])(float, float, float, static void (*_glut_func4f[GSERVER_VIDEO_CALL4f_COUNT])(float, float, float,
float) = float) =
{ {
glClearAccum,
glClearColor, glClearColor,
glRotatef glRotatef
}; };
@ -189,8 +209,12 @@ static void (*_glut_func4f[GSERVER_VIDEO_CALL4f_COUNT])(float, float, float,
static void (*_glut_func4i[GSERVER_VIDEO_CALL4i_COUNT])(uint32_t, uint32_t, static void (*_glut_func4i[GSERVER_VIDEO_CALL4i_COUNT])(uint32_t, uint32_t,
uint32_t, uint32_t) = uint32_t, uint32_t) =
{ {
#if 0
glBlendFuncSeparate,
#endif
glColor4i, glColor4i,
glColor4ui, glColor4ui,
glColorMask,
glScissor, glScissor,
glViewport glViewport
}; };

View File

@ -97,13 +97,23 @@ static void (*_glx_func1d[GSERVER_VIDEO_CALL1d_COUNT])(double) =
static void (*_glx_func1f[GSERVER_VIDEO_CALL1f_COUNT])(float) = static void (*_glx_func1f[GSERVER_VIDEO_CALL1f_COUNT])(float) =
{ {
glClearIndex,
glPointSize glPointSize
}; };
static void (*_glx_func1i[GSERVER_VIDEO_CALL1i_COUNT])(uint32_t) = static void (*_glx_func1i[GSERVER_VIDEO_CALL1i_COUNT])(uint32_t) =
{ {
glActiveTexture,
glArrayElement,
glBegin, glBegin,
glBlendEquation,
glCallList,
glClear, glClear,
glClearStencil,
glClientActiveTexture,
#if 0
glCompileShader,
#endif
glDepthFunc, glDepthFunc,
glDisable, glDisable,
glDisableClientState, glDisableClientState,
@ -121,7 +131,16 @@ static void (*_glx_func2f[GSERVER_VIDEO_CALL2f_COUNT])(float, float) =
static void (*_glx_func2i[GSERVER_VIDEO_CALL2i_COUNT])(uint32_t, uint32_t) = static void (*_glx_func2i[GSERVER_VIDEO_CALL2i_COUNT])(uint32_t, uint32_t) =
{ {
#if 0
glAttachShader,
glBeginQuery,
glBindBuffer,
#endif
glBindTexture, glBindTexture,
#if 0
glBlendEquationSeparate,
#endif
glBlendFunc,
glColorMaterial, glColorMaterial,
glFogi, glFogi,
glHint, glHint,
@ -186,6 +205,7 @@ static void (*_glx_func4d[GSERVER_VIDEO_CALL4d_COUNT])(double, double, double,
static void (*_glx_func4f[GSERVER_VIDEO_CALL4f_COUNT])(float, float, float, static void (*_glx_func4f[GSERVER_VIDEO_CALL4f_COUNT])(float, float, float,
float) = float) =
{ {
glClearAccum,
glClearColor, glClearColor,
glRotatef glRotatef
}; };
@ -193,8 +213,12 @@ static void (*_glx_func4f[GSERVER_VIDEO_CALL4f_COUNT])(float, float, float,
static void (*_glx_func4i[GSERVER_VIDEO_CALL4i_COUNT])(uint32_t, uint32_t, static void (*_glx_func4i[GSERVER_VIDEO_CALL4i_COUNT])(uint32_t, uint32_t,
uint32_t, uint32_t) = uint32_t, uint32_t) =
{ {
#if 0
glBlendFuncSeparate,
#endif
glColor4i, glColor4i,
glColor4ui, glColor4ui,
glColorMask,
glScissor, glScissor,
glViewport glViewport
}; };

View File

@ -92,13 +92,23 @@ static void (*_sdl_func1d[GSERVER_VIDEO_CALL1d_COUNT])(double) =
static void (*_sdl_func1f[GSERVER_VIDEO_CALL1f_COUNT])(float) = static void (*_sdl_func1f[GSERVER_VIDEO_CALL1f_COUNT])(float) =
{ {
glClearIndex,
glPointSize glPointSize
}; };
static void (*_sdl_func1i[GSERVER_VIDEO_CALL1i_COUNT])(uint32_t) = static void (*_sdl_func1i[GSERVER_VIDEO_CALL1i_COUNT])(uint32_t) =
{ {
glActiveTexture,
glArrayElement,
glBegin, glBegin,
glBlendEquation,
glCallList,
glClear, glClear,
glClearStencil,
glClientActiveTexture,
#if 0
glCompileShader,
#endif
glDepthFunc, glDepthFunc,
glDisable, glDisable,
glDisableClientState, glDisableClientState,
@ -116,7 +126,16 @@ static void (*_sdl_func2f[GSERVER_VIDEO_CALL2f_COUNT])(float, float) =
static void (*_sdl_func2i[GSERVER_VIDEO_CALL2i_COUNT])(uint32_t, uint32_t) = static void (*_sdl_func2i[GSERVER_VIDEO_CALL2i_COUNT])(uint32_t, uint32_t) =
{ {
#if 0
glAttachShader,
glBeginQuery,
glBindBuffer,
#endif
glBindTexture, glBindTexture,
#if 0
glBlendEquationSeparate,
#endif
glBlendFunc,
glColorMaterial, glColorMaterial,
glFogi, glFogi,
glHint, glHint,
@ -181,6 +200,7 @@ static void (*_sdl_func4d[GSERVER_VIDEO_CALL4d_COUNT])(double, double, double,
static void (*_sdl_func4f[GSERVER_VIDEO_CALL4f_COUNT])(float, float, float, static void (*_sdl_func4f[GSERVER_VIDEO_CALL4f_COUNT])(float, float, float,
float) = float) =
{ {
glClearAccum,
glClearColor, glClearColor,
glRotatef glRotatef
}; };
@ -188,8 +208,12 @@ static void (*_sdl_func4f[GSERVER_VIDEO_CALL4f_COUNT])(float, float, float,
static void (*_sdl_func4i[GSERVER_VIDEO_CALL4i_COUNT])(uint32_t, uint32_t, static void (*_sdl_func4i[GSERVER_VIDEO_CALL4i_COUNT])(uint32_t, uint32_t,
uint32_t, uint32_t) = uint32_t, uint32_t) =
{ {
#if 0
glBlendFuncSeparate,
#endif
glColor4i, glColor4i,
glColor4ui, glColor4ui,
glColorMask,
glScissor, glScissor,
glViewport glViewport
}; };

View File

@ -49,5 +49,15 @@ GServerVideoPlugin video_plugin =
NULL, NULL,
NULL, NULL,
NULL, NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL NULL
}; };