]> git.lizzy.rs Git - minetest.git/blobdiff - src/tile.h
Add shutdown hook interface to Lua API
[minetest.git] / src / tile.h
index a6609a3a612ad3594f4a7fb206c387dc166a093e..ae986e797ebdc38ce8113a8f149ae244c38805a6 100644 (file)
@@ -20,7 +20,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #ifndef TILE_HEADER
 #define TILE_HEADER
 
-#include "common_irrlicht.h"
+#include "irrlichttypes.h"
+#include "irr_v2d.h"
+#include "irr_v3d.h"
+#include <ITexture.h>
+#include <IrrlichtDevice.h>
 #include "threads.h"
 #include <string>
 
@@ -57,6 +61,14 @@ struct AtlasPointer
        v2f size; // Size in atlas
        u16 tiled; // X-wise tiling count. If 0, width of atlas is width of image.
 
+       AtlasPointer():
+               id(0),
+               atlas(NULL),
+               pos(0,0),
+               size(1,1),
+               tiled(1)
+       {}
+
        AtlasPointer(
                        u16 id_,
                        video::ITexture *atlas_=NULL,