voxspatium/src/planet/Planet.h

30 lines
557 B
C++

#ifndef __PLANET_H__
#define __PLANET_H__
#include "util/Common.h"
#include "Shader.h"
#include "Camera.h"
class PlanetFace;
class Planet
{
public:
Planet(glm::vec3 position, float radius);
~Planet();
inline void setLightDirection(glm::vec3 lightDir) { m_lightDir = lightDir; }
inline glm::vec3 getLightDirection() const { return m_lightDir; }
void tick(GLfloat dtime);
void draw(Camera* camera);
private:
glm::vec3 m_position;
float m_radius;
glm::vec3 m_lightDir;
// 6 faces
PlanetFace* m_faces[6];
};
#endif // __PLANET_H__