Updated Toy, added a couple util functions
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
|
||||
#include <SDL2/SDL.h>
|
||||
|
||||
#define OPAQUE_TAG_RENDER_NODE 2
|
||||
|
||||
typedef struct _renderNode {
|
||||
//function for releasing memory
|
||||
EngineNodeCallback freeMemory;
|
||||
@@ -14,6 +16,13 @@ typedef struct _renderNode {
|
||||
//toy functions, stored in a dict for flexibility
|
||||
LiteralDictionary* functions;
|
||||
|
||||
//point to the parent
|
||||
EngineNode* parent;
|
||||
|
||||
//my opaque type tag
|
||||
int tag;
|
||||
int _unused;
|
||||
|
||||
//use Toy's memory model
|
||||
EngineNode** children;
|
||||
int capacity;
|
||||
|
||||
Reference in New Issue
Block a user