]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_gecko.h
fix sky drawing really this tiem
[xonotic/darkplaces.git] / cl_gecko.h
index 05b74e92c82f203ae0858a1daf9eaffebef09b2a..c95b410b7fe5a712a9d2e221db85e8ede704fe19 100644 (file)
@@ -1,40 +1,39 @@
-// Andreas Kirsch 07\r
-\r
-#ifndef CL_GECKO_H\r
-#define CL_GECKO_H\r
-\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
-       CLG_BET_UP,\r
-       CLG_BET_DOUBLECLICK,\r
-       // use for up + down (but dont use both)\r
-       CLG_BET_PRESS\r
-} clgecko_buttoneventtype_t;\r
-\r
-typedef struct clgecko_s clgecko_t;\r
-\r
-void CL_Gecko_Frame( void );\r
-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_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
-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
+// Andreas Kirsch 07
+
+#ifndef CL_GECKO_H
+#define CL_GECKO_H
+
+#include "cl_dyntexture.h"
+
+#define CLGECKOPREFIX                  CLDYNTEXTUREPREFIX "gecko/"
+
+typedef enum clgecko_buttoneventtype_e {
+       CLG_BET_DOWN,
+       CLG_BET_UP,
+       CLG_BET_DOUBLECLICK,
+       // use for up + down (but dont use both)
+       CLG_BET_PRESS
+} clgecko_buttoneventtype_t;
+
+typedef struct clgecko_s clgecko_t;
+
+void CL_Gecko_Frame( void );
+void CL_Gecko_Init( void );
+void CL_Gecko_Shutdown( void );
+
+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 );
+
+void CL_Gecko_NavigateToURI( clgecko_t *instance, const char *URI );
+// x and y between 0.0 and 1.0 (0.0 is top-left?)
+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, 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
+