C# Class QuickFont.JTexture

Afficher le fichier Open project: Pireax/neovim.cs Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
JTextureConstructorHelper ( BitmapData dataSource, bool alpha, bool padToPowerOfTwo ) : void

Method Details

Draw() public méthode

Draw using JTexture blending settings (ordinary ones).
public Draw ( ) : void
Résultat void

Draw() public méthode

public Draw ( System.Vector2 pos ) : void
pos System.Vector2
Résultat void

Draw() public méthode

public Draw ( System.Vector2 pos, System.Vector2 scale ) : void
pos System.Vector2
scale System.Vector2
Résultat void

Draw() public méthode

public Draw ( System.Vector2 pos, float scale ) : void
pos System.Vector2
scale float
Résultat void

DrawBasic() public méthode

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

DrawBasic() public méthode

public DrawBasic ( System.Vector2 pos ) : void
pos System.Vector2
Résultat void

DrawBasic() public méthode

public DrawBasic ( System.Vector2 pos, System.Vector2 scale ) : void
pos System.Vector2
scale System.Vector2
Résultat void

DrawBasic() public méthode

public DrawBasic ( System.Vector2 pos, float scale ) : void
pos System.Vector2
scale float
Résultat void

DrawBasicCentred() public méthode

public DrawBasicCentred ( ) : void
Résultat void

DrawBasicCentred() public méthode

public DrawBasicCentred ( System.Vector2 pos, System.Vector2 scale, float ang ) : void
pos System.Vector2
scale System.Vector2
ang float
Résultat void

DrawCentred() public méthode

Draw using JTexture blending settings (ordinary ones).
public DrawCentred ( ) : void
Résultat void

Free() public méthode

public Free ( ) : void
Résultat void

JTexture() public méthode

public JTexture ( ) : System
Résultat System

JTexture() public méthode

public JTexture ( JBitmap jbitmap, bool alpha ) : System
jbitmap JBitmap
alpha bool
Résultat System

JTexture() public méthode

public JTexture ( JBitmap jbitmap, bool alpha, bool padToPowerOfTwo ) : System
jbitmap JBitmap
alpha bool
padToPowerOfTwo bool
Résultat System

JTexture() public méthode

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
Résultat System

JTexture() public méthode

public JTexture ( String fileName, bool alpha ) : System
fileName String
alpha bool
Résultat System

JTexture() public méthode

public JTexture ( String fileName, bool alpha, bool padToPowerOfTwo ) : System
fileName String
alpha bool
padToPowerOfTwo bool
Résultat System

JTexture() public méthode

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
Résultat System

SetDrawSize() public méthode

public SetDrawSize ( float width, float height ) : void
width float
height float
Résultat void