Add CANVAS demo
This commit is contained in:
parent
a4af91dd21
commit
0cbc6f43aa
@ -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_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 */
|
||||
|
Loading…
Reference in New Issue
Block a user