4106625ad3
single-instance Model geometry
36 lines
767 B
C++
36 lines
767 B
C++
#ifndef ModelManager_H
|
|
#define ModelManager_H
|
|
|
|
/*
|
|
-----------------------------------------------------------------------------
|
|
Class: ModelManager
|
|
|
|
Desc: Interface for loading and releasing textures.
|
|
|
|
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
|
Chris Danford
|
|
-----------------------------------------------------------------------------
|
|
*/
|
|
#include "Model.h"
|
|
|
|
#include <map>
|
|
|
|
class ModelManager
|
|
{
|
|
public:
|
|
ModelManager();
|
|
~ModelManager();
|
|
|
|
RageModelGeometry* LoadMilkshapeAscii( CString sFile );
|
|
void UnloadModel( RageModelGeometry *m );
|
|
// void ReloadAll();
|
|
|
|
protected:
|
|
|
|
std::map<CString, RageModelGeometry*> m_mapFileToModel;
|
|
};
|
|
|
|
extern ModelManager* MODELMAN; // global and accessable from anywhere in our program
|
|
|
|
#endif
|