#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
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