summaryrefslogtreecommitdiff
path: root/frontends/calculator/CEdev/examples/gfx_template/src
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2019-04-24 11:03:58 -0400
committerAndrew Opalach <andrew@akon.city> 2019-04-24 11:03:58 -0400
commit4d9d7b5600ab615d68f671df5f8bc6c9fe4a5a09 (patch)
treefe63c3525b2e14f12b4492f87d3e875c4dcec0e4 /frontends/calculator/CEdev/examples/gfx_template/src
parent6152e965868f3e010c79d91ce3da0036758fda4d (diff)
downloadcetris-4d9d7b5600ab615d68f671df5f8bc6c9fe4a5a09.tar.gz
cetris-4d9d7b5600ab615d68f671df5f8bc6c9fe4a5a09.tar.bz2
cetris-4d9d7b5600ab615d68f671df5f8bc6c9fe4a5a09.zip
add pause to curses, remove unfinished calculator frontend
Diffstat (limited to 'frontends/calculator/CEdev/examples/gfx_template/src')
-rw-r--r--frontends/calculator/CEdev/examples/gfx_template/src/main.c64
1 files changed, 0 insertions, 64 deletions
diff --git a/frontends/calculator/CEdev/examples/gfx_template/src/main.c b/frontends/calculator/CEdev/examples/gfx_template/src/main.c
deleted file mode 100644
index 0b97651..0000000
--- a/frontends/calculator/CEdev/examples/gfx_template/src/main.c
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- *--------------------------------------
- * Program Name:
- * Author:
- * License:
- * Description:
- *--------------------------------------
-*/
-
-/* Keep these headers */
-#include <stdbool.h>
-#include <stddef.h>
-#include <stdint.h>
-#include <tice.h>
-
-/* Standard headers (recommended) */
-#include <math.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include <graphx.h>
-
-/* Put your function prototypes here */
-void begin();
-void end();
-bool step();
-void draw();
-
-/* Put all your globals here */
-bool partial_redraw;
-
-void main() {
- begin(); // No rendering allowed!
- gfx_Begin();
- gfx_SetDrawBuffer(); // Draw to the buffer to avoid rendering artifats
-
- while (step()) { // No rendering allowed in step!
- if (partial_redraw) // Only want to redraw part of the previous frame?
- gfx_BlitScreen(); // Copy previous frame as a base for this frame
- draw(); // As little non-rendering logic as possible
- gfx_SwapDraw(); // Queue the buffered frame to be displayed
- }
-
- gfx_End();
- end();
-}
-
-/* Put other functions here */
-void begin() {
- /* Implement me! */
-}
-
-void end() {
- /* Implement me! */
-}
-
-bool step() {
- /* Implement me! */
-}
-
-void draw() {
- /* Implement me! */
-}