C# Класс Aiv.Fast2D.Mesh

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

Открытые свойства

Свойство Тип Описание
Camera Camera
hasVertexColors bool
noMatrix bool
pivot System.Vector2
position System.Vector2
scale System.Vector2
shader Shader
uv float[]
v float[]
vc float[]

Защищенные свойства (Protected)

Свойство Тип Описание
instances int
requireUseTexture bool
shaderSetupHook ShaderSetupHook

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

Метод Описание
Bind ( ) : void
Dispose ( ) : void
Draw ( ShaderSetupHook hook = null ) : void
DrawColor ( float r, float g, float b, float a = 1 ) : void
DrawColor ( int r, int g, int b, int a = 255 ) : void
DrawTexture ( Texture tex ) : void
DrawTexture ( int textureId ) : void
DrawWireframe ( float r, float g, float b, float a = 1, float tickness = 0.02f ) : void
DrawWireframe ( int r, int g, int b, int a = 255, float tickness = 0.02f ) : void
Mesh ( Shader shader = null ) : OpenTK.Graphics.OpenGL
NewVAO ( ) : int
NewVBO ( ) : int
Update ( ) : void
UpdateUV ( ) : void
UpdateVertex ( ) : void
UpdateVertexColor ( ) : void

Защищенные методы

Метод Описание
NewFloatBuffer ( int attribArrayId, int elementSize, float data, int divisor ) : int
UpdateFloatBuffer ( int bufferId, float data, int offset ) : void

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

Метод Описание
ApplyMatrix ( ) : void

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

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

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

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

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

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

public Draw ( ShaderSetupHook hook = null ) : void
hook ShaderSetupHook
Результат void

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

public DrawColor ( float r, float g, float b, float a = 1 ) : void
r float
g float
b float
a float
Результат void

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

public DrawColor ( int r, int g, int b, int a = 255 ) : void
r int
g int
b int
a int
Результат void

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

public DrawTexture ( Texture tex ) : void
tex Texture
Результат void

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

public DrawTexture ( int textureId ) : void
textureId int
Результат void

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

public DrawWireframe ( float r, float g, float b, float a = 1, float tickness = 0.02f ) : void
r float
g float
b float
a float
tickness float
Результат void

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

public DrawWireframe ( int r, int g, int b, int a = 255, float tickness = 0.02f ) : void
r int
g int
b int
a int
tickness float
Результат void

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

public Mesh ( Shader shader = null ) : OpenTK.Graphics.OpenGL
shader Shader
Результат OpenTK.Graphics.OpenGL

NewFloatBuffer() защищенный Метод

protected NewFloatBuffer ( int attribArrayId, int elementSize, float data, int divisor ) : int
attribArrayId int
elementSize int
data float
divisor int
Результат int

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

public NewVAO ( ) : int
Результат int

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

public NewVBO ( ) : int
Результат int

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

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

UpdateFloatBuffer() защищенный Метод

protected UpdateFloatBuffer ( int bufferId, float data, int offset ) : void
bufferId int
data float
offset int
Результат void

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

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

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

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

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

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

Описание свойств

Camera публичное свойство

public Camera,Aiv.Fast2D Camera
Результат Camera

hasVertexColors публичное свойство

public bool hasVertexColors
Результат bool

instances защищенное свойство

protected int instances
Результат int

noMatrix публичное свойство

public bool noMatrix
Результат bool

pivot публичное свойство

public Vector2,System pivot
Результат System.Vector2

position публичное свойство

public Vector2,System position
Результат System.Vector2

requireUseTexture защищенное свойство

protected bool requireUseTexture
Результат bool

scale публичное свойство

public Vector2,System scale
Результат System.Vector2

shader публичное свойство

public Shader,Aiv.Fast2D shader
Результат Shader

shaderSetupHook защищенное свойство

protected ShaderSetupHook shaderSetupHook
Результат ShaderSetupHook

uv публичное свойство

public float[] uv
Результат float[]

v публичное свойство

public float[] v
Результат float[]

vc публичное свойство

public float[] vc
Результат float[]