9#include "fireset/vector.h"
10#include "fireset/image.h"
11#include "fireset/color.h"
void fsDrawTriangle(const FsTriangle *tri, int zindex)
Draws a triangle.
Definition render.c:42
double fsLookAt(FsVec2 origin, FsVec2 target, FsDirection forward)
Calculates the angle to face a target position.
Definition render.c:10
void fsDrawCircle(const FsCircle *circle, int zindex)
Draws a circle.
Definition render.c:139
void fsClear(FsColor color)
Clears the window.
Definition render.c:223
void fsDrawSprite(const FsSprite *sprite, int zindex)
Draws a 2D sprite.
Definition render.c:172
void fsOrthoSet(int width, int height)
Sets the orthographic projection.
Definition render.c:234
void fsDrawQuad(const FsQuad *quad, int zindex)
Draws a quadrilateral.
Definition render.c:113
void fsDrawLine(const FsLine *line, int zindex)
Draws a line.
Definition render.c:87
void fsDrawPoint(const FsPoint *p, int zindex)
Draws a pixel.
Definition render.c:66
Circle primitive.
Definition render.h:71
FsVec2 position
Definition render.h:72
float angle
Definition render.h:75
int segments
Definition render.h:76
FsColor color
Definition render.h:74
FsVec2 size
Definition render.h:73
RGB color representation.
Definition color.h:15
Line primitive.
Definition render.h:84
FsVec2 position
Definition render.h:85
float thickness
Definition render.h:88
FsColor color
Definition render.h:89
float length
Definition render.h:86
float angle
Definition render.h:87
Point primitive.
Definition render.h:61
FsVec2 position
Definition render.h:62
FsColor color
Definition render.h:63
Quadrilateral primitive.
Definition render.h:37
float angle
Definition render.h:41
FsVec2 position
Definition render.h:38
FsColor color
Definition render.h:40
FsVec2 size
Definition render.h:39
Sprite structure.
Definition render.h:97
int texRot
Definition render.h:102
FsVec2 position
Definition render.h:98
FsTexture * texture
Definition render.h:100
FsVec2 size
Definition render.h:99
float angle
Definition render.h:101
Texture data structure.
Definition image.h:26
Triangle primitive.
Definition render.h:49
FsVec2 size
Definition render.h:51
FsColor color
Definition render.h:52
float angle
Definition render.h:53
FsVec2 position
Definition render.h:50
2D vector.
Definition vector.h:18