29 #ifndef __RENDERWORLD_H__
30 #define __RENDERWORLD_H__
40 #define PROC_FILE_EXT "proc"
41 #define PROC_FILE_ID "mapProcFile003"
255 static const int NUM_PORTAL_ATTRIBUTES = 3;
274 virtual bool InitFromMap(
const char *mapName ) = 0;
349 virtual int NumAreas(
void )
const = 0;
408 virtual void DebugCircle(
const idVec4 &
color,
const idVec3 &origin,
const idVec3 &dir,
const float radius,
const int numSteps,
const int lifetime = 0,
const bool depthTest =
false ) = 0;
421 virtual void DrawText(
const char *text,
const idVec3 &origin,
float scale,
const idVec4 &
color,
const idMat3 &viewAxis,
const int align = 1,
const int lifetime = 0,
bool depthTest =
false ) = 0;
virtual bool Trace(modelTrace_t &trace, const idVec3 &start, const idVec3 &end, const float radius, bool skipDynamic=true, bool skipPlayer=false) const =0
virtual guiPoint_t GuiTrace(qhandle_t entityHandle, const idVec3 start, const idVec3 end) const =0
const int SHADERPARM_MD3_BACKLERP
const int SHADERPARM_DIVERSITY
virtual void FreeLightDef(qhandle_t lightHandle)=0
const int MAX_GLOBAL_SHADER_PARMS
virtual void DebugArrow(const idVec4 &color, const idVec3 &start, const idVec3 &end, int size, const int lifetime=0)=0
virtual void DebugAxis(const idVec3 &origin, const idMat3 &axis)=0
const int SHADERPARM_BEAM_END_Z
bool(* deferredEntityCallback_t)(renderEntity_s *, const renderView_s *)
virtual qhandle_t AddEntityDef(const renderEntity_t *re)=0
struct renderView_s renderView_t
virtual bool ProcessDemoCommand(idDemoFile *readDemo, renderView_t *demoRenderView, int *demoTimeOffset)=0
GLenum GLenum GLenum GLenum GLenum scale
virtual void SetRenderView(const renderView_t *renderView)=0
struct renderEntity_s renderEntity_t
const idMaterial * referenceShader
const idMaterial * material
virtual void DebugBox(const idVec4 &color, const idBox &box, const int lifetime=0)=0
const int SHADERPARM_SPRITE_WIDTH
int suppressShadowInViewID
const int SHADERPARM_BEAM_END_Y
virtual int NumPortalsInArea(int areaNum)=0
struct modelTrace_s modelTrace_t
const int SHADERPARM_GREEN
virtual void ProjectDecal(qhandle_t entityHandle, const idFixedWinding &winding, const idVec3 &projectionOrigin, const bool parallel, const float fadeDepth, const idMaterial *material, const int startTime)=0
virtual qhandle_t AddLightDef(const renderLight_t *rlight)=0
const int SHADERPARM_BEAM_END_X
const int SHADERPARM_BEAM_WIDTH
deferredEntityCallback_t callback
virtual bool CheckAreaForPortalSky(int areaNum)=0
const int SHADERPARM_MD5_SKINSCALE
virtual void StartWritingDemo(idDemoFile *demo)=0
const idMaterial * customShader
virtual int NumPortals(void) const =0
const int SHADERPARM_ALPHA
const int MAX_ENTITY_SHADER_PARMS
int suppressLightInViewID
float shaderParms[MAX_ENTITY_SHADER_PARMS]
virtual bool FastWorldTrace(modelTrace_t &trace, const idVec3 &start, const idVec3 &end) const =0
const int SHADERPARM_TIMESCALE
virtual void ProjectDecalOntoWorld(const idFixedWinding &winding, const idVec3 &projectionOrigin, const bool parallel, const float fadeDepth, const idMaterial *material, const int startTime)=0
int suppressShadowInLightID
const int SHADERPARM_BLUE
virtual void DebugWinding(const idVec4 &color, const idWinding &w, const idVec3 &origin, const idMat3 &axis, const int lifetime=0, const bool depthTest=false)=0
virtual void SetPortalState(qhandle_t portal, int blockingBits)=0
bool noDynamicInteractions
virtual void FreeEntityDef(qhandle_t entityHandle)=0
virtual void DebugCone(const idVec4 &color, const idVec3 &apex, const idVec3 &dir, float radius1, float radius2, const int lifetime=0)=0
virtual void DebugLine(const idVec4 &color, const idVec3 &start, const idVec3 &end, const int lifetime=0, const bool depthTest=false)=0
const int SHADERPARM_MODE
GLubyte GLubyte GLubyte GLubyte w
idVec3 vec3_origin(0.0f, 0.0f, 0.0f)
virtual exitPortal_t GetPortal(int areaNum, int portalNum)=0
const idDeclSkin * customSkin
const idMaterial * globalMaterial
const int SHADERPARM_TIME_OF_DEATH
const int MAX_RENDERENTITY_GUI
virtual void DebugFrustum(const idVec4 &color, const idFrustum &frustum, const bool showFromOrigin=false, const int lifetime=0)=0
virtual void DebugClearLines(int time)=0
float shaderParms[MAX_GLOBAL_SHADER_PARMS]
virtual bool InitFromMap(const char *mapName)=0
virtual void UpdateEntityDef(qhandle_t entityHandle, const renderEntity_t *re)=0
virtual void DrawText(const char *text, const idVec3 &origin, float scale, const idVec4 &color, const idMat3 &viewAxis, const int align=1, const int lifetime=0, bool depthTest=false)=0
virtual void DebugSphere(const idVec4 &color, const idSphere &sphere, const int lifetime=0, bool depthTest=false)=0
const int SHADERPARM_TIMEOFFSET
virtual void UpdateLightDef(qhandle_t lightHandle, const renderLight_t *rlight)=0
virtual const renderLight_t * GetRenderLight(qhandle_t lightHandle) const =0
const int SHADERPARM_MD3_FRAME
struct renderLight_s renderLight_t
const int SHADERPARM_MD3_LASTFRAME
virtual void GenerateAllInteractions()=0
virtual qhandle_t FindPortal(const idBounds &b) const =0
idRenderModel * prelightModel
virtual void RemoveDecals(qhandle_t entityHandle)=0
const int SHADERPARM_SPRITE_HEIGHT
virtual int NumAreas(void) const =0
virtual void StopWritingDemo()=0
virtual bool AreasAreConnected(int areaNum1, int areaNum2, portalConnection_t connection)=0
class idSoundEmitter * referenceSound
virtual void DebugCircle(const idVec4 &color, const idVec3 &origin, const idVec3 &dir, const float radius, const int numSteps, const int lifetime=0, const bool depthTest=false)=0
int suppressSurfaceInViewID
class idUserInterface * gui[MAX_RENDERENTITY_GUI]
virtual void RenderScene(const renderView_t *renderView)=0
virtual void DebugPolygon(const idVec4 &color, const idWinding &winding, const int lifeTime=0, const bool depthTest=false)=0
virtual void DebugClearPolygons(int time)=0
virtual int GetPortalState(qhandle_t portal)=0
const renderEntity_t * entity
virtual void ProjectOverlay(qhandle_t entityHandle, const idPlane localTextureAxis[2], const idMaterial *material)=0
virtual void RegenerateWorld()=0
virtual void DebugBounds(const idVec4 &color, const idBounds &bounds, const idVec3 &org=vec3_origin, const int lifetime=0)=0
virtual bool ModelTrace(modelTrace_t &trace, qhandle_t entityHandle, const idVec3 &start, const idVec3 &end, const float radius) const =0
virtual int PointInArea(const idVec3 &point) const =0
idSoundEmitter * referenceSound
const idMaterial * shader
float shaderParms[MAX_ENTITY_SHADER_PARMS]
virtual int BoundsInAreas(const idBounds &bounds, int *areas, int maxAreas) const =0
struct renderView_s * remoteRenderView
virtual const renderEntity_t * GetRenderEntity(qhandle_t entityHandle) const =0
const int SHADERPARM_PARTICLE_STOPTIME