MTek-GDL 0.100.4-muffintrap
Loading...
Searching...
No Matches
mgdl-node.h
1
2#pragma once
3#include <mgdl/mgdl-transform.h>
4#include <mgdl/mgdl-mesh.h>
5#include <mgdl/mgdl-material.h>
6#include <mgdl/mgdl-light.h>
7
8struct DynamicArray;
9
10struct Node
11{
12 Transform* transform;
13 Mesh* mesh;
14 Material* material;
15 Light* light;
16 const char* name;
17 struct DynamicArray* children;
18};
19typedef struct Node Node;
20
21#ifdef __cplusplus
22extern "C"
23{
24#endif
25
26 Node* Node_Create(u8 childCapacity);
27 void Node_SetTransform(Node* node, const char* name, V3f position, V3f rotationAngles);
28 void Node_SetContent(Node* node, const char* name, Mesh* meshParam, Material* materialParam);
29 void Node_Draw(Node* node);
30
31
32#ifdef __cplusplus
33}
34#endif
Definition mgdl-dynamic_array.h:13
Definition mgdl-light.h:19
Material used by a node.
Definition mgdl-material.h:13
Definition mgdl-mesh.h:11
Definition mgdl-node.h:11
Definition mgdl-transform.h:6