Michaël Lemaire
203dd0ab12
git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@350 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
35 lines
786 B
C++
35 lines
786 B
C++
#ifndef _PAYSAGES_QT_EXPLORERCHUNKSKY_H_
|
|
#define _PAYSAGES_QT_EXPLORERCHUNKSKY_H_
|
|
|
|
#include "baseexplorerchunk.h"
|
|
#include "../lib_paysages/renderer.h"
|
|
#include "../lib_paysages/euclid.h"
|
|
#include "../lib_paysages/sky.h"
|
|
|
|
enum SkyboxOrientation
|
|
{
|
|
SKYBOX_NORTH,
|
|
SKYBOX_SOUTH,
|
|
SKYBOX_WEST,
|
|
SKYBOX_EAST,
|
|
SKYBOX_TOP,
|
|
SKYBOX_BOTTOM
|
|
};
|
|
|
|
class ExplorerChunkSky:public BaseExplorerChunk
|
|
{
|
|
public:
|
|
ExplorerChunkSky(Renderer* renderer, SkyDefinition* sky, double size, SkyboxOrientation orientation);
|
|
|
|
void onRenderEvent(QGLWidget* widget);
|
|
double getDisplayedSizeHint(CameraDefinition* camera);
|
|
Color getTextureColor(double x, double y);
|
|
|
|
private:
|
|
SkyDefinition* _sky;
|
|
SkyboxOrientation _orientation;
|
|
double _box_size;
|
|
|
|
};
|
|
|
|
#endif
|