C# Class Aiv.Fast2D.Mesh

Inheritance: IDisposable
Afficher le fichier Open project: aiv01/aiv-fast2d Class Usage Examples

Méthodes publiques

Свойство Type Description
Camera Camera
hasVertexColors bool
noMatrix bool
pivot System.Vector2
position System.Vector2
scale System.Vector2
shader Shader
uv float[]
v float[]
vc float[]

Protected Properties

Свойство Type Description
instances int
requireUseTexture bool
shaderSetupHook ShaderSetupHook

Méthodes publiques

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

Méthodes protégées

Méthode Description
NewFloatBuffer ( int attribArrayId, int elementSize, float data, int divisor ) : int
UpdateFloatBuffer ( int bufferId, float data, int offset ) : void

Private Methods

Méthode Description
ApplyMatrix ( ) : void

Method Details

Bind() public méthode

public Bind ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Draw() public méthode

public Draw ( ShaderSetupHook hook = null ) : void
hook ShaderSetupHook
Résultat void

DrawColor() public méthode

public DrawColor ( float r, float g, float b, float a = 1 ) : void
r float
g float
b float
a float
Résultat void

DrawColor() public méthode

public DrawColor ( int r, int g, int b, int a = 255 ) : void
r int
g int
b int
a int
Résultat void

DrawTexture() public méthode

public DrawTexture ( Texture tex ) : void
tex Texture
Résultat void

DrawTexture() public méthode

public DrawTexture ( int textureId ) : void
textureId int
Résultat void

DrawWireframe() public méthode

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

DrawWireframe() public méthode

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

Mesh() public méthode

public Mesh ( Shader shader = null ) : OpenTK.Graphics.OpenGL
shader Shader
Résultat OpenTK.Graphics.OpenGL

NewFloatBuffer() protected méthode

protected NewFloatBuffer ( int attribArrayId, int elementSize, float data, int divisor ) : int
attribArrayId int
elementSize int
data float
divisor int
Résultat int

NewVAO() public méthode

public NewVAO ( ) : int
Résultat int

NewVBO() public méthode

public NewVBO ( ) : int
Résultat int

Update() public méthode

public Update ( ) : void
Résultat void

UpdateFloatBuffer() protected méthode

protected UpdateFloatBuffer ( int bufferId, float data, int offset ) : void
bufferId int
data float
offset int
Résultat void

UpdateUV() public méthode

public UpdateUV ( ) : void
Résultat void

UpdateVertex() public méthode

public UpdateVertex ( ) : void
Résultat void

UpdateVertexColor() public méthode

public UpdateVertexColor ( ) : void
Résultat void

Property Details

Camera public_oe property

public Camera,Aiv.Fast2D Camera
Résultat Camera

hasVertexColors public_oe property

public bool hasVertexColors
Résultat bool

instances protected_oe property

protected int instances
Résultat int

noMatrix public_oe property

public bool noMatrix
Résultat bool

pivot public_oe property

public Vector2,System pivot
Résultat System.Vector2

position public_oe property

public Vector2,System position
Résultat System.Vector2

requireUseTexture protected_oe property

protected bool requireUseTexture
Résultat bool

scale public_oe property

public Vector2,System scale
Résultat System.Vector2

shader public_oe property

public Shader,Aiv.Fast2D shader
Résultat Shader

shaderSetupHook protected_oe property

protected ShaderSetupHook shaderSetupHook
Résultat ShaderSetupHook

uv public_oe property

public float[] uv
Résultat float[]

v public_oe property

public float[] v
Résultat float[]

vc public_oe property

public float[] vc
Résultat float[]