]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_gecko.h
Fix crash in MD3 loading when no animscenes are loaded
[xonotic/darkplaces.git] / cl_gecko.h
index ce380743f9ce76e8245d3ffb1a1cf7e0982aaed2..3d6109210325ef73b626064522ed606bae7dabf6 100644 (file)
@@ -5,8 +5,7 @@
 #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
@@ -30,11 +29,15 @@ clgecko_t * CL_Gecko_FindBrowser( const char *name );
 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
+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
 #endif\r