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
ファイルを表示 Open project: Indiefreaks/igf

Public Methods

Method 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

Protected Methods

Method 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 method

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.
return void

LoadContent() public method

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
return void

SpriteObject() public method

Creates a new instance
public SpriteObject ( ) : Indiefreaks.Xna.Core
return Indiefreaks.Xna.Core

UnloadContent() public method

Unload all XNA ContentManager content
public UnloadContent ( IContentCatalogue catalogue ) : void
catalogue IContentCatalogue
return void

UpdateWorldAndWorldToObject() protected method

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.
return void