diff options
author | Simponic <loganthebean222@gmail.com> | 2020-08-04 23:36:21 -0600 |
---|---|---|
committer | Simponic <loganthebean222@gmail.com> | 2020-08-04 23:36:21 -0600 |
commit | ebd81999b71ada201a316060fa47a7a66a277935 (patch) | |
tree | 930be8337e1144ba227bedb3e72e4473309c28e8 /src/instance.h | |
parent | b323ae0ca067deb0a48e3d9088160383d698a28f (diff) | |
download | simple3dengine-ebd81999b71ada201a316060fa47a7a66a277935.tar.gz simple3dengine-ebd81999b71ada201a316060fa47a7a66a277935.zip |
Added files
Diffstat (limited to 'src/instance.h')
-rw-r--r-- | src/instance.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/instance.h b/src/instance.h new file mode 100644 index 0000000..c9be41d --- /dev/null +++ b/src/instance.h @@ -0,0 +1,24 @@ +#include "defs.h" +#include "pt.h" +#include "vertex.h" +#include "triangle.h" +#include "model.h" +#include <math.h> +#include <stdlib.h> + +#ifndef INSTANCE_H +#define INSTANCE_H + +typedef struct INSTANCE { + MODEL *model; + VERTEX *position; + FIXED scale; + FIXED *xRotation; + FIXED *yRotation; + FIXED *zRotation; +} INSTANCE; + +void renderInstance(); +void destroyInstance(); + +#endif // INSTANCE_H |