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

Automate texture listing for texture atlas making

This commit is contained in:
Perttu Ahola 2011-10-18 11:31:23 +03:00
parent eae2d35ca5
commit 05ab58cd14
5 changed files with 81 additions and 44 deletions

View file

@ -42,6 +42,8 @@ ContentFeatures::~ContentFeatures()
#ifndef SERVER
void ContentFeatures::setTexture(u16 i, std::string name, u8 alpha)
{
used_texturenames[name] = true;
if(g_texturesource)
{
tiles[i].texture = g_texturesource->getTexture(name);