clean up code
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#include "Object.h"
|
||||
#include <iostream>
|
||||
|
||||
|
||||
#define PI (4.0*atan(1.0))
|
||||
|
||||
|
||||
@@ -72,20 +74,6 @@ Object::~Object()
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// private functions
|
||||
|
||||
void Object::setModlDefault(Modl * model)
|
||||
{
|
||||
model->name = "";
|
||||
model->parent = "";
|
||||
model->type = null;
|
||||
model->renderFlags = -1;
|
||||
model->m4x4Translation = glm::mat4(1.0f);
|
||||
model->texture = "";
|
||||
model->vertex = NULL;
|
||||
model->uv = NULL;
|
||||
model->mesh = NULL;
|
||||
model->meshSize = 0;
|
||||
}
|
||||
|
||||
void Object::loadChunks(std::list<ChunkHeader*>& destination, std::streampos start, const std::uint32_t end)
|
||||
{
|
||||
// jump to first chunk
|
||||
@@ -170,7 +158,6 @@ void Object::analyseMsh2Chunks(std::list<ChunkHeader*>& chunkList)
|
||||
if (!strcmp("MODL", (*it)->name))
|
||||
{
|
||||
Modl* tempModl = new Modl;
|
||||
setModlDefault(tempModl);
|
||||
|
||||
// get all subchunks
|
||||
std::list<ChunkHeader*> tempChunks;
|
||||
|
||||
Reference in New Issue
Block a user