1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 04:49:54 +00:00
openmw-tes3mp/apps/openmw/mwrender/cellimp.hpp

44 lines
1 KiB
C++
Raw Normal View History

#ifndef _GAME_RENDER_CELLIMP_H
#define _GAME_RENDER_CELLIMP_H
#include <string>
#include "components/esm_store/cell_store.hpp"
2010-07-03 13:41:20 +00:00
#include "../mwworld/refdata.hpp"
namespace ESM
{
class CellRef;
}
namespace MWRender
{
/// Base class for cell render, that implements inserting references into a cell in a
/// cell type- and render-engine-independent way.
class CellRenderImp
{
public:
CellRenderImp() {}
virtual ~CellRenderImp() {}
/// start inserting a new reference.
2010-07-02 12:00:28 +00:00
virtual void insertBegin (ESM::CellRef &ref) = 0;
/// insert a mesh related to the most recent insertBegin call.
virtual void insertMesh(const std::string &mesh) = 0;
/// insert a light related to the most recent insertBegin call.
virtual void insertLight(float r, float g, float b, float radius) = 0;
/// finish inserting a new reference and return a handle to it.
2010-07-09 14:07:03 +00:00
virtual std::string insertEnd (bool Enable) = 0;
2010-07-03 13:41:20 +00:00
void insertCell(ESMS::CellStore<MWWorld::RefData> &cell);
};
}
#endif