]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_gecko.h
changed the Sys_Error to a Con_Printf. LordHavoc, please check if the equation REALLY...
[xonotic/darkplaces.git] / cl_gecko.h
index c5bb63d230ec9e3dcf0fd8b084708881aa4900b4..fd12e801ec8d085f5938453e568393ef59effdef 100644 (file)
@@ -1,15 +1,10 @@
 // Andreas Kirsch 07\r
 \r
-#ifdef SUPPORT_GECKO\r
-\r
 #ifndef CL_GECKO_H\r
 #define CL_GECKO_H\r
 \r
 #include "cl_dyntexture.h"\r
 \r
-#define DEFAULT_GECKO_WIDTH    512\r
-#define DEFAULT_GECKO_HEIGHT   DEFAULT_GECKO_WIDTH\r
-\r
 #define CLGECKOPREFIX                  CLDYNTEXTUREPREFIX "gecko/"\r
 #define MAX_GECKO_INSTANCES    16\r
 \r
@@ -27,7 +22,7 @@ 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
@@ -36,9 +31,10 @@ void CL_Gecko_NavigateToURI( clgecko_t *instance, const char *URI );
 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