C# Класс QuickFont.JTexture

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
JTextureConstructorHelper ( BitmapData dataSource, bool alpha, bool padToPowerOfTwo ) : void

Описание методов

Draw() публичный Метод

Draw using JTexture blending settings (ordinary ones).
public Draw ( ) : void
Результат void

Draw() публичный Метод

public Draw ( System.Vector2 pos ) : void
pos System.Vector2
Результат void

Draw() публичный Метод

public Draw ( System.Vector2 pos, System.Vector2 scale ) : void
pos System.Vector2
scale System.Vector2
Результат void

Draw() публичный Метод

public Draw ( System.Vector2 pos, float scale ) : void
pos System.Vector2
scale float
Результат void

DrawBasic() публичный Метод

Draws the texture without changing any blending settings. Use this when you wish to set the blending settings yourself.
public DrawBasic ( ) : void
Результат void

DrawBasic() публичный Метод

public DrawBasic ( System.Vector2 pos ) : void
pos System.Vector2
Результат void

DrawBasic() публичный Метод

public DrawBasic ( System.Vector2 pos, System.Vector2 scale ) : void
pos System.Vector2
scale System.Vector2
Результат void

DrawBasic() публичный Метод

public DrawBasic ( System.Vector2 pos, float scale ) : void
pos System.Vector2
scale float
Результат void

DrawBasicCentred() публичный Метод

public DrawBasicCentred ( ) : void
Результат void

DrawBasicCentred() публичный Метод

public DrawBasicCentred ( System.Vector2 pos, System.Vector2 scale, float ang ) : void
pos System.Vector2
scale System.Vector2
ang float
Результат void

DrawCentred() публичный Метод

Draw using JTexture blending settings (ordinary ones).
public DrawCentred ( ) : void
Результат void

Free() публичный Метод

public Free ( ) : void
Результат void

JTexture() публичный Метод

public JTexture ( ) : System
Результат System

JTexture() публичный Метод

public JTexture ( JBitmap jbitmap, bool alpha ) : System
jbitmap JBitmap
alpha bool
Результат System

JTexture() публичный Метод

public JTexture ( JBitmap jbitmap, bool alpha, bool padToPowerOfTwo ) : System
jbitmap JBitmap
alpha bool
padToPowerOfTwo bool
Результат System

JTexture() публичный Метод

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
Результат System

JTexture() публичный Метод

public JTexture ( String fileName, bool alpha ) : System
fileName String
alpha bool
Результат System

JTexture() публичный Метод

public JTexture ( String fileName, bool alpha, bool padToPowerOfTwo ) : System
fileName String
alpha bool
padToPowerOfTwo bool
Результат System

JTexture() публичный Метод

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
Результат System

SetDrawSize() публичный Метод

public SetDrawSize ( float width, float height ) : void
width float
height float
Результат void