C# Class FSO.Common.Utils.TextureGenerator

Show file Open project: RHY3756547/FreeSO

Public Properties

Property Type Description
FLAT_Z_INC float
WallZBufferConfig float[][]

Public Methods

Method Description
GenerateCatalogIconBorder ( GraphicsDevice gd, Color highlight, Color bg ) : Microsoft.Xna.Framework.Graphics.Texture2D
GenerateObjectIconBorder ( GraphicsDevice gd, Color highlight, Color bg ) : Microsoft.Xna.Framework.Graphics.Texture2D
GenerateRoundedRectangle ( GraphicsDevice gd, Color color, int width, int height, int radius ) : Microsoft.Xna.Framework.Graphics.Texture2D
GetAirTiles ( GraphicsDevice gd ) : Microsoft.Xna.Framework.Graphics.Texture2D[]
GetCatalogActive ( GraphicsDevice gd ) : Microsoft.Xna.Framework.Graphics.Texture2D
GetCatalogDisabled ( GraphicsDevice gd ) : Microsoft.Xna.Framework.Graphics.Texture2D
GetCatalogInactive ( GraphicsDevice gd ) : Microsoft.Xna.Framework.Graphics.Texture2D
GetInteractionActive ( GraphicsDevice gd ) : Microsoft.Xna.Framework.Graphics.Texture2D
GetInteractionInactive ( GraphicsDevice gd ) : Microsoft.Xna.Framework.Graphics.Texture2D
GetMotiveArrow ( GraphicsDevice gd, Color highlight, Color bg ) : Microsoft.Xna.Framework.Graphics.Texture2D
GetPieBG ( GraphicsDevice gd ) : Texture2D
GetPieButtonImg ( GraphicsDevice gd ) : Texture2D
GetPxWhite ( GraphicsDevice gd ) : Texture2D
GetWallZBuffer ( GraphicsDevice gd ) : Texture2D[]

Private Methods

Method Description
FillRect ( Color data, Vector2 texSize, Rectangle dest, Color fillColor ) : void
GenerateAirTile ( GraphicsDevice gd, int width, int height ) : Microsoft.Xna.Framework.Graphics.Texture2D

Method Details

GenerateCatalogIconBorder() public static method

public static GenerateCatalogIconBorder ( GraphicsDevice gd, Color highlight, Color bg ) : Microsoft.Xna.Framework.Graphics.Texture2D
gd GraphicsDevice
highlight Color
bg Color
return Microsoft.Xna.Framework.Graphics.Texture2D

GenerateObjectIconBorder() public static method

public static GenerateObjectIconBorder ( GraphicsDevice gd, Color highlight, Color bg ) : Microsoft.Xna.Framework.Graphics.Texture2D
gd GraphicsDevice
highlight Color
bg Color
return Microsoft.Xna.Framework.Graphics.Texture2D

GenerateRoundedRectangle() public static method

public static GenerateRoundedRectangle ( GraphicsDevice gd, Color color, int width, int height, int radius ) : Microsoft.Xna.Framework.Graphics.Texture2D
gd GraphicsDevice
color Color
width int
height int
radius int
return Microsoft.Xna.Framework.Graphics.Texture2D

GetAirTiles() public static method

public static GetAirTiles ( GraphicsDevice gd ) : Microsoft.Xna.Framework.Graphics.Texture2D[]
gd GraphicsDevice
return Microsoft.Xna.Framework.Graphics.Texture2D[]

GetCatalogActive() public static method

public static GetCatalogActive ( GraphicsDevice gd ) : Microsoft.Xna.Framework.Graphics.Texture2D
gd GraphicsDevice
return Microsoft.Xna.Framework.Graphics.Texture2D

GetCatalogDisabled() public static method

public static GetCatalogDisabled ( GraphicsDevice gd ) : Microsoft.Xna.Framework.Graphics.Texture2D
gd GraphicsDevice
return Microsoft.Xna.Framework.Graphics.Texture2D

GetCatalogInactive() public static method

public static GetCatalogInactive ( GraphicsDevice gd ) : Microsoft.Xna.Framework.Graphics.Texture2D
gd GraphicsDevice
return Microsoft.Xna.Framework.Graphics.Texture2D

GetInteractionActive() public static method

public static GetInteractionActive ( GraphicsDevice gd ) : Microsoft.Xna.Framework.Graphics.Texture2D
gd GraphicsDevice
return Microsoft.Xna.Framework.Graphics.Texture2D

GetInteractionInactive() public static method

public static GetInteractionInactive ( GraphicsDevice gd ) : Microsoft.Xna.Framework.Graphics.Texture2D
gd GraphicsDevice
return Microsoft.Xna.Framework.Graphics.Texture2D

GetMotiveArrow() public static method

public static GetMotiveArrow ( GraphicsDevice gd, Color highlight, Color bg ) : Microsoft.Xna.Framework.Graphics.Texture2D
gd GraphicsDevice
highlight Color
bg Color
return Microsoft.Xna.Framework.Graphics.Texture2D

GetPieBG() public static method

public static GetPieBG ( GraphicsDevice gd ) : Texture2D
gd GraphicsDevice
return Texture2D

GetPieButtonImg() public static method

public static GetPieButtonImg ( GraphicsDevice gd ) : Texture2D
gd GraphicsDevice
return Texture2D

GetPxWhite() public static method

public static GetPxWhite ( GraphicsDevice gd ) : Texture2D
gd GraphicsDevice
return Texture2D

GetWallZBuffer() public static method

public static GetWallZBuffer ( GraphicsDevice gd ) : Texture2D[]
gd GraphicsDevice
return Texture2D[]

Property Details

FLAT_Z_INC public static property

public static float FLAT_Z_INC
return float

WallZBufferConfig public static property

public static float[][] WallZBufferConfig
return float[][]