C# Class Indiefreaks.Xna.Rendering.Sprite.SpriteObject

The SpriteObject class stores a Material that is rendered with a SpriteContainer and reacts to CollisionManager events
Inheritance: SceneObject, IContentHost
Afficher le fichier Open project: Indiefreaks/igf

Méthodes publiques

Méthode Description
LoadContent ( IContentCatalogue catalogue, Microsoft.Xna.Framework.Content.ContentManager manager ) : void

Load all XNA ContentManager content

SpriteObject ( ) : Indiefreaks.Xna.Core

Creates a new instance

UnloadContent ( IContentCatalogue catalogue ) : void

Unload all XNA ContentManager content

Méthodes protégées

Méthode Description
CalculateObjectBounds ( Microsoft.Xna.Framework.BoundingBox &objectboundingbox, BoundingSphere &objectboundingsphere ) : void

Calculates the object bounds.

UpdateWorldAndWorldToObject ( Matrix &world, Matrix &worldtoobj ) : void

Updates the object world space and inverse world space transforms. Override to perform custom code when the world transform changes.

Method Details

CalculateObjectBounds() protected méthode

Calculates the object bounds.
protected CalculateObjectBounds ( Microsoft.Xna.Framework.BoundingBox &objectboundingbox, BoundingSphere &objectboundingsphere ) : void
objectboundingbox Microsoft.Xna.Framework.BoundingBox Object bounds to update.
objectboundingsphere BoundingSphere Object bounds to update.
Résultat void

LoadContent() public méthode

Load all XNA ContentManager content
public LoadContent ( IContentCatalogue catalogue, Microsoft.Xna.Framework.Content.ContentManager manager ) : void
catalogue IContentCatalogue
manager Microsoft.Xna.Framework.Content.ContentManager XNA content manage
Résultat void

SpriteObject() public méthode

Creates a new instance
public SpriteObject ( ) : Indiefreaks.Xna.Core
Résultat Indiefreaks.Xna.Core

UnloadContent() public méthode

Unload all XNA ContentManager content
public UnloadContent ( IContentCatalogue catalogue ) : void
catalogue IContentCatalogue
Résultat void

UpdateWorldAndWorldToObject() protected méthode

Updates the object world space and inverse world space transforms. Override to perform custom code when the world transform changes.
protected UpdateWorldAndWorldToObject ( Matrix &world, Matrix &worldtoobj ) : void
world Microsoft.Xna.Framework.Matrix World space transform.
worldtoobj Microsoft.Xna.Framework.Matrix Inverse world space transform.
Résultat void