X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=cl_gecko.h;h=fd12e801ec8d085f5938453e568393ef59effdef;hb=58370d86168c0a67b624b4dec4fe5d296c0d8c99;hp=b4efeffafd83a8a5527fa865da80c0069ddd9c59;hpb=a6cd51357b59bc588e47d3827953340c4de33d12;p=xonotic%2Fdarkplaces.git diff --git a/cl_gecko.h b/cl_gecko.h index b4efeffa..fd12e801 100644 --- a/cl_gecko.h +++ b/cl_gecko.h @@ -1,7 +1,5 @@ // Andreas Kirsch 07 -#ifdef SUPPORT_GECKO - #ifndef CL_GECKO_H #define CL_GECKO_H @@ -24,7 +22,7 @@ void CL_Gecko_Frame( void ); void CL_Gecko_Init( void ); void CL_Gecko_Shutdown( void ); -clgecko_t * CL_Gecko_CreateBrowser( const char *name ); +clgecko_t * CL_Gecko_CreateBrowser( const char *name, int ownerProg ); clgecko_t * CL_Gecko_FindBrowser( const char *name ); void CL_Gecko_DestroyBrowser( clgecko_t *instance ); @@ -33,11 +31,10 @@ void CL_Gecko_NavigateToURI( clgecko_t *instance, const char *URI ); void CL_Gecko_Event_CursorMove( clgecko_t *instance, float x, float y ); // returns whether the key/button event was handled or not -qboolean CL_Gecko_Event_Key( clgecko_t *instance, int key, clgecko_buttoneventtype_t eventtype ); - -void CL_Gecko_Resize( clgecko_t *instance, int w, int h ); -void CL_Gecko_GetTextureExtent( clgecko_t *instance, float* u, float* v ); -#endif +qboolean CL_Gecko_Event_Key( clgecko_t *instance, keynum_t key, clgecko_buttoneventtype_t eventtype ); +void CL_Gecko_Resize( clgecko_t *instance, int width, int height ); +// get the ratio between gecko instance's size in the texture and the actual texture size.. +void CL_Gecko_GetTextureExtent( clgecko_t *instance, float* pwidth, float* pheight ); #endif