Update RingOpenGL - Add Function (Source Code) : void glGetDoublev(GLenum pname,GLdouble * params)
@@ -2988,6 +2988,24 @@ RING_FUNC(ring_glGetBooleanv)
glGetBooleanv( (GLenum ) (int) RING_API_GETNUMBER(1),(GLboolean *) RING_API_GETCPOINTER(2,"GLboolean"));
}
+
+RING_FUNC(ring_glGetDoublev)
+{
+ if ( RING_API_PARACOUNT != 2 ) {
+ RING_API_ERROR(RING_API_MISS2PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(2) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glGetDoublev( (GLenum ) (int) RING_API_GETNUMBER(1),(GLdouble *) RING_API_GETCPOINTER(2,"GLdouble"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -3135,4 +3153,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glgenqueries",ring_glGenQueries);
ring_vm_funcregister("glgentextures",ring_glGenTextures);
ring_vm_funcregister("glgetbooleanv",ring_glGetBooleanv);
+ ring_vm_funcregister("glgetdoublev",ring_glGetDoublev);
}
