C# Class EzGame.Perspective.Planar.TextureLoader

Loads textures without use of the content pipeline. Needed to load textures with alpha/transparency properly. Based on: http://jakepoz.com/jake_poznanski__background_load_xna.html and http://gamedev.stackexchange.com/questions/35460/load-texture-from-image-content-in-runtime
Inheritance: IDisposable
Afficher le fichier Open project: CodeTreeCommunity/Shooter2D

Méthodes publiques

Méthode Description
Dispose ( ) : void
FromFile ( string path, bool preMultiplyAlpha = true ) : Microsoft.Xna.Framework.Graphics.Texture2D
FromStream ( Stream stream, bool preMultiplyAlpha = true ) : Microsoft.Xna.Framework.Graphics.Texture2D
TextureLoader ( GraphicsDevice graphicsDevice ) : System

Private Methods

Méthode Description
TextureLoader ( ) : System

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

FromFile() public méthode

public FromFile ( string path, bool preMultiplyAlpha = true ) : Microsoft.Xna.Framework.Graphics.Texture2D
path string
preMultiplyAlpha bool
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

FromStream() public méthode

public FromStream ( Stream stream, bool preMultiplyAlpha = true ) : Microsoft.Xna.Framework.Graphics.Texture2D
stream Stream
preMultiplyAlpha bool
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

TextureLoader() public méthode

public TextureLoader ( GraphicsDevice graphicsDevice ) : System
graphicsDevice GraphicsDevice
Résultat System