28 #include "../idlib/precompiled.h"
94 if ( !readDemo->
ReadInt( (
int&)dc ) ) {
107 for (
int i = 0;
i < 256;
i++ )
152 if ( newMap && demoTimeOffset ) {
161 if ( !readDemo->
ReadInt( h ) ) {
173 if ( !readDemo->
ReadInt( h ) ) {
236 common->
Printf(
"DC_SET_PORTAL_STATE: %i %i\n", data[0], data[1] );
275 for (
int i = 0;
i < 256;
i++ )
383 common->
Printf(
"write DC_DELETE_ENTITYDEF: %i\n", handle );
405 common->
Printf(
"write DC_DELETE_LIGHTDEF: %i\n", handle );
460 common->
Printf(
"write DC_UPDATE_LIGHTDEF: %i\n", handle );
583 for (
int i = 0; i < ent->
numJoints; i++) {
585 for (
int j = 0;
j < 12; ++
j)
686 for (
int i = 0; i < ent.
numJoints; i++) {
688 for (
int j = 0;
j < 12; ++
j)
707 if ( ent.
gui[ i ] ) {
bool ProcessDemoCommand(idDemoFile *readDemo, renderView_t *demoRenderView, int *demoTimeOffset)
virtual int WriteUnsignedChar(const unsigned char value)
void SetPortalState(qhandle_t portal, int blockingBits)
virtual int virtual int ReadInt(int &value)
idList< idRenderModel * > localModels
virtual int ReadChar(char &value)
const int MAX_GLOBAL_SHADER_PARMS
virtual void UpdateEntityDef(qhandle_t entityHandle, const renderEntity_t *re)
virtual void UpdateLightDef(qhandle_t lightHandle, const renderLight_t *rlight)
void WriteRenderEntity(qhandle_t handle, const renderEntity_t *ent)
struct renderEntity_s renderEntity_t
idList< idRenderEntityLocal * > entityDefs
const idMaterial * referenceShader
idRenderSystem * renderSystem
int suppressShadowInViewID
virtual bool InitFromMap(const char *mapName)
virtual idUserInterface * Alloc(void) const =0
const char * GetName(void) const
void WriteRenderLight(qhandle_t handle, const renderLight_t *light)
virtual const char * Name() const =0
virtual void ReadFromDemoFile(class idDemoFile *f)=0
virtual int Index(void) const =0
virtual const idMaterial * FindMaterial(const char *name, bool makeDefault=true)=0
class idGuiModel * demoGuiModel
virtual int WriteChar(const char value)
idUserInterfaceManager * uiManager
deferredEntityCallback_t callback
const idMaterial * customShader
const int MAX_ENTITY_SHADER_PARMS
void WriteFreeEntity(qhandle_t handle)
idList< idRenderLightLocal * > lightDefs
int suppressLightInViewID
float shaderParms[MAX_ENTITY_SHADER_PARMS]
void WriteRenderView(const renderView_t *renderView)
idCVar r_showDemo("r_showDemo","0", CVAR_RENDERER|CVAR_BOOL,"report reads and writes to the demo file")
virtual void AddModel(idRenderModel *model)=0
struct viewLight_s * next
int suppressShadowInLightID
struct viewLight_s * viewLights
doublePortal_t * doublePortals
bool noDynamicInteractions
void StartWritingDemo(idDemoFile *demo)
void WriteFreeLight(qhandle_t handle)
virtual int WriteInt(const int value)
virtual void FreeLightDef(qhandle_t lightHandle)
virtual void CaptureRenderToImage(const char *imageName)=0
struct viewEntity_s * next
const idDeclSkin * customSkin
virtual idRenderModel * FindModel(const char *modelName)=0
const idMaterial * globalMaterial
GLsizei GLsizei GLenum GLenum const GLvoid * data
virtual int ReadVec3(idVec3 &vec)
const int MAX_RENDERENTITY_GUI
void * Mem_Alloc16(const int size)
const float * ToFloatPtr(void) const
float shaderParms[MAX_GLOBAL_SHADER_PARMS]
virtual void Printf(const char *fmt,...) id_attribute((format(printf
virtual int ReadBool(bool &value)
idDeclManager * declManager
struct renderLight_s renderLight_t
int Append(const type &obj)
idRenderModelManager * renderModelManager
idRenderModel * prelightModel
struct viewEntity_s * viewEntitys
void ReadFromDemo(idDemoFile *demo)
virtual int WriteFloat(const float value)
virtual idSoundEmitter * EmitterForIndex(int index)=0
class idSoundEmitter * referenceSound
int suppressSurfaceInViewID
class idUserInterface * gui[MAX_RENDERENTITY_GUI]
const char * c_str(void) const
virtual int WriteMat3(const idMat3 &mat)
virtual void WriteToDemoFile(class idDemoFile *f)=0
const char * ReadHashString()
virtual void ReadFromDemoFile(class idDemoFile *f)=0
virtual const idDeclSkin * FindSkin(const char *name, bool makeDefault=true)=0
virtual void CropRenderSize(int width, int height, bool makePowerOfTwo=false, bool forceDimensions=false)=0
virtual int ReadMat3(idMat3 &mat)
virtual int ReadFloat(float &value)
void WriteVisibleDefs(const viewDef_t *viewDef)
virtual int WriteBool(const bool value)
idSoundEmitter * referenceSound
virtual void Error(const char *fmt,...) id_attribute((format(printf
const idMaterial * shader
virtual void FreeEntityDef(qhandle_t entityHandle)
float shaderParms[MAX_ENTITY_SHADER_PARMS]
struct renderView_s * remoteRenderView
virtual int WriteVec3(const idVec3 &vec)
virtual idRenderModel * AllocModel()=0
void WriteHashString(const char *str)