aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-28 15:53:17 +1000
committerDavid Walter Seikel2014-05-28 15:53:17 +1000
commit635934fc038d034a1ae632a91609413a4181f106 (patch)
tree4e9fd19a576d5f0f73e817d9baaa98a1e6cbbed3 /src
parentThe UUID faking code is common enough to stick it in a macro. (diff)
downloadSledjHamr-635934fc038d034a1ae632a91609413a4181f106.zip
SledjHamr-635934fc038d034a1ae632a91609413a4181f106.tar.gz
SledjHamr-635934fc038d034a1ae632a91609413a4181f106.tar.bz2
SledjHamr-635934fc038d034a1ae632a91609413a4181f106.tar.xz
Some more in world object structure stuff and fixes.
Diffstat (limited to 'src')
-rw-r--r--src/extantz/extantz.h7
-rw-r--r--src/libraries/love.h28
2 files changed, 24 insertions, 11 deletions
diff --git a/src/extantz/extantz.h b/src/extantz/extantz.h
index 8452261..57fb273 100644
--- a/src/extantz/extantz.h
+++ b/src/extantz/extantz.h
@@ -167,9 +167,10 @@ typedef struct _extantzStuffs
167{ 167{
168 Stuffs stuffs; 168 Stuffs stuffs;
169 Evas_3D_Node *mesh_node; // Multiple Evas_3D_Mesh's can be in one Evas_3D_Node 169 Evas_3D_Node *mesh_node; // Multiple Evas_3D_Mesh's can be in one Evas_3D_Node
170 Eina_Inarray *mesh; // Evas_3D_Mesh 170 // Can't use in arrays here, can't find the element sizes of incomplete types.
171 Eina_Inarray *materials; // Evas_3D_Material 171 Eina_Array *mesh; // Evas_3D_Mesh
172 Eina_Inarray *textures; // Evas_3D_Texture 172 Eina_Array *materials; // Evas_3D_Material
173 Eina_Array *textures; // Evas_3D_Texture
173} ExtantzStuffs; 174} ExtantzStuffs;
174 175
175// Elm GL view related data here. 176// Elm GL view related data here.
diff --git a/src/libraries/love.h b/src/libraries/love.h
index cf23f3c..c7f243f 100644
--- a/src/libraries/love.h
+++ b/src/libraries/love.h
@@ -107,11 +107,23 @@ typedef struct _vec2
107} vec2; 107} vec2;
108 108
109 109
110typedef enum
111{
112 TT_NORMAL = -1
113} TextureType;
114
115typedef enum
116{
117 MT_CUBE,
118 MT_SPHERE
119} MeshType;
120
121
110typedef struct _material 122typedef struct _material
111{ 123{
112 int face; 124 int face;
113 //type? 125 TextureType type;
114 char texture[PATH_MAX]; 126 char texture[PATH_MAX];
115 //colour 127 //colour
116 //alpha 128 //alpha
117 //other stuff 129 //other stuff
@@ -120,16 +132,16 @@ typedef struct _material
120typedef struct _mesh 132typedef struct _mesh
121{ 133{
122 char fileName[PATH_MAX]; 134 char fileName[PATH_MAX];
123 //type 135 MeshType type;
124 vec3 pos; 136 vec3 pos;
125 vec4 rot; 137 vec4 rot;
126 Eina_Inarray materials; // Material 138 Eina_Inarray *materials; // Material
127 Eina_Inarray parts; // Mesh 139 Eina_Inarray *parts; // Mesh
128} Mesh; 140} Mesh;
129 141
130typedef struct _stuffs 142typedef struct _stuffs
131{ 143{
132 char UUID[32], *name, *description, owner[32]; 144 char UUID[45], *name, *description, owner[45];
133 //type 145 //type
134 union 146 union
135 { 147 {
@@ -144,7 +156,7 @@ typedef struct _stuffs
144typedef struct _loveStuffs 156typedef struct _loveStuffs
145{ 157{
146 Stuffs stuffs; 158 Stuffs stuffs;
147 Eina_Inarray contents; // Stuffs 159 Eina_Inarray *contents; // Stuffs
148} LoveStuffs; 160} LoveStuffs;
149 161
150 162