mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 12:42:11 +00:00
49 lines
1.2 KiB
C++
49 lines
1.2 KiB
C++
#ifndef _GAME_RENDER_LOCALMAP_H
|
|
#define _GAME_RENDER_LOCALMAP_H
|
|
|
|
#include "../mwworld/ptr.hpp"
|
|
|
|
#include <openengine/ogre/renderer.hpp>
|
|
|
|
namespace MWRender
|
|
{
|
|
///
|
|
/// \brief Local map rendering
|
|
///
|
|
class LocalMap
|
|
{
|
|
public:
|
|
LocalMap(OEngine::Render::OgreRenderer*);
|
|
|
|
/**
|
|
* Request the local map for an exterior cell.
|
|
* It will either be loaded from a disk cache,
|
|
* or rendered if it is not already cached.
|
|
* @param exterior cell
|
|
*/
|
|
void requestMap (MWWorld::Ptr::CellStore* cell);
|
|
|
|
/**
|
|
* Request the local map for an interior cell.
|
|
* It will either be loaded from a disk cache,
|
|
* or rendered if it is not already cached.
|
|
* @param interior cell
|
|
* @param bounding box of the cell
|
|
*/
|
|
void requestMap (MWWorld::Ptr::CellStore* cell,
|
|
Ogre::AxisAlignedBox bounds);
|
|
|
|
private:
|
|
OEngine::Render::OgreRenderer* mRendering;
|
|
|
|
Ogre::Camera* mCellCamera;
|
|
|
|
void render(const float x, const float y,
|
|
const float zlow, const float zhigh,
|
|
const float xw, const float yw,
|
|
const std::string& texture);
|
|
};
|
|
|
|
}
|
|
#endif
|