Now we can use C++ tricks to make this easier

This commit is contained in:
jordan4ibanez
2023-11-28 05:02:31 -05:00
parent 80e5da381d
commit 132f1ae5d6
2 changed files with 20 additions and 6 deletions

View File

@ -15,8 +15,20 @@ namespace scene
class CB3DJSONMeshFileLoader : public IMeshLoader
{
private:
// Fields.
CSkinnedMesh* AnimatedMesh;
/*
Quick note about JSON.
This is static memory, it's a static memory address so I do not think
that this needs to be freed.
So once this model goes out of scope, I'm pretty sure that this will
be pointing to the next model. Or maybe the last model loaded.
*/
json data;
// Methods.
void cleanUp(std::string);
bool parseJSONFile();
public: