Przeglądaj źródła

Add CANVAS demo

Rob Loach 1 rok temu
rodzic
commit
0cbc6f43aa
1 zmienionych plików z 10 dodań i 1 usunięć
  1. 10 1
      demo/xcb_cairo/main.c

+ 10 - 1
demo/xcb_cairo/main.c

@@ -37,17 +37,20 @@ static void die(const char *fmt, ...)
  * ===============================================================*/
 /* This are some code examples to provide a small overview of what can be
  * done with this library. To try out an example uncomment the defines */
-/*#define INCLUDE_ALL*/
+
+/*#define INCLUDE_ALL */
 #define INCLUDE_STYLE
 /*#define INCLUDE_CALCULATOR */
 #define INCLUDE_OVERVIEW
 /*#define INCLUDE_NODE_EDITOR */
+/*#define INCLUDE_CANVAS */
 
 #ifdef INCLUDE_ALL
   #define INCLUDE_STYLE
   #define INCLUDE_CALCULATOR
   #define INCLUDE_OVERVIEW
   #define INCLUDE_NODE_EDITOR
+  #define INCLUDE_CANVAS
 #endif
 
 #ifdef INCLUDE_STYLE
@@ -62,6 +65,9 @@ static void die(const char *fmt, ...)
 #ifdef INCLUDE_NODE_EDITOR
   #include "../common/node_editor.c"
 #endif
+#ifdef INCLUDE_CANVAS
+  #include "../common/canvas.c"
+#endif
 
 /* ===============================================================
  *
@@ -142,6 +148,9 @@ main(void)
         #ifdef INCLUDE_NODE_EDITOR
         node_editor(ctx);
         #endif
+        #ifdef INCLUDE_CANVAS
+        canvas(ctx);
+        #endif
         /* ----------------------------------------- */
 
         /* Render */