overloads, tutorial 04 init
This commit is contained in:
1 parent
409ee294eb
commit
4fa65fc535
25 files changed
+232
-77
No files matched your search
@@ -14,12 +14,13 @@
|
||||
namespace Tyra {
|
||||
|
||||
Tutorial03::Tutorial03(Engine* t_engine) : engine(t_engine) {
|
||||
/** Lets set default value, to prevent nullptr bugs */
|
||||
textureAtlas = nullptr;
|
||||
}
|
||||
|
||||
Tutorial03::~Tutorial03() {
|
||||
if (textureAtlas != nullptr) {
|
||||
engine->renderer.core.texture.repository.free(textureAtlas);
|
||||
engine->renderer.getTextureRepository().free(textureAtlas);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user