16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 17:29:18 +02:00

removed dependencies on the old parser. The code can now be compiled outside of Borland C++

This commit is contained in:
tmj-fstate
2017-01-15 15:04:17 +01:00
parent 7df7c8b76e
commit 15cf3d73a8
87 changed files with 3395 additions and 3232 deletions

View File

@@ -6,8 +6,7 @@ distributed with this file, You can
obtain one at
http://mozilla.org/MPL/2.0/.
*/
#ifndef MdlMngrH
#define MdlMngrH
#pragma once
#include "Model3d.h"
#include "usefull.h"
@@ -17,17 +16,15 @@ class TMdlContainer
friend class TModelsManager;
TMdlContainer()
{
Name = NULL;
Model = NULL;
};
~TMdlContainer()
{
SafeDeleteArray(Name);
SafeDelete(Model);
};
TModel3d * LoadModel(char *newName, bool dynamic);
TModel3d * LoadModel(std::string const &NewName, bool dynamic);
TModel3d *Model;
char *Name;
std::string Name;
};
class TModelsManager
@@ -35,7 +32,7 @@ class TModelsManager
private:
static TMdlContainer *Models;
static int Count;
static TModel3d * LoadModel(char *Name, bool dynamic);
static TModel3d * LoadModel(std::string const &Name, bool dynamic);
public:
// TModelsManager();
@@ -43,7 +40,6 @@ class TModelsManager
static void Init();
static void Free();
// McZapkie: dodalem sciezke, notabene Path!=Patch :)
static TModel3d * GetModel(const char *Name, bool dynamic = false);
static TModel3d * GetModel(std::string const &Name, bool dynamic = false);
};
//---------------------------------------------------------------------------
#endif