]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_gecko.h
remove support for GL_EXT_compiled_vertex_array extension
[xonotic/darkplaces.git] / cl_gecko.h
index ce380743f9ce76e8245d3ffb1a1cf7e0982aaed2..22ab2fa511fb858e712ef182e01bdee6ff0bbfe9 100644 (file)
@@ -1,15 +1,11 @@
 // Andreas Kirsch 07\r
 \r
-#ifdef SUPPORT_GECKO\r
-\r
 #ifndef CL_GECKO_H\r
 #define CL_GECKO_H\r
 \r
-#define DEFAULT_GECKO_WIDTH    512\r
-#define DEFAULT_GECKO_HEIGHT   DEFAULT_GECKO_WIDTH\r
+#include "cl_dyntexture.h"\r
 \r
 #define CLGECKOPREFIX                  CLDYNTEXTUREPREFIX "gecko/"\r
-#define MAX_GECKO_INSTANCES    16\r
 \r
 typedef enum clgecko_buttoneventtype_e {\r
        CLG_BET_DOWN,\r
@@ -25,17 +21,19 @@ void CL_Gecko_Frame( void );
 void CL_Gecko_Init( void );\r
 void CL_Gecko_Shutdown( void );\r
 \r
-clgecko_t * CL_Gecko_CreateBrowser( const char *name );\r
+clgecko_t * CL_Gecko_CreateBrowser( const char *name, int ownerProg );\r
 clgecko_t * CL_Gecko_FindBrowser( const char *name );\r
 void CL_Gecko_DestroyBrowser( clgecko_t *instance );\r
 \r
 void CL_Gecko_NavigateToURI( clgecko_t *instance, const char *URI );\r
+// x and y between 0.0 and 1.0 (0.0 is top-left?)\r
 void CL_Gecko_Event_CursorMove( clgecko_t *instance, float x, float y );\r
 \r
 // returns whether the key/button event was handled or not\r
-qboolean CL_Gecko_Event_Key( clgecko_t *instance, int key, clgecko_buttoneventtype_t eventtype );\r
-\r
-#endif\r
+qboolean CL_Gecko_Event_Key( clgecko_t *instance, keynum_t key, clgecko_buttoneventtype_t eventtype );\r
 \r
+void CL_Gecko_Resize( clgecko_t *instance, int width, int height );\r
+// get the ratio between gecko instance's size in the texture and the actual texture size..\r
+void CL_Gecko_GetTextureExtent( clgecko_t *instance, float* pwidth, float* pheight );\r
 #endif\r
 \r