diff --git a/data/GServer.interface b/data/GServer.interface index a492ca1..093d81f 100644 --- a/data/GServer.interface +++ b/data/GServer.interface @@ -26,6 +26,10 @@ arg1=INT32 arg2=INT32 arg3=INT32 +[call::glColorMaterial] +arg1=UINT32 +arg2=UINT32 + [call::glDepthFunc] arg1=UINT32 diff --git a/include/GServer/video.h b/include/GServer/video.h index 73e8a4b..326e202 100644 --- a/include/GServer/video.h +++ b/include/GServer/video.h @@ -77,7 +77,8 @@ typedef enum _GServerVideoProto1u typedef enum _GServerVideoProto2u { - GSERVER_VIDEO_PROTO2u_glHint = 0 + GSERVER_VIDEO_PROTO2u_glColorMaterial = 0, + GSERVER_VIDEO_PROTO2u_glHint } GServerVideoProto2u; # define GSERVER_VIDEO_PROTO2u_LAST GSERVER_VIDEO_PROTO2u_glHint # define GSERVER_VIDEO_PROTO2u_COUNT (GSERVER_VIDEO_PROTO1u_LAST + 1) diff --git a/src/gserver.c b/src/gserver.c index 194115e..39ef661 100644 --- a/src/gserver.c +++ b/src/gserver.c @@ -391,6 +391,7 @@ GSERVER_PROTO1u(void, glEnableClientState, uint32_t) GSERVER_PROTO1u(bool, glIsEnabled, uint32_t) /* proto2u */ +GSERVER_PROTO2u(void, glColorMaterial, uint32_t, uint32_t) GSERVER_PROTO2u(void, glHint, uint32_t, uint32_t) /* proto3f */