C# Class Indiefreaks.Xna.Rendering.Gui.Image

The Image control displays a texture
Make sure to set the Scale correctly as it is used to define the width and height of the control
Inheritance: Control
Afficher le fichier Open project: Indiefreaks/igf

Méthodes publiques

Méthode Description
Clone ( ) : Control
Image ( string texturePath ) : System

Creates a new instance

LoadContent ( IContentCatalogue catalogue, Microsoft.Xna.Framework.Content.ContentManager manager ) : void

Load all XNA ContentManager content

Refresh ( GraphicsDevice device ) : void

Refreshes the control properties when it requires to be redrawn to the RenderTarget

Render ( SpriteBatch spriteRenderer ) : void

Renders the control

UnloadContent ( IContentCatalogue catalogue ) : void

Unload all XNA ContentManager content

Method Details

Clone() public méthode

public Clone ( ) : Control
Résultat Control

Image() public méthode

Creates a new instance
public Image ( string texturePath ) : System
texturePath string The path to the texture to be used
Résultat System

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

Refresh() public méthode

Refreshes the control properties when it requires to be redrawn to the RenderTarget
public Refresh ( GraphicsDevice device ) : void
device GraphicsDevice
Résultat void

Render() public méthode

Renders the control
public Render ( SpriteBatch spriteRenderer ) : void
spriteRenderer Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

UnloadContent() public méthode

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