Skip to content

Commit

Permalink
Add CANVAS demo
Browse files Browse the repository at this point in the history
  • Loading branch information
RobLoach committed Apr 16, 2024
1 parent a4af91d commit 0cbc6f4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion demo/xcb_cairo/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

/* ===============================================================
*
Expand Down Expand Up @@ -142,6 +148,9 @@ main(void)
#ifdef INCLUDE_NODE_EDITOR
node_editor(ctx);
#endif
#ifdef INCLUDE_CANVAS
canvas(ctx);
#endif
/* ----------------------------------------- */

/* Render */
Expand Down

0 comments on commit 0cbc6f4

Please sign in to comment.