C# Класс Indiefreaks.Xna.Rendering.Sprite.SpriteObject

The SpriteObject class stores a Material that is rendered with a SpriteContainer and reacts to CollisionManager events
Наследование: SceneObject, IContentHost
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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.

Описание методов

CalculateObjectBounds() защищенный Метод

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.
Результат void

LoadContent() публичный Метод

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
Результат void

SpriteObject() публичный Метод

Creates a new instance
public SpriteObject ( ) : Indiefreaks.Xna.Core
Результат Indiefreaks.Xna.Core

UnloadContent() публичный Метод

Unload all XNA ContentManager content
public UnloadContent ( IContentCatalogue catalogue ) : void
catalogue IContentCatalogue
Результат void

UpdateWorldAndWorldToObject() защищенный Метод

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.
Результат void