Update RingOpenGL 1.1 - Add Function (Source Code) : void glDrawPixels(GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels)
@@ -4052,6 +4052,36 @@ RING_FUNC(ring_glDrawElements)
glDrawElements( (GLenum ) (int) RING_API_GETNUMBER(1), (GLsizei ) (int) RING_API_GETNUMBER(2), (GLenum ) (int) RING_API_GETNUMBER(3),(void *) RING_API_GETCPOINTER(4,"void"));
}
+
+RING_FUNC(ring_glDrawPixels)
+{
+ if ( RING_API_PARACOUNT != 5 ) {
+ RING_API_ERROR(RING_API_BADPARACOUNT);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(2) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(3) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(4) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(5) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glDrawPixels( (GLsizei ) (int) RING_API_GETNUMBER(1), (GLsizei ) (int) RING_API_GETNUMBER(2), (GLenum ) (int) RING_API_GETNUMBER(3), (GLenum ) (int) RING_API_GETNUMBER(4),(void *) RING_API_GETCPOINTER(5,"void"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -4122,6 +4152,7 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("gldrawarrays",ring_glDrawArrays);
ring_vm_funcregister("gldrawbuffer",ring_glDrawBuffer);
ring_vm_funcregister("gldrawelements",ring_glDrawElements);
+ ring_vm_funcregister("gldrawpixels",ring_glDrawPixels);
ring_vm_funcregister("get_gl_zero",ring_get_gl_zero);
ring_vm_funcregister("get_gl_false",ring_get_gl_false);
ring_vm_funcregister("get_gl_logic_op",ring_get_gl_logic_op);
