C# Класс GameGraphics.WorldGraphics

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetGraphicsModel ( ) : GraphicsModel

Returns the GraphicsModel object that this class is using

GetSpriteStore ( ) : SpriteStore

Gets the SpriteStore object that this class uses when rendering.

Render ( SpriteBatch spriteBatch ) : void

Renders the game world this method is called during the games Draw method.

SetGraphicsModel ( GraphicsModel model ) : void

Sets the GraphicsModel that this class will reference and use to render the game world.

SetSpriteStore ( SpriteStore store ) : void

Sets the SpriteStore object that will hold all the sprites WorldGraphics will reference.

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

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

Returns the GraphicsModel object that this class is using
public GetGraphicsModel ( ) : GraphicsModel
Результат GraphicsModel

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

Gets the SpriteStore object that this class uses when rendering.
public GetSpriteStore ( ) : SpriteStore
Результат SpriteStore

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

Renders the game world this method is called during the games Draw method.
public Render ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch Contains graphics contexts for rendering on the game screen
Результат void

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

Sets the GraphicsModel that this class will reference and use to render the game world.
public SetGraphicsModel ( GraphicsModel model ) : void
model GraphicsModel The GraphicsModel object that this class will use
Результат void

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

Sets the SpriteStore object that will hold all the sprites WorldGraphics will reference.
public SetSpriteStore ( SpriteStore store ) : void
store SpriteStore The SpriteStore object to be used
Результат void