diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-11-14 22:07:42 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-29 19:13:42 +0200 |
commit | 1afed48a2c90548e0b420c9c3d7d4af9e0734d1d (patch) | |
tree | d485510b3eaa0b4fcc2aa4a4cf336da025003bfd /src/nodedef.h | |
parent | c6fd2986d4261cf742d3bc21e8c12be59ab89f95 (diff) | |
download | minetest-1afed48a2c90548e0b420c9c3d7d4af9e0734d1d.tar.gz minetest-1afed48a2c90548e0b420c9c3d7d4af9e0734d1d.tar.bz2 minetest-1afed48a2c90548e0b420c9c3d7d4af9e0734d1d.zip |
Make possible and do update textures in node definitions after late texture atlas making
Diffstat (limited to 'src/nodedef.h')
-rw-r--r-- | src/nodedef.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nodedef.h b/src/nodedef.h index dece63fcd..5aba69c48 100644 --- a/src/nodedef.h +++ b/src/nodedef.h @@ -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 |