summaryrefslogtreecommitdiff
path: root/src/renderer/tr_public.h
diff options
context:
space:
mode:
authorThilo Schulz <arny@ats.s.bawue.de>2011-08-01 01:19:55 +0000
committerTim Angus <tim@ngus.net>2013-01-10 23:11:05 +0000
commit819546192265e70832c75cecc29dce929a4feeec (patch)
treea345b3d876d8dbdcccf1b13ff450fe0227bf2176 /src/renderer/tr_public.h
parent500076c2e63329331c2a98e88cfa34f8044a7b76 (diff)
Modular rendering system. Patch by use.less01 This might break MSVC builds. I'll take care of it later
Diffstat (limited to 'src/renderer/tr_public.h')
-rw-r--r--src/renderer/tr_public.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/renderer/tr_public.h b/src/renderer/tr_public.h
index fd2e4c05..d95a0023 100644
--- a/src/renderer/tr_public.h
+++ b/src/renderer/tr_public.h
@@ -133,8 +133,11 @@ typedef struct {
cvar_t *(*Cvar_Get)( const char *name, const char *value, int flags );
void (*Cvar_Set)( const char *name, const char *value );
+ void (*Cvar_SetValue) (const char *name, float value);
void (*Cvar_CheckRange)( cvar_t *cv, float minVal, float maxVal, qboolean shouldBeIntegral );
+ int (*Cvar_VariableIntegerValue) (const char *var_name);
+
void (*Cmd_AddCommand)( const char *name, void(*cmd)(void) );
void (*Cmd_RemoveCommand)( const char *name );
@@ -143,6 +146,8 @@ typedef struct {
void (*Cmd_ExecuteText) (int exec_when, const char *text);
+ byte *(*CM_ClusterPVS)(int cluster);
+
// visualization for debugging collision detection
void (*CM_DrawDebugSurface)( void (*drawPoly)(int color, int numPoints, float *points) );
@@ -162,12 +167,30 @@ typedef struct {
e_status (*CIN_RunCinematic) (int handle);
void (*CL_WriteAVIVideoFrame)( const byte *buffer, int size );
+
+ // input event handling
+ void (*IN_Init)( void );
+ void (*IN_Shutdown)( void );
+ void (*IN_Restart)( void );
+
+ // math
+ long (*ftol)(float f);
+
+ // system stuff
+ void (*Sys_SetEnv)( const char *name, const char *value );
+ void (*Sys_GLimpSafeInit)( void );
+ void (*Sys_GLimpInit)( void );
+ qboolean (*Sys_LowPhysicalMemory)( void );
} refimport_t;
// this is the only function actually exported at the linker level
// If the module can't init to a valid rendering state, NULL will be
// returned.
+#ifdef USE_RENDERER_DLOPEN
+typedef refexport_t* (QDECL *GetRefAPI_t) (int apiVersion, refimport_t * rimp);
+#else
refexport_t*GetRefAPI( int apiVersion, refimport_t *rimp );
+#endif
#endif // __TR_PUBLIC_H