|
| Vertices (string source, params Vert[] vertices) |
| Create a new set of Vertices using a file path to a Texture. More...
|
|
| Vertices (Texture texture, params Vert[] vertices) |
| Create a new set of Vertices using a Texture. More...
|
|
| Vertices (AtlasTexture texture, params Vert[] vertices) |
| Create a new set of Vertices using an AtlasTexture. More...
|
|
| Vertices (params Vert[] vertices) |
| Create a new set of Vertices with no Texture. More...
|
|
void | Clear () |
| Clears all Verts from the Vertices. More...
|
|
void | Add (float x, float y, Color color, float u, float v) |
| Add a Vert. More...
|
|
void | Add (float x, float y, float u, float v) |
| Add a Vert. More...
|
|
void | Add (float x, float y, Color color) |
| Add a Vert. More...
|
|
void | Add (float x, float y) |
| Add a Vert. More...
|
|
void | Add (params Vert[] vertices) |
| Add a set of Verts. More...
|
|
void | Remove (params Vert[] vertices) |
| Remove Verts. More...
|
|
void | RemoveAt (float x, float y) |
| Remove Verts at a specific coordinate. More...
|
|
Transformation | AddTransform (Transformation transform) |
|
Transformation | AddTransform (Vector2 translation, Vector2 scale, Vector2 origin, float rotation) |
|
Transformation | AddTransform () |
|
Transformation | RemoveTransformation (Transformation transform) |
|
Transformation | PopTransformation () |
|
virtual void | ClearShader () |
| Removes the shader from the graphic. More...
|
|
void | SetPosition (float x, float y) |
| Set the position of the Graphic. More...
|
|
void | SetPosition (Graphic g, float offsetX=0, float offsetY=0) |
| Set the position of the Graphic. More...
|
|
void | SetPosition (Vector2 xy) |
| Set the position of the Graphic. More...
|
|
void | SetOrigin (float x, float y) |
| Set the origin of the Graphic. More...
|
|
void | SetOrigin (Vector2 xy) |
| Set the origin of the Graphic. More...
|
|
void | SetTexture (string path) |
| Set the Texture that the Graphic is using (if it is using one.) More...
|
|
void | SetTexture (Texture texture) |
| Set the Texture that the Graphic is using (if it is using one.) More...
|
|
void | SetTexture (AtlasTexture atlasTexture) |
| Set the Texture that the Graphic is using (if it is using one.) More...
|
|
virtual void | Update () |
| Update the graphic. More...
|
|
virtual void | CenterOrigin () |
| Centers the graphic origin. More...
|
|
virtual void | CenterOriginZero () |
| Centers the graphic origin while retaining its relative position. More...
|
|
virtual void | Render (float x=0, float y=0) |
| Draws the graphic. More...
|
|
|
VertexPrimitiveType | PrimitiveType [get, set] |
| The primitive type drawing mode for the Verts. More...
|
|
Transformation | Transform [get] |
|
float | X [get, set] |
| The X position of the Graphic. More...
|
|
float | Y [get, set] |
| The Y position of the Graphic. More...
|
|
float | ScaleX [get, set] |
| The horizontal scale of the graphic. Used in the final transformation. More...
|
|
float | ScaleY [get, set] |
| The vertical scale of the graphic. Used in the final transformation. More...
|
|
float | Angle [get, set] |
| The angle of rotation of the graphic. Used in the final transformation. More...
|
|
float | OriginX [get, set] |
| The X origin point to scale and rotate the graphic with. Used in the final transformation. More...
|
|
float | OriginY [get, set] |
| The Y origin point to scale and rotate the graphic with. Used in the final transformation. More...
|
|
Color | Color [get, set] |
| The base color of the Graphic. Multiplies the vertices of the graphic by this color. More...
|
|
virtual Texture | Texture [get, set] |
| The texture that the graphic is using. More...
|
|
float | Alpha [get, set] |
| The base transparency of the graphic. A shortcut to access the base color's Alpha. More...
|
|
int | Width [get, set] |
| The width of the Graphic. More...
|
|
int | Height [get, set] |
| The height of the Graphic. More...
|
|
float | ScaledWidth [get, set] |
| The width in pixels of the image after applying the X scale. More...
|
|
float | ScaledHeight [get, set] |
| The height in pixels of the image after applying the Y scale. More...
|
|
virtual bool | Smooth [get, set] |
| Smooth the texture of a sprite image while scaling it. More...
|
|
float | Scroll [get, set] |
| Set both ScrollX and ScrollY. More...
|
|
float | HalfWidth [get] |
| Half of the width. More...
|
|
float | HalfHeight [get] |
| Half of the height. More...
|
|
float | Scale [set] |
| Sets both the ScaleX and ScaleY at the same time. More...
|
|
bool | Repeat [set] |
| Sets both RepeatX and RepeatY at the same time. More...
|
|
float | Shake [set] |
| A shortcut to set both ShakeX and ShakeY. More...
|
|
float | Left [get] |
| The X position of the left side of the Graphic. More...
|
|
float | Top [get] |
| The Y position of the top of the Graphic. More...
|
|
float | Right [get] |
| The X position of the right side of the Graphic. More...
|
|
float | Bottom [get] |
| The Y position of the bottom of the Graphic. More...
|
|
int | TextureLeft [get] |
| The X position of the left of the Texture. More...
|
|
int | TextureRight [get] |
| The X position of the right of the Texture. More...
|
|
int | TextureTop [get] |
| The Y position of the top of the Texture. More...
|
|
int | TextureBottom [get] |
| The Y position of the bottom of the Texture. More...
|
|
Graphic used for rendering a set of Vert objects. Basically a wrapper for SFML's VertexArray.