Skip to content
Snippets Groups Projects
Commit a6186376 authored by JM's avatar JM
Browse files

add gfx methods

parent bf121f31
No related branches found
No related tags found
1 merge request!1Gfx
This commit is part of merge request !1. Comments created here will be created in the context of that merge request.
......@@ -103,3 +103,12 @@ SDL_Keycode gfx_keypressed()
}
return 0;
}
void gfx_draw_line(struct gfx_context_t *ctxt, coordinates_t p0, coordinates_t p1, uint32_t color){
}
void gfx_draw_circle(struct gfx_context_t *ctxt, coordinates_t c, uint32_t r, uint32_t color){
}
\ No newline at end of file
......@@ -29,6 +29,12 @@ struct gfx_context_t
uint32_t height;
};
typedef struct
{
uint32_t row;
uint32_t column;
} coordinates_t;
extern void gfx_putpixel(
struct gfx_context_t *ctxt, uint32_t column, uint32_t row, uint32_t color);
extern void gfx_clear(struct gfx_context_t *ctxt, uint32_t color);
......@@ -36,5 +42,7 @@ extern struct gfx_context_t *gfx_create(char *text, uint32_t width, uint32_t hei
extern void gfx_destroy(struct gfx_context_t *ctxt);
extern void gfx_present(struct gfx_context_t *ctxt);
extern SDL_Keycode gfx_keypressed();
void gfx_draw_line(struct gfx_context_t *ctxt, coordinates_t p0, coordinates_t p1, uint32_t color);
void gfx_draw_circle(struct gfx_context_t *ctxt, coordinates_t c, uint32_t r, uint32_t color);
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment