Commit 4cec5705 authored by hybrid's avatar hybrid

Some cleanup, texture loading bug fix reintroduced.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@914 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 9b26c928
This diff is collapsed.
...@@ -6,13 +6,16 @@ ...@@ -6,13 +6,16 @@
#define __C_X_MESH_FILE_LOADER_H_INCLUDED__ #define __C_X_MESH_FILE_LOADER_H_INCLUDED__
#include "IMeshLoader.h" #include "IMeshLoader.h"
#include "IReadFile.h"
#include "irrString.h" #include "irrString.h"
#include "CSkinnedMesh.h" #include "CSkinnedMesh.h"
namespace irr namespace irr
{ {
namespace io
{
class IReadFile;
} // end namespace io
namespace scene namespace scene
{ {
class IMeshManipulator; class IMeshManipulator;
...@@ -25,9 +28,6 @@ public: ...@@ -25,9 +28,6 @@ public:
//! Constructor //! Constructor
CXMeshFileLoader(scene::ISceneManager* smgr); CXMeshFileLoader(scene::ISceneManager* smgr);
//! destructor
virtual ~CXMeshFileLoader();
//! returns true if the file maybe is able to be loaded by this class //! returns true if the file maybe is able to be loaded by this class
//! based on the file extension (e.g. ".cob") //! based on the file extension (e.g. ".cob")
virtual bool isALoadableFileExtension(const c8* fileName); virtual bool isALoadableFileExtension(const c8* fileName);
...@@ -69,12 +69,11 @@ public: ...@@ -69,12 +69,11 @@ public:
core::array<video::SMaterial> Materials; // material array core::array<video::SMaterial> Materials; // material array
}; };
private: private:
bool load(); bool load(io::IReadFile* file);
bool readFileIntoMemory(); bool readFileIntoMemory(io::IReadFile* file);
bool parseFile(); bool parseFile();
...@@ -137,7 +136,6 @@ private: ...@@ -137,7 +136,6 @@ private:
//! reads a x file style string //! reads a x file style string
bool getNextTokenAsString(core::stringc& out); bool getNextTokenAsString(core::stringc& out);
void readUntilEndOfLine(); void readUntilEndOfLine();
core::stringc stripPathFromString(core::stringc string, bool returnPath); core::stringc stripPathFromString(core::stringc string, bool returnPath);
...@@ -156,24 +154,21 @@ private: ...@@ -156,24 +154,21 @@ private:
ISceneManager* SceneManager; ISceneManager* SceneManager;
core::array<scene::SSkinMeshBuffer*> *Buffers;
core::array<CSkinnedMesh::SJoint*> *AllJoints; core::array<CSkinnedMesh::SJoint*> *AllJoints;
CSkinnedMesh* AnimatedMesh; CSkinnedMesh* AnimatedMesh;
io::IReadFile* file;
s32 MajorVersion; u32 MajorVersion;
s32 MinorVersion; u32 MinorVersion;
bool binary; bool BinaryFormat;
s32 binaryNumCount; // counter for number arrays in binary format
s32 BinaryNumCount;
c8* Buffer; c8* Buffer;
s32 Size;
c8 FloatSize;
const c8* P; const c8* P;
c8* End; c8* End;
c8 FloatSize;
bool ErrorHappened; core::stringc FilePath;
CSkinnedMesh::SJoint *CurFrame; CSkinnedMesh::SJoint *CurFrame;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment