C# Class idTech4.Renderer.idRenderModel_Static

Inheritance: idRenderModel
显示文件 Open project: iainmckay/idtech4.net Class Usage Examples

Protected Properties

Property Type Description
_bounds idBounds
_name string
_purged bool

Public Methods

Method Description
AddSurface ( RenderModelSurface surface ) : void
FinishSurfaces ( ) : void

The mergeShadows option allows surfaces with different textures to share silhouette edges for shadow calculation, instead of leaving shared edges hanging. If any of the original shaders have the noSelfShadow flag set, the surfaces can't be merged, because they will need to be drawn in different order. If there is only one surface, a separate merged surface won't be generated. A model with multiple surfaces can't later have a skinned shader change the state of the noSelfShadow flag. ----------------- Creates mirrored copies of two sided surfaces with normal maps, which would otherwise light funny. Extends the bounds of deformed surfaces so they don't cull incorrectly at screen edges.

FreeVertexCache ( ) : void
GetBounds ( RenderEntityComponent renderEntity = null ) : idBounds
GetJointIndex ( idMD5Joint joint ) : int
GetJointIndex ( string name ) : int
GetJointName ( int index ) : string
GetNearestJoint ( int surfaceIndex, int a, int c, int b ) : int
GetSurface ( int index ) : RenderModelSurface
InitEmpty ( string name ) : void
InitFromFile ( string fileName ) : void
InstantiateDynamicModel ( idRenderEntity renderEntity, View view, idRenderModel cachedModel ) : idRenderModel
List ( ) : void
Load ( ) : void
MakeDefault ( ) : void
PartialInitFromFile ( string fileName ) : void
Print ( ) : void
Purge ( ) : void
Reset ( ) : void
TouchData ( ) : void
idRenderModel_Static ( ) : System

Private Methods

Method Description
AddCubeFace ( Surface tri, int faceNumber, Vector3 v1, Vector3 v2, Vector3 v3, Vector3 v4 ) : void

Method Details

AddSurface() public method

public AddSurface ( RenderModelSurface surface ) : void
surface RenderModelSurface
return void

FinishSurfaces() public method

The mergeShadows option allows surfaces with different textures to share silhouette edges for shadow calculation, instead of leaving shared edges hanging. If any of the original shaders have the noSelfShadow flag set, the surfaces can't be merged, because they will need to be drawn in different order. If there is only one surface, a separate merged surface won't be generated. A model with multiple surfaces can't later have a skinned shader change the state of the noSelfShadow flag. ----------------- Creates mirrored copies of two sided surfaces with normal maps, which would otherwise light funny. Extends the bounds of deformed surfaces so they don't cull incorrectly at screen edges.
public FinishSurfaces ( ) : void
return void

FreeVertexCache() public method

public FreeVertexCache ( ) : void
return void

GetBounds() public method

public GetBounds ( RenderEntityComponent renderEntity = null ) : idBounds
renderEntity RenderEntityComponent
return idBounds

GetJointIndex() public method

public GetJointIndex ( idMD5Joint joint ) : int
joint idMD5Joint
return int

GetJointIndex() public method

public GetJointIndex ( string name ) : int
name string
return int

GetJointName() public method

public GetJointName ( int index ) : string
index int
return string

GetNearestJoint() public method

public GetNearestJoint ( int surfaceIndex, int a, int c, int b ) : int
surfaceIndex int
a int
c int
b int
return int

GetSurface() public method

public GetSurface ( int index ) : RenderModelSurface
index int
return RenderModelSurface

InitEmpty() public method

public InitEmpty ( string name ) : void
name string
return void

InitFromFile() public method

public InitFromFile ( string fileName ) : void
fileName string
return void

InstantiateDynamicModel() public method

public InstantiateDynamicModel ( idRenderEntity renderEntity, View view, idRenderModel cachedModel ) : idRenderModel
renderEntity idRenderEntity
view View
cachedModel idRenderModel
return idRenderModel

List() public method

public List ( ) : void
return void

Load() public method

public Load ( ) : void
return void

MakeDefault() public method

public MakeDefault ( ) : void
return void

PartialInitFromFile() public method

public PartialInitFromFile ( string fileName ) : void
fileName string
return void

Print() public method

public Print ( ) : void
return void

Purge() public method

public Purge ( ) : void
return void

Reset() public method

public Reset ( ) : void
return void

TouchData() public method

public TouchData ( ) : void
return void

idRenderModel_Static() public method

public idRenderModel_Static ( ) : System
return System

Property Details

_bounds protected_oe property

protected idBounds _bounds
return idBounds

_name protected_oe property

protected string _name
return string

_purged protected_oe property

protected bool _purged
return bool