C# Class UHSampleGame.CoreObjects.StaticModel

Afficher le fichier Open project: holtkampw/UH-Sample-XNA-Project Class Usage Examples

Méthodes publiques

Свойство Type Description
Position Vector3
currentGlowScale float
elapsedGlowTime int
endGlowScale float
glow bool
maxGlowTime int
startGlowScale float

Protected Properties

Свойство Type Description
game Microsoft.Xna.Framework.Game
scale float

Méthodes publiques

Méthode Description
Draw ( GameTime gameTime ) : void
RotateX ( float rotation ) : void
RotateY ( float rotation ) : void
RotateZ ( float rotation ) : void
SetupModel ( Model model ) : void

Adds a model to the Static Model and performs setup

SetupModel ( Model newModel, Vector3 position ) : void

Adds a model to the Static Model and performs setup

StaticModel ( ) : System

Default Constructor to setup Model

StaticModel ( Model model ) : System

Constructor consisting of a given model

StaticModel ( Model newModel, Vector3 position ) : System

Constructor consisting of a given model

StaticModel ( Vector3 position ) : System

Default Constructor to setup Model

Update ( GameTime gameTime ) : void
UpdateTransforms ( GameTime gameTime ) : void
UpdateView ( ) : void

Méthodes protégées

Méthode Description
SetupCamera ( ) : void

Sets up default camera information

SetupModel ( ) : void
SetupModel ( Vector3 position ) : void

Method Details

Draw() public méthode

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

RotateX() public méthode

public RotateX ( float rotation ) : void
rotation float
Résultat void

RotateY() public méthode

public RotateY ( float rotation ) : void
rotation float
Résultat void

RotateZ() public méthode

public RotateZ ( float rotation ) : void
rotation float
Résultat void

SetupCamera() protected méthode

Sets up default camera information
protected SetupCamera ( ) : void
Résultat void

SetupModel() protected méthode

protected SetupModel ( ) : void
Résultat void

SetupModel() public méthode

Adds a model to the Static Model and performs setup
public SetupModel ( Model model ) : void
model Microsoft.Xna.Framework.Graphics.Model Model for this instance
Résultat void

SetupModel() public méthode

Adds a model to the Static Model and performs setup
public SetupModel ( Model newModel, Vector3 position ) : void
newModel Microsoft.Xna.Framework.Graphics.Model
position Vector3
Résultat void

SetupModel() protected méthode

protected SetupModel ( Vector3 position ) : void
position Vector3
Résultat void

StaticModel() public méthode

Default Constructor to setup Model
public StaticModel ( ) : System
Résultat System

StaticModel() public méthode

Constructor consisting of a given model
public StaticModel ( Model model ) : System
model Microsoft.Xna.Framework.Graphics.Model Model for use
Résultat System

StaticModel() public méthode

Constructor consisting of a given model
public StaticModel ( Model newModel, Vector3 position ) : System
newModel Microsoft.Xna.Framework.Graphics.Model
position Vector3
Résultat System

StaticModel() public méthode

Default Constructor to setup Model
public StaticModel ( Vector3 position ) : System
position Vector3
Résultat System

Update() public méthode

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

UpdateTransforms() public méthode

public UpdateTransforms ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

UpdateView() public méthode

public UpdateView ( ) : void
Résultat void

Property Details

Position public_oe property

The position of the object in 3D space
public Vector3 Position
Résultat Vector3

currentGlowScale public_oe property

public float currentGlowScale
Résultat float

elapsedGlowTime public_oe property

public int elapsedGlowTime
Résultat int

endGlowScale public_oe property

public float endGlowScale
Résultat float

game protected_oe property

The Game the object is in
protected Game,Microsoft.Xna.Framework game
Résultat Microsoft.Xna.Framework.Game

glow public_oe property

public bool glow
Résultat bool

maxGlowTime public_oe property

public int maxGlowTime
Résultat int

scale protected_oe property

protected float scale
Résultat float

startGlowScale public_oe property

public float startGlowScale
Résultat float