C# Class QuickFont.JTexture

Exibir arquivo Open project: Pireax/neovim.cs Class Usage Examples

Public Methods

Method Description
Draw ( ) : void

Draw using JTexture blending settings (ordinary ones).

Draw ( System.Vector2 pos ) : void
Draw ( System.Vector2 pos, System.Vector2 scale ) : void
Draw ( System.Vector2 pos, float scale ) : void
DrawBasic ( ) : void

Draws the texture without changing any blending settings. Use this when you wish to set the blending settings yourself.

DrawBasic ( System.Vector2 pos ) : void
DrawBasic ( System.Vector2 pos, System.Vector2 scale ) : void
DrawBasic ( System.Vector2 pos, float scale ) : void
DrawBasicCentred ( ) : void
DrawBasicCentred ( System.Vector2 pos, System.Vector2 scale, float ang ) : void
DrawCentred ( ) : void

Draw using JTexture blending settings (ordinary ones).

Free ( ) : void
JTexture ( ) : System
JTexture ( JBitmap jbitmap, bool alpha ) : System
JTexture ( JBitmap jbitmap, bool alpha, bool padToPowerOfTwo ) : System
JTexture ( JTexture parent, float topLeftX, float topLeftY, float width, float height, bool alpha ) : System

Constructs a JTexture from a parent texture

JTexture ( String fileName, bool alpha ) : System
JTexture ( String fileName, bool alpha, bool padToPowerOfTwo ) : System
JTexture ( int GLTex, float width, float height, bool alpha ) : System

Construct a JTexture when the GLTexture already exists. texW and texH are the actual dimensions of the given opengl texture (usually pots). Width and height are always less than or equal to texW and texH respectively, and are the part of the texture to be used starting in the bottom left corner.

SetDrawSize ( float width, float height ) : void

Private Methods

Method Description
JTextureConstructorHelper ( BitmapData dataSource, bool alpha, bool padToPowerOfTwo ) : void

Method Details

Draw() public method

Draw using JTexture blending settings (ordinary ones).
public Draw ( ) : void
return void

Draw() public method

public Draw ( System.Vector2 pos ) : void
pos System.Vector2
return void

Draw() public method

public Draw ( System.Vector2 pos, System.Vector2 scale ) : void
pos System.Vector2
scale System.Vector2
return void

Draw() public method

public Draw ( System.Vector2 pos, float scale ) : void
pos System.Vector2
scale float
return void

DrawBasic() public method

Draws the texture without changing any blending settings. Use this when you wish to set the blending settings yourself.
public DrawBasic ( ) : void
return void

DrawBasic() public method

public DrawBasic ( System.Vector2 pos ) : void
pos System.Vector2
return void

DrawBasic() public method

public DrawBasic ( System.Vector2 pos, System.Vector2 scale ) : void
pos System.Vector2
scale System.Vector2
return void

DrawBasic() public method

public DrawBasic ( System.Vector2 pos, float scale ) : void
pos System.Vector2
scale float
return void

DrawBasicCentred() public method

public DrawBasicCentred ( ) : void
return void

DrawBasicCentred() public method

public DrawBasicCentred ( System.Vector2 pos, System.Vector2 scale, float ang ) : void
pos System.Vector2
scale System.Vector2
ang float
return void

DrawCentred() public method

Draw using JTexture blending settings (ordinary ones).
public DrawCentred ( ) : void
return void

Free() public method

public Free ( ) : void
return void

JTexture() public method

public JTexture ( ) : System
return System

JTexture() public method

public JTexture ( JBitmap jbitmap, bool alpha ) : System
jbitmap JBitmap
alpha bool
return System

JTexture() public method

public JTexture ( JBitmap jbitmap, bool alpha, bool padToPowerOfTwo ) : System
jbitmap JBitmap
alpha bool
padToPowerOfTwo bool
return System

JTexture() public method

Constructs a JTexture from a parent texture
public JTexture ( JTexture parent, float topLeftX, float topLeftY, float width, float height, bool alpha ) : System
parent JTexture
topLeftX float
topLeftY float
width float
height float
alpha bool
return System

JTexture() public method

public JTexture ( String fileName, bool alpha ) : System
fileName String
alpha bool
return System

JTexture() public method

public JTexture ( String fileName, bool alpha, bool padToPowerOfTwo ) : System
fileName String
alpha bool
padToPowerOfTwo bool
return System

JTexture() public method

Construct a JTexture when the GLTexture already exists. texW and texH are the actual dimensions of the given opengl texture (usually pots). Width and height are always less than or equal to texW and texH respectively, and are the part of the texture to be used starting in the bottom left corner.
public JTexture ( int GLTex, float width, float height, bool alpha ) : System
GLTex int
width float
height float
alpha bool
return System

SetDrawSize() public method

public SetDrawSize ( float width, float height ) : void
width float
height float
return void