Modular rendering system. Patch by use.less01
This might break MSVC builds. I'll take care of it later
This commit is contained in:
parent
8ab958fab9
commit
40dfcee06e
24 changed files with 335 additions and 186 deletions
|
@ -131,8 +131,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 );
|
||||
|
||||
|
@ -141,6 +144,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) );
|
||||
|
||||
|
@ -160,12 +165,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue