diff options
-rw-r--r-- | st_api.h | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -42,6 +42,11 @@ * tracker managers. */ +#define ST_MODULE_OPENGL "st_module_OpenGL" +#define ST_MODULE_OPENGL_ES1 "st_module_OpenGL_ES1" +#define ST_MODULE_OPENGL_ES2 "st_module_OpenGL_ES2" +#define ST_MODULE_OPENVG "st_module_OpenVG" + struct pipe_context; struct pipe_texture; struct pipe_fence_handle; @@ -315,4 +320,17 @@ struct st_api void (*destroy)(struct st_api *api); }; +typedef struct st_api *(*st_create_api_proc)(const struct sm_api *smapi); + +struct st_module +{ + st_create_api_proc create; +}; + +/* these symbols should be dynamically looked up */ +extern PUBLIC const struct st_module st_module_OpenGL; +extern PUBLIC const struct st_module st_module_OpenGL_ES1; +extern PUBLIC const struct st_module st_module_OpenGL_ES2; +extern PUBLIC const struct st_module st_module_OpenVG; + #endif |