khanat-opennel-code/code/nel/include/nel/3d/shape_bank_user.h

66 lines
2.3 KiB
C++

// NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
// Copyright (C) 2010 Winch Gate Property Limited
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef NL_SHAPE_BANK_USER_H
#define NL_SHAPE_BANK_USER_H
#include "nel/misc/types_nl.h"
#include "nel/3d/u_shape_bank.h"
#include "nel/3d/shape_bank.h"
namespace NL3D
{
class CDriverUser;
/**
* Implementation of the user interface managing shape bank
*
* \author Matthieu Besson
* \author Nevrax France
* \date 2001
*/
class CShapeBankUser : public UShapeBank
{
public:
virtual ~CShapeBankUser()
{
}
virtual void addShapeCache(const std::string &shapeCacheName);
virtual void removeShapeCache(const std::string &shapeCacheName);
virtual void reset();
virtual void setShapeCacheSize(const std::string &shapeCacheName, sint32 maxSize);
virtual void linkShapeToShapeCache(const std::string &shapeName, const std::string &shapeCacheName);
virtual void preLoadShapesFromDirectory(const std::string &shapeCacheName,
const std::string &path, const std::string &wildCard, bool recurs, NLMISC::IProgressCallback *progress = NULL, bool flushTextures = false);
virtual void preLoadShapesFromBNP(const std::string &shapeCacheName,
const std::string &bnpName, const std::string &wildCard, NLMISC::IProgressCallback *progress = NULL, bool flushTextures = false);
virtual UShape getShape(const std::string &shapeName);
virtual void buildSystemGeometryForshape(const std::string &shapeName);
// The real shape bank
CShapeBank _ShapeBank;
CDriverUser *_DriverUser;
};
} // NL3D
#endif // NL_SHAPE_BANK_USER_H
/* End of shape_bank_user.h */