From 29ddf320046c41f7aaee6edc1d277d4cedd3973f Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Fri, 9 Sep 2016 02:14:30 +0200 Subject: [PATCH] Add glDepthFunc() --- data/GServer.interface | 3 +++ include/GServer/video.h | 3 ++- src/gserver.c | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/data/GServer.interface b/data/GServer.interface index c8b4a2b..88a4e12 100644 --- a/data/GServer.interface +++ b/data/GServer.interface @@ -26,6 +26,9 @@ arg1=INT32 arg2=INT32 arg3=INT32 +[call::glDepthFunc] +arg1=UINT32 + [call::glDisable] arg1=UINT32 diff --git a/include/GServer/video.h b/include/GServer/video.h index df00964..07dcb33 100644 --- a/include/GServer/video.h +++ b/include/GServer/video.h @@ -64,7 +64,8 @@ typedef enum _GServerVideoProto1i typedef enum _GServerVideoProto1u { - GSERVER_VIDEO_PROTO1u_glDisable = 0, + GSERVER_VIDEO_PROTO1u_glDepthFunc = 0, + GSERVER_VIDEO_PROTO1u_glDisable, GSERVER_VIDEO_PROTO1u_glDisableClientState, GSERVER_VIDEO_PROTO1u_glEnable, GSERVER_VIDEO_PROTO1u_glEnableClientState, diff --git a/src/gserver.c b/src/gserver.c index 704afbe..c9f2084 100644 --- a/src/gserver.c +++ b/src/gserver.c @@ -366,6 +366,7 @@ GSERVER_PROTO1i(void, glBegin, uint32_t) GSERVER_PROTO1i(void, glClear, uint32_t) /* proto1u */ +GSERVER_PROTO1u(void, glDepthFunc, uint32_t) GSERVER_PROTO1u(void, glDisable, uint32_t) GSERVER_PROTO1u(void, glDisableClientState, uint32_t) GSERVER_PROTO1u(void, glEnable, uint32_t)