OSDN Git Service

gallium: added st_get_proc_address()
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 17 Jun 2008 20:27:36 +0000 (14:27 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 18 Jun 2008 15:22:00 +0000 (09:22 -0600)
src/mesa/state_tracker/st_context.c
src/mesa/state_tracker/st_public.h

index 9decca8..1b3b999 100644 (file)
@@ -33,6 +33,7 @@
 #include "main/scissor.h"
 #include "vbo/vbo.h"
 #include "shader/shader_api.h"
+#include "glapi/glapi.h"
 #include "st_public.h"
 #include "st_context.h"
 #include "st_cb_accum.h"
@@ -243,6 +244,14 @@ void st_copy_context_state(struct st_context *dst,
 }
 
 
+
+st_proc st_get_proc_address(const char *procname)
+{
+   return (st_proc) _glapi_get_proc_address(procname);
+}
+
+
+
 void st_init_driver_functions(struct dd_function_table *functions)
 {
    _mesa_init_glsl_driver_functions(functions);
index 9d88ce9..a0dab33 100644 (file)
@@ -86,4 +86,11 @@ void st_finish( struct st_context *st );
 void st_notify_swapbuffers(struct st_framebuffer *stfb);
 void st_notify_swapbuffers_complete(struct st_framebuffer *stfb);
 
+
+/** Generic function type */
+typedef void (*st_proc)();
+
+st_proc st_get_proc_address(const char *procname);
+
+
 #endif