1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-15 01:25:20 +02:00

Make possible and do update textures in node definitions after late texture atlas making

This commit is contained in:
Perttu Ahola
2011-11-14 22:07:42 +02:00
parent c6fd2986d4
commit 1afed48a2c
4 changed files with 26 additions and 1 deletions

View File

@@ -320,6 +320,12 @@ public:
// Register node definition
virtual void set(content_t c, const ContentFeatures &def)=0;
virtual ContentFeatures* getModifiable(content_t c)=0;
/*
Update tile textures to latest return values of TextueSource.
Call after updating the texture atlas of a TextureSource.
*/
virtual void updateTextures(ITextureSource *tsrc)=0;
};
// If textures not actually available (server), tsrc can be NULL