|
Aiv Fast2D
1.0.4
|
Public Member Functions | |
| Sprite (float width, float height) | |
| Sprite class is a Quad (mesh made by two triangles) More... | |
| void | SetAdditiveTint (int r, int g, int b, int a) |
| Color tint added during Draw phase, after base color (or texture) and multiply tint. More... | |
| void | SetAdditiveTint (float r, float g, float b, float a) |
| Color tint added during Draw phase, after base color (or texture) and multiply tint. More... | |
| void | SetAdditiveTint (Vector4 color) |
| Color tint added during Draw phase, after base color (or texture) and multiply tint. More... | |
| void | SetMultiplyTint (float r, float g, float b, float a) |
| Color tint used as multiplier during Draw phase, after base color (or texture). More... | |
| void | SetMultiplyTint (int r, int g, int b, int a) |
| Color tint used as multiplier during Draw phase, after base color (or texture). More... | |
| void | SetMultiplyTint (Vector4 color) |
| Color tint added during Draw phase, after base color (or texture). More... | |
| override void | DrawColor (Vector4 color) |
| Draw the sprite filling it with this color More... | |
| override void | DrawTexture (Texture tex) |
| Draw the whole texture More... | |
| void | DrawTexture (Texture tex, int xOffset, int yOffset) |
| Draw a texture starting at specific offset to the full size of the texture More... | |
| void | DrawTexture (Texture tex, int xOffset, int yOffset, int width, int height) |
| Draw a texture starting at specific offset to a specific size More... | |
| override void | DrawWireframe (Vector4 color, float tickness=0.02F) |
| Sprite (float width, float height) | |
| Sprite class is a Quad (mesh made by two triangles) More... | |
| void | SetAdditiveTint (int r, int g, int b, int a) |
| Color tint added during Draw phase, after base color (or texture) and multiply tint. More... | |
| void | SetAdditiveTint (float r, float g, float b, float a) |
| Color tint added during Draw phase, after base color (or texture) and multiply tint. More... | |
| void | SetAdditiveTint (Vector4 color) |
| Color tint added during Draw phase, after base color (or texture) and multiply tint. More... | |
| void | SetMultiplyTint (float r, float g, float b, float a) |
| Color tint used as multiplier during Draw phase, after base color (or texture). More... | |
| void | SetMultiplyTint (int r, int g, int b, int a) |
| Color tint used as multiplier during Draw phase, after base color (or texture). More... | |
| void | SetMultiplyTint (Vector4 color) |
| Color tint added during Draw phase, after base color (or texture). More... | |
| override void | DrawColor (Vector4 color) |
| Draw the sprite filling it with this color More... | |
| override void | DrawTexture (Texture tex) |
| Draw the whole texture More... | |
| void | DrawTexture (Texture tex, int xOffset, int yOffset) |
| Draw a texture starting at specific offset to the full size of the texture More... | |
| void | DrawTexture (Texture tex, int xOffset, int yOffset, int width, int height) |
| Draw a texture starting at specific offset to a specific size More... | |
| override void | DrawWireframe (Vector4 color, float tickness=0.02F) |
Public Member Functions inherited from Aiv.Fast2D.Mesh | |
| delegate void | ShaderSetupHook (Mesh mesh) |
| Mesh (Shader shader=null, int numberOfAxis=2) | |
| void | Update () |
| void | UpdateVertex () |
| void | UpdateUV () |
| void | UpdateVertexColor () |
| void | Bind () |
| virtual void | DrawTexture (int textureId) |
| virtual void | DrawColor (float r, float g, float b, float a=1) |
| Draw the sprite filling it with this color More... | |
| void | DrawColor (int r, int g, int b, int a=255) |
| Draw the sprite filling it with this color More... | |
| 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 | Draw (ShaderSetupHook hook=null) |
| void | DrawRenderTexture (RenderTexture rt) |
| Allow to draw a RenderTexture object. More... | |
| void | Dispose () |
Properties | |
| float | Width [get] |
| Get the Width of this sprite More... | |
| float | Height [get] |
| Get the Height of this sprite More... | |
| bool | FlipX [get, set] |
| Get / Set the orizontal orientation of this Sprite More... | |
| bool | FlipY [get, set] |
| Get / Set the verical orientation of this Sprite More... | |
Properties inherited from Aiv.Fast2D.Mesh | |
| float | Rotation [get, set] |
| float | EulerRotation [get, set] |
| int | Instances [get] |
Additional Inherited Members | |
Public Attributes inherited from Aiv.Fast2D.Mesh | |
| float[] | v |
| float[] | uv |
| float[] | vc |
| bool | hasVertexColors |
| Shader | shader |
| Vector2 | position = Vector2.Zero |
| Vector2 | scale = Vector2.One |
| Vector2 | pivot = Vector2.Zero |
| Camera | Camera |
| bool | noMatrix |
Protected Member Functions inherited from Aiv.Fast2D.Mesh | |
| int | NewFloatBuffer (int attribArrayId, int elementSize, float[] data, int divisor=0) |
| void | UpdateFloatBuffer (int bufferId, float[] data, int offset=0) |
| virtual void | ApplyMatrix () |
Protected Attributes inherited from Aiv.Fast2D.Mesh | |
| ShaderSetupHook | shaderSetupHook |
| int | numberOfAxis |
| bool | requireUseTexture |
| int | instances |
|
inline |
Sprite class is a Quad (mesh made by two triangles)
| width | the width of the sprite |
| height | the height of the sprite |
|
inline |
Sprite class is a Quad (mesh made by two triangles)
| width | the width of the sprite |
| height | the height of the sprite |
|
inlinevirtual |
Draw the sprite filling it with this color
| color | color channel as vector of 4 float |
Reimplemented from Aiv.Fast2D.Mesh.
|
inlinevirtual |
Draw the sprite filling it with this color
| color | color channel as vector of 4 float |
Reimplemented from Aiv.Fast2D.Mesh.
|
inlinevirtual |
|
inlinevirtual |
|
inline |
Draw a texture starting at specific offset to the full size of the texture
| tex | the texture used as source |
| xOffset | offset on x axis |
| yOffset | offset on y axis |
|
inline |
Draw a texture starting at specific offset to the full size of the texture
| tex | the texture used as source |
| xOffset | offset on x axis |
| yOffset | offset on y axis |
|
inline |
Draw a texture starting at specific offset to a specific size
Passing width and height exceeding Texture.Width and Texture.Height will produce effects based on Texture filter adopted (repeat or clamp)
| tex | the texture used as source |
| xOffset | offset on x axis |
| yOffset | offset on y axis |
| width | width to take into account |
| height | height to take into account |
|
inline |
Draw a texture starting at specific offset to a specific size
Passing width and height exceeding Texture.Width and Texture.Height will produce effects based on Texture filter adopted (repeat or clamp)
| tex | the texture used as source |
| xOffset | offset on x axis |
| yOffset | offset on y axis |
| width | width to take into account |
| height | height to take into account |
|
inlinevirtual |
Reimplemented from Aiv.Fast2D.Mesh.
|
inlinevirtual |
Reimplemented from Aiv.Fast2D.Mesh.
Reimplemented in Aiv.Fast2D.InstancedSprite.
|
inline |
Color tint added during Draw phase, after base color (or texture) and multiply tint.
| r | red channel in space [0, 255] |
| g | green channel in space [0, 255] |
| b | blue channelin space [0, 255] |
| a | alpha channel in space [0, 255] |
|
inline |
Color tint added during Draw phase, after base color (or texture) and multiply tint.
| r | red channel in space [0, 255] |
| g | green channel in space [0, 255] |
| b | blue channelin space [0, 255] |
| a | alpha channel in space [0, 255] |
|
inline |
Color tint added during Draw phase, after base color (or texture) and multiply tint.
| r | red channel in space [0.0, 1.0] |
| g | green channel in space [0.0, 1.0] |
| b | blue channelin space [0.0, 1.0] |
| a | alpha channel in space [0.0, 1.0] |
|
inline |
Color tint added during Draw phase, after base color (or texture) and multiply tint.
| r | red channel in space [0.0, 1.0] |
| g | green channel in space [0.0, 1.0] |
| b | blue channelin space [0.0, 1.0] |
| a | alpha channel in space [0.0, 1.0] |
|
inline |
Color tint added during Draw phase, after base color (or texture) and multiply tint.
| color | color channel as vector of 4 float |
|
inline |
Color tint added during Draw phase, after base color (or texture) and multiply tint.
| color | color channel as vector of 4 float |
|
inline |
Color tint used as multiplier during Draw phase, after base color (or texture).
| r | red channel in space [0.0, 1.0] |
| g | green channel in space [0.0, 1.0] |
| b | blue channelin space [0.0, 1.0] |
| a | alpha channel in space [0.0, 1.0] |
|
inline |
Color tint used as multiplier during Draw phase, after base color (or texture).
| r | red channel in space [0.0, 1.0] |
| g | green channel in space [0.0, 1.0] |
| b | blue channelin space [0.0, 1.0] |
| a | alpha channel in space [0.0, 1.0] |
|
inline |
Color tint used as multiplier during Draw phase, after base color (or texture).
| r | red channel in space [0, 255] |
| g | green channel in space [0, 255] |
| b | blue channelin space [0, 255] |
| a | alpha channel in space [0, 255] |
|
inline |
Color tint used as multiplier during Draw phase, after base color (or texture).
| r | red channel in space [0, 255] |
| g | green channel in space [0, 255] |
| b | blue channelin space [0, 255] |
| a | alpha channel in space [0, 255] |
|
inline |
Color tint added during Draw phase, after base color (or texture).
| color | color channel as vector of 4 float |
|
inline |
Color tint added during Draw phase, after base color (or texture).
| color | color channel as vector of 4 float |
|
getset |
Get / Set the orizontal orientation of this Sprite
|
getset |
Get / Set the verical orientation of this Sprite
|
get |
Get the Height of this sprite
|
get |
Get the Width of this sprite
1.8.11