Otter
0.9.8.91
2d Game Development Framework based on SFML.Net
|
Class used for rendering graphics. More...
Static Public Member Functions | |
static void | Graphic (Graphic graphic, float x=0, float y=0) |
Renders a Graphic to the current target Surface. More... | |
static void | Entity (Entity e) |
Renders an Entity. More... | |
static void | Entity (Entity e, float x=0, float y=0) |
Renders an Entity at a specified X Y position. More... | |
static void | Text (string str, int size, float x=0, float y=0) |
Draws simple Text. Should only be used for debugging as this creates Text Graphics each time it's called! More... | |
static void | ImageClip (Image image, Rectangle clip, float x=0, float y=0) |
Renders a clipped Image to the current target Surface. More... | |
static void | ImageWaveX (Image image, int step, float timer, float rate, float amp, float freq, float x=0, float y=0) |
Draws an Image in parts to form a horizontally waving image. More... | |
static void | ImageWaveY (Image image, int step, float timer, float rate, float amp, float freq, float x=0, float y=0) |
Draws an Image in parts to form a vertically waving image. More... | |
static void | SetTarget (Surface target) |
Change the Surface that is being rendered to. More... | |
static void | ResetTarget () |
Reset the Surface that is being rendered to back to the default for the current Game. More... | |
static void | Circle (float x, float y, int radius, Color fill=null, Color outline=null, float outlineThickness=0) |
Draws a circle. Recommended to use only for debugging purposes. More... | |
static void | Circle (float x, float y, float radius, Color color) |
Draws a circle. Recommended to use only for debugging purposes. More... | |
static void | Rectangle (float x, float y, float width, float height, Color fill=null, Color outline=null, float outlineThickness=0) |
Draws a rectangle. Recommended to use only for debugging purposes. More... | |
static void | Line (float x1, float y1, float x2, float y2, Color color) |
Draws a line using an OpenGL line. More... | |
static void | Line (float x1, float y1, float x2, float y2, Color color, float thickness) |
Draws a line with a thickness using a quad. More... | |
static void | RoundedLine (float x1, float y1, float x2, float y2, Color color, float thickness) |
Draws a line with rounded ends. More... | |
Properties | |
static Surface | Target [get, set] |
The current target Surface to render to. More... | |
static Surface | GameTarget [get, set] |
The surface that current Game is rendering to. More... | |
Class used for rendering graphics.
|
static |
Draws a circle. Recommended to use only for debugging purposes.
x | The X position of the top left of the circle. |
y | The Y position of the top left of the circle. |
radius | The radius of the circle. |
fill | The fill color of the circle. |
outline | The outline color of the circle. |
outlineThickness | The outline thickness of the circle. |
|
static |
Draws a circle. Recommended to use only for debugging purposes.
x | The X position of the top left of the circle. |
y | The Y position of the top left of the circle. |
radius | The radius of the circle. |
color | The fill color of the circle. |
|
static |
|
static |
|
static |
|
static |
Draws an Image in parts to form a horizontally waving image.
image | The image to draw. |
step | How many steps to iterate through for the wave. |
timer | The timer the wave should act with. |
rate | The rate which the wave should move at. |
amp | How far the wave will offset the image. |
freq | How frequent the wave should repeat. |
x | The x position to draw the image from. |
y | The y position to draw the image from. |
|
static |
Draws an Image in parts to form a vertically waving image.
image | The image to draw. |
step | How many steps to iterate through for the wave. |
timer | The timer the wave should act with. |
rate | The rate which the wave should move at. |
amp | How far the wave will offset the image. |
freq | How frequent the wave should repeat. |
x | The x position to draw the image from. |
y | The y position to draw the image from. |
|
static |
Draws a line using an OpenGL line.
x1 | The X position of the first point. |
y1 | The Y position of the first point. |
x2 | The X position of the second point. |
y2 | The Y position of the second point. |
color | The color of the line. |
|
static |
Draws a line with a thickness using a quad.
x1 | The X position of the first point. |
y1 | The Y position of the first point. |
x2 | The X position of the second point. |
y2 | The Y position of the second point. |
color | The color of the line. |
thickness | The thickness of the line. |
|
static |
Draws a rectangle. Recommended to use only for debugging purposes.
x | The X position of the top left of the rectangle. |
y | The Y position of the top left of the rectangle. |
width | The width of the rectangle. |
height | The height of the rectangle. |
fill | The fill color of the rectangle. |
outline | The outline color of the rectangle. |
outlineThickness | The outline thickness of the rectangle. |
|
static |
|
static |
Draws a line with rounded ends.
x1 | The X position of the first point. |
y1 | The Y position of the first point. |
x2 | The X position of the second point. |
y2 | The Y position of the second point. |
color | The color of the line. |
thickness | The thickness of the line. |
|
static |
|
static |