Method | Description | |
---|---|---|
AddEntityDefinition ( |
||
DebugClearLines ( int time ) : void | ||
DebugClearPolygons ( int time ) : void | ||
Dispose ( ) : void | ||
FindViewLightsAndEntities ( ) : void |
All the modelrefs and lightrefs that are in visible areas will have viewEntitys and viewLights created for them. The scissorRects on the viewEntitys and viewLights may be empty if they were considered, but not actually visible. |
|
GenerateInteractions ( ) : void |
Force the generation of all light / surface interactions at the start of a level. If this isn't called, they will all be dynamically generated This really isn't all that helpful anymore, because the calculation of shadows and light interactions is deferred from idRenderWorld::CreateLightDefInteractions(), but we use it as an oportunity to size the interactionTable. |
|
GetRenderEntity ( int handle ) : |
||
InitFromMap ( string name ) : bool |
A NULL or empty name will make a world without a map model, which is still useful for displaying a bare model. |
|
RenderScene ( |
Rendering a scene may actually render multiple subviews for mirrors and portals, and may render composite textures for gui console screens and light projections. It would also be acceptable to render a scene multiple times, for "rear view mirrors", etc.
|
|
UpdateEntityDefinition ( |
Does not write to the demo file, which will only be updated for visible entities.
|
|
UpdateEntityDefinition ( int index, |
Does not write to the demo file, which will only be updated for visible entities.
|
Method | Description | |
---|---|---|
AddAreaEntityReferences ( int areaNumber, |
Any models that are visible through the current portalStack will have their scissor.
|
|
AddAreaReferences ( int areaNumber, |
This may be entered multiple times with different planes if more than one portal sees into the area.
|
|
AddEntityRefToArea ( |
This is called by R_PushVolumeIntoTree and also directly for the world model references that are precalculated.
|
|
AddWorldModelEntities ( ) : void | ||
BuildConnectedAreas ( ) : void |
This is only valid for a given view, not all views in a frame.
|
|
BuildConnectedAreas_r ( int areaNumber ) : void | ||
ClearPortalStates ( ) : void | ||
ClearWorld ( ) : void |
Sets up for a single area world.
|
|
CommonChildrenArea ( |
||
CreateEntityReferences ( |
Creates all needed model references in portal areas, chaining them to both the area and the entityDef. Bumps tr.viewCount.. |
|
CullEntityByPortals ( |
Return true if the entity reference bounds do not intersect the current portal chain.
|
|
Dispose ( bool disposing ) : void | ||
FloodConnectedAreas ( |
||
FloodViewThroughArea ( Vector3 origin, int areaNumber, |
||
FlowViewThroughPortals ( Vector3 origin, int planeCount, Plane planes ) : void |
Finds viewLights and viewEntities by flowing from an origin through the visible portals. origin point can see into. The planes array defines a volume (positive sides facing in) that should contain the origin, such as a view frustum or a point light box. Zero planes assumes an unbounded volume.
|
|
FreeDefs ( ) : void | ||
FreeEntityDef ( int index ) : void | ||
FreeEntityDefDerivedData ( |
||
FreeWorld ( ) : void | ||
ParseInterAreaPortals ( |
||
ParseModel ( |
||
ParseNodes ( |
||
ParseShadowModel ( |
||
PointInArea ( Vector3 point ) : int |
Will return -1 if the point is not in an area, otherwise it will return 0 <= value < tr.world->numPortalAreas.
|
|
PortalIsFoggedOut ( |
||
PushVolumeIntoTree ( |
||
PushVolumeIntoTree_r ( |
Used for both light volumes and model volumes. |
|
ScreenRectangleFromWinding ( |
||
SetEntityDefViewEntity ( |
If the entityDef isn't already on the viewEntity list, create a viewEntity and add it to the list with an empty scissor rect. This does not instantiate dynamic models for the entity yet. |
|
SetupAreaReferences ( ) : void | ||
idRenderWorld ( ) : System |
public AddEntityDefinition ( |
||
renderComponent | ||
return |
public DebugClearPolygons ( int time ) : void | ||
time | int | |
return | void |
public GetRenderEntity ( int handle ) : |
||
handle | int | |
return |
public RenderScene ( |
||
renderView | ||
return | void |
public UpdateEntityDefinition ( |
||
renderEntity | ||
renderComponent | ||
return | void |
public UpdateEntityDefinition ( int index, |
||
index | int | |
renderComponent | ||
return | void |