C# Class idTech4.Renderer.idRenderModel_Static

Inheritance: idRenderModel
Afficher le fichier Open project: iainmckay/idtech4.net Class Usage Examples

Protected Properties

Свойство Type Description
_bounds idBounds
_name string
_purged bool

Méthodes publiques

Méthode 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

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

Method Details

AddSurface() public méthode

public AddSurface ( RenderModelSurface surface ) : void
surface RenderModelSurface
Résultat void

FinishSurfaces() public méthode

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
Résultat void

FreeVertexCache() public méthode

public FreeVertexCache ( ) : void
Résultat void

GetBounds() public méthode

public GetBounds ( RenderEntityComponent renderEntity = null ) : idBounds
renderEntity RenderEntityComponent
Résultat idBounds

GetJointIndex() public méthode

public GetJointIndex ( idMD5Joint joint ) : int
joint idMD5Joint
Résultat int

GetJointIndex() public méthode

public GetJointIndex ( string name ) : int
name string
Résultat int

GetJointName() public méthode

public GetJointName ( int index ) : string
index int
Résultat string

GetNearestJoint() public méthode

public GetNearestJoint ( int surfaceIndex, int a, int c, int b ) : int
surfaceIndex int
a int
c int
b int
Résultat int

GetSurface() public méthode

public GetSurface ( int index ) : RenderModelSurface
index int
Résultat RenderModelSurface

InitEmpty() public méthode

public InitEmpty ( string name ) : void
name string
Résultat void

InitFromFile() public méthode

public InitFromFile ( string fileName ) : void
fileName string
Résultat void

InstantiateDynamicModel() public méthode

public InstantiateDynamicModel ( idRenderEntity renderEntity, View view, idRenderModel cachedModel ) : idRenderModel
renderEntity idRenderEntity
view View
cachedModel idRenderModel
Résultat idRenderModel

List() public méthode

public List ( ) : void
Résultat void

Load() public méthode

public Load ( ) : void
Résultat void

MakeDefault() public méthode

public MakeDefault ( ) : void
Résultat void

PartialInitFromFile() public méthode

public PartialInitFromFile ( string fileName ) : void
fileName string
Résultat void

Print() public méthode

public Print ( ) : void
Résultat void

Purge() public méthode

public Purge ( ) : void
Résultat void

Reset() public méthode

public Reset ( ) : void
Résultat void

TouchData() public méthode

public TouchData ( ) : void
Résultat void

idRenderModel_Static() public méthode

public idRenderModel_Static ( ) : System
Résultat System

Property Details

_bounds protected_oe property

protected idBounds _bounds
Résultat idBounds

_name protected_oe property

protected string _name
Résultat string

_purged protected_oe property

protected bool _purged
Résultat bool