X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=prvm_cmds.h;h=b9d16bdb8ca8ae5dce0f03953ff16a824cdc72a6;hp=1efbd2612e8d873bc80799409b89650aa1a16865;hb=52346e02f29e08dd01f1b723245d06a214700a26;hpb=6cdea2644603f8f6644976b73797f92b5f2e10c0 diff --git a/prvm_cmds.h b/prvm_cmds.h index 1efbd261..b9d16bdb 100644 --- a/prvm_cmds.h +++ b/prvm_cmds.h @@ -126,7 +126,7 @@ perhaps only : Menu : WriteMsg WriteString(string data, float dest, float desto) WriteEntity(entity data, float dest, float desto) -Client & Menu : draw functions & video functions +Client & Menu : draw functions & video functions (& gecko functions) =================================================== float iscachedpic(string pic) @@ -134,7 +134,10 @@ string precache_pic(string pic) freepic(string s) float drawcharacter(vector position, float character, vector scale, vector rgb, float alpha, float flag) float drawstring(vector position, string text, vector scale, vector rgb, float alpha, float flag) +float drawcolorcodedstring(vector position, string text, vector scale, float alpha, float flag) +float stringwidth(string text, float handleColors) float drawpic(vector position, string pic, vector size, vector rgb, float alpha, float flag) +float drawsubpic(vector position, vector size, string pic, vector srcPos, vector srcSize, vector rgb, float alpha, float flag) float drawfill(vector position, vector size, vector rgb, float alpha, float flag) drawsetcliparea(float x, float y, float width, float height) drawresetcliparea() @@ -146,6 +149,14 @@ void cin_setstate(string name, float type) float cin_getstate(string name) void cin_restart(string name) +#ifdef SUPPORT_GECKO +float[bool] gecko_create( string name ) +void gecko_destroy( string name ) +void gecko_navigate( string name, string URI ) +float[bool] gecko_keyevent( string name, float key, float eventtype ) +void gecko_mousemove( string name, float x, float y ) +#endif + ============================================================================== menu cmd list: =============== @@ -184,6 +195,9 @@ float getserverlistindexforkey(string key) #include "mprogdefs.h" #include "cl_video.h" +#ifdef SUPPORT_GECKO +#include "cl_gecko.h" +#endif //============================================================================ // nice helper macros @@ -324,7 +338,9 @@ void VM_freepic(void); void VM_drawcharacter(void); void VM_drawstring(void); void VM_drawcolorcodedstring(void); +void VM_stringwidth(void); void VM_drawpic(void); +void VM_drawsubpic(void); void VM_drawfill(void); void VM_drawsetcliparea(void); void VM_drawresetcliparea(void); @@ -342,6 +358,14 @@ void VM_cin_setstate( void ); void VM_cin_getstate( void ); void VM_cin_restart( void ); +#ifdef SUPPORT_GECKO +void VM_gecko_create( void ); +void VM_gecko_destroy( void ); +void VM_gecko_navigate( void ); +void VM_gecko_keyevent( void ); +void VM_gecko_movemouse( void ); +#endif + void VM_drawline (void); void VM_bitshift (void);