C# Class MyGame.Camera

Inheritance: IOObserver
Afficher le fichier Open project: mahmoudbahaa/XNA-Game-project Class Usage Examples

Méthodes publiques

Свойство Type Description
Position Vector3
Target Vector3

Protected Properties

Свойство Type Description
myGame MyGame

Méthodes publiques

Méthode Description
BoundingVolumeIsInView ( Microsoft.Xna.Framework.BoundingBox box ) : bool

Checks if the bounding box is in the camera frustrum or not

BoundingVolumeIsInView ( BoundingSphere sphere ) : bool

Checks if the bounding sphere is in the camera frustrum or not

Camera ( MyGame game ) : System

Constructor that initiliaze the projection matrix

Private Methods

Méthode Description
generateFrustum ( ) : void

Generate the camera frustrum from the view projection matrix

Method Details

BoundingVolumeIsInView() public méthode

Checks if the bounding box is in the camera frustrum or not
public BoundingVolumeIsInView ( Microsoft.Xna.Framework.BoundingBox box ) : bool
box Microsoft.Xna.Framework.BoundingBox the Bounding box to check
Résultat bool

BoundingVolumeIsInView() public méthode

Checks if the bounding sphere is in the camera frustrum or not
public BoundingVolumeIsInView ( BoundingSphere sphere ) : bool
sphere BoundingSphere the Bounding sphere to check
Résultat bool

Camera() public méthode

Constructor that initiliaze the projection matrix
public Camera ( MyGame game ) : System
game MyGame The instance of MyGame the game component is attached to
Résultat System

Property Details

Position public_oe property

public Vector3 Position
Résultat Vector3

Target public_oe property

public Vector3 Target
Résultat Vector3

myGame protected_oe property

protected MyGame myGame
Résultat MyGame