1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Cracking blocks while digging

This commit is contained in:
Perttu Ahola 2010-12-21 02:25:47 +02:00
parent d5a78c1253
commit 3b0bff2f74
16 changed files with 232 additions and 289 deletions

View file

@ -37,6 +37,13 @@ const char * g_tile_texture_paths[TILES_COUNT] =
"../data/cloud.png",
};
const char * tile_texture_path_get(u32 i)
{
assert(i < TILES_COUNT);
return g_tile_texture_paths[i];
}
// A mapping from tiles to materials
// Initialized at run-time.
video::SMaterial g_tile_materials[TILES_COUNT];