Small update for the X11 server/plugin, for the luls. This update moves the x11 server from a menu and into a media decoder, allowing it to be specified in shaders and played on walls etc (muh_bad or whatever).
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4025 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
3da350a3ed
commit
8fa45f2c65
7 changed files with 836 additions and 359 deletions
|
@ -44,6 +44,12 @@ BUILTINR(funcptr_t, Plug_GetEngineFunction, (char *funcname));
|
|||
BUILTINR(int, Plug_ExportToEngine, (char *funcname, int expnum));
|
||||
#undef ARGNAMES
|
||||
|
||||
#ifndef Q3_VM
|
||||
#define ARGNAMES ,funcname,func
|
||||
BUILTINR(qboolean, Plug_ExportNative, (char *funcname, void *func));
|
||||
#undef ARGNAMES
|
||||
#endif
|
||||
|
||||
#define ARGNAMES ,text
|
||||
BUILTIN(void, Con_Print, (char *text)); //on to main console.
|
||||
#undef ARGNAMES
|
||||
|
@ -170,10 +176,6 @@ BUILTIN(void, Draw_Colour4f, (float r, float g, float b, float a));
|
|||
BUILTIN(void, SCR_CenterPrint, (char *s));
|
||||
#undef ARGNAMES
|
||||
|
||||
#define ARGNAMES ,src,srcwidth,srcheight,x,y,width,height
|
||||
BUILTIN(void, Media_ShowFrameRGBA_32, (void *src, int srcwidth, int srcheight, int x, int y, int width, int height));
|
||||
#undef ARGNAMES
|
||||
|
||||
#define ARGNAMES ,mnum
|
||||
BUILTIN(void, Menu_Control, (int mnum));
|
||||
#undef ARGNAMES
|
||||
|
@ -286,6 +288,9 @@ void Plug_InitStandardBuiltins(void)
|
|||
CHECKBUILTIN(Con_Print);
|
||||
|
||||
CHECKBUILTIN(Plug_ExportToEngine);
|
||||
#ifndef Q3_VM
|
||||
CHECKBUILTIN(Plug_ExportNative);
|
||||
#endif
|
||||
CHECKBUILTIN(Sys_Error);
|
||||
|
||||
CHECKBUILTIN(ReadInputBuffer);
|
||||
|
@ -353,8 +358,6 @@ void Plug_InitStandardBuiltins(void)
|
|||
CHECKBUILTIN(Draw_Colour4f);
|
||||
CHECKBUILTIN(SCR_CenterPrint);
|
||||
|
||||
CHECKBUILTIN(Media_ShowFrameRGBA_32);
|
||||
|
||||
CHECKBUILTIN(GetPluginName);
|
||||
|
||||
//sub consoles (optional)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue