20 #ifndef GRAPHICS_VERSION 21 #define GRAPHICS_VERSION "0.1.0" 44 GraphicsInit(
char *title,
int width,
int height,
int scale);
109 #endif // GRAPHICS_VERSION void GraphicsDeinit(struct graphics *graphics)
De-initializes and frees memory for the given graphics object.
Definition: graphics.c:97
Triangular mesh face.
Definition: math.h:61
void GraphicsClearScreen(struct graphics *graphics, unsigned int color)
Sets all pixels in the screen to the given color.
Definition: graphics.c:129
RGBA color quad.
Definition: color.h:30
struct graphics * GraphicsInit(char *title, int width, int height, int scale)
Creates and initializes a new graphics object isntance.
Definition: graphics.c:58
Graphics state.
Definition: graphics.c:46
void GraphicsTriangleSolid(struct graphics *graphics, struct triangle triangle, unsigned int color)
Draw a triangle with the given set of x and y coordinates.
Definition: graphics.c:424
void GraphicsTriangleTextured(struct graphics *graphics, struct triangle tri, struct texture *texture)
Draw a textured triangle with the given set of x and y coordinates.
Definition: graphics.c:257
void GraphicsEnd(struct graphics *graphics)
Prepares the graphics subsystem for presentation, then presents.
Definition: graphics.c:122
void GraphicsTriangleWireframe(struct graphics *graphics, struct triangle triangle, unsigned int color)
Draw a triangle with the given set of x and y coordinates.
Definition: graphics.c:411
Structure representing a texture image.
Definition: texture.h:23
void GraphicsBegin(struct graphics *graphics)
Initializes the graphics subsystem for drawing routines.
Definition: graphics.c:118