Add CANVAS demo

This commit is contained in:
Rob Loach 2024-04-15 20:59:29 -04:00
parent a4af91dd21
commit 0cbc6f43aa
No known key found for this signature in database
GPG Key ID: 627C60834A74A21A

View File

@ -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 */