Skip to content
Snippets Groups Projects
Commit 8b5d6838 authored by florian.burgener's avatar florian.burgener
Browse files

Draw circle

parent 1dca154b
No related branches found
No related tags found
No related merge requests found
...@@ -15,26 +15,29 @@ int main() { ...@@ -15,26 +15,29 @@ int main() {
struct gfx_context_t *ctxt = gfx_create("Planetary system", SCREEN_WIDTH, SCREEN_HEIGHT); struct gfx_context_t *ctxt = gfx_create("Planetary system", SCREEN_WIDTH, SCREEN_HEIGHT);
if (!ctxt) { // if (!ctxt) {
fprintf(stderr, "Graphics initialization failed!\n"); // fprintf(stderr, "Graphics initialization failed!\n");
return EXIT_FAILURE; // return EXIT_FAILURE;
} // }
// // // TODO : create your system // // TODO : create your system
// // while (true) // while (true)
// // { // {
// // gfx_present(ctxt); // gfx_present(ctxt);
// // // TODO : draw the current state of your system // // TODO : draw the current state of your system
// // // TODO : update your system // // TODO : update your system
// // gfx_clear(ctxt, COLOR_BLACK);
// // if (gfx_keypressed() == SDLK_ESCAPE) // gfx_clear(ctxt, COLOR_BLACK);
// // { // draw_full_circle(ctxt, 100, 100, 100, COLOR_YELLOW);
// // break;
// // } // if (gfx_keypressed() == SDLK_ESCAPE)
// // } // {
// break;
// // // TODO : Free your system // }
// // gfx_destroy(ctxt); // }
// // TODO : Free your system
gfx_destroy(ctxt);
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment