2012-06-08 15:28:29 +00:00
|
|
|
#ifndef _PAYSAGES_QT_EXPLORERCHUNKSKY_H_
|
|
|
|
#define _PAYSAGES_QT_EXPLORERCHUNKSKY_H_
|
|
|
|
|
|
|
|
#include "baseexplorerchunk.h"
|
|
|
|
#include "../lib_paysages/renderer.h"
|
2013-01-19 22:42:50 +00:00
|
|
|
#include "../lib_paysages/tools/euclid.h"
|
2012-06-08 15:28:29 +00:00
|
|
|
|
|
|
|
enum SkyboxOrientation
|
|
|
|
{
|
|
|
|
SKYBOX_NORTH,
|
|
|
|
SKYBOX_SOUTH,
|
|
|
|
SKYBOX_WEST,
|
|
|
|
SKYBOX_EAST,
|
|
|
|
SKYBOX_TOP,
|
|
|
|
SKYBOX_BOTTOM
|
|
|
|
};
|
|
|
|
|
|
|
|
class ExplorerChunkSky:public BaseExplorerChunk
|
|
|
|
{
|
|
|
|
public:
|
2012-11-25 21:53:01 +00:00
|
|
|
ExplorerChunkSky(Renderer* renderer, double size, SkyboxOrientation orientation);
|
2013-01-19 22:42:50 +00:00
|
|
|
|
2013-02-05 21:25:30 +00:00
|
|
|
void onCameraEvent(CameraDefinition* camera);
|
2012-06-08 15:28:29 +00:00
|
|
|
void onRenderEvent(QGLWidget* widget);
|
2012-06-17 09:40:40 +00:00
|
|
|
double getDisplayedSizeHint(CameraDefinition* camera);
|
|
|
|
Color getTextureColor(double x, double y);
|
2013-01-19 22:42:50 +00:00
|
|
|
|
2012-06-08 15:28:29 +00:00
|
|
|
private:
|
|
|
|
SkyboxOrientation _orientation;
|
2012-06-17 09:40:40 +00:00
|
|
|
double _box_size;
|
2013-02-05 21:25:30 +00:00
|
|
|
Vector3 _center;
|
2012-06-08 15:28:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|