C# Class WarshipGirl.Data.TextureManager

Show file Open project: jxpxxzj/WarshipGirl

Public Properties

Property Type Description
GraphicsDevice GraphicsDevice

Public Methods

Method Description
LoadShipImage ( int ShipID, ShipSize size, bool isBroken = false ) : Microsoft.Xna.Framework.Graphics.Texture2D

Private Methods

Method Description
Bitmap2Texture2D ( System bitmap ) : Microsoft.Xna.Framework.Graphics.Texture2D
Load1024Img ( int shipid, bool isBroken ) : Microsoft.Xna.Framework.Graphics.Texture2D
Load128Img ( int shipid, bool isBroken ) : Microsoft.Xna.Framework.Graphics.Texture2D
Load64Img ( int shipid, bool isBroken ) : Microsoft.Xna.Framework.Graphics.Texture2D

Method Details

LoadShipImage() public static method

public static LoadShipImage ( int ShipID, ShipSize size, bool isBroken = false ) : Microsoft.Xna.Framework.Graphics.Texture2D
ShipID int
size ShipSize
isBroken bool
return Microsoft.Xna.Framework.Graphics.Texture2D

Property Details

GraphicsDevice public static property

public static GraphicsDevice GraphicsDevice
return GraphicsDevice