2023-08-06 02:40:35 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <GL/glew.h>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "glm/glm.hpp"
|
|
|
|
|
|
|
|
class Orbit
|
|
|
|
{
|
|
|
|
public:
|
2023-08-06 15:20:22 +02:00
|
|
|
Orbit(int vertexCount);
|
2023-08-06 02:40:35 +02:00
|
|
|
void render();
|
2023-08-14 01:46:29 +02:00
|
|
|
|
2023-08-15 00:14:19 +02:00
|
|
|
glm::vec3 getPosition(const float meanAnomaly);
|
2023-08-14 01:46:29 +02:00
|
|
|
|
2023-08-06 02:40:35 +02:00
|
|
|
~Orbit();
|
|
|
|
private:
|
2023-08-14 01:46:29 +02:00
|
|
|
const float _pi = 3.14159265359;
|
|
|
|
|
2023-08-06 02:40:35 +02:00
|
|
|
GLuint _vbo;
|
|
|
|
GLuint _vao;
|
|
|
|
|
|
|
|
std::vector<float> _vertices;
|
2023-08-14 01:46:29 +02:00
|
|
|
std::vector<float> _keplerianElements;
|
2023-08-06 02:40:35 +02:00
|
|
|
};
|