Update RingOpenGL 1.1 - Add Constant (Source Code) : GL_CURRENT_RASTER_POSITION
@@ -510,6 +510,11 @@ RING_FUNC(ring_get_gl_current_raster_texture_coords)
RING_API_RETNUMBER(GL_CURRENT_RASTER_TEXTURE_COORDS);
}
+RING_FUNC(ring_get_gl_current_raster_position)
+{
+ RING_API_RETNUMBER(GL_CURRENT_RASTER_POSITION);
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("get_gl_zero",ring_get_gl_zero);
@@ -612,4 +617,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("get_gl_current_raster_color",ring_get_gl_current_raster_color);
ring_vm_funcregister("get_gl_current_raster_index",ring_get_gl_current_raster_index);
ring_vm_funcregister("get_gl_current_raster_texture_coords",ring_get_gl_current_raster_texture_coords);
+ ring_vm_funcregister("get_gl_current_raster_position",ring_get_gl_current_raster_position);
}
