2016-09-15 15:23:02 +00:00
|
|
|
#pragma once
|
|
|
|
|
2016-09-25 21:05:27 +00:00
|
|
|
#include <math.h>
|
|
|
|
|
2016-09-15 15:23:02 +00:00
|
|
|
#include <epoxy/gl.h>
|
|
|
|
#include <epoxy/glx.h>
|
|
|
|
|
2016-09-27 17:01:21 +00:00
|
|
|
#include "glclasses.hpp"
|
2016-09-28 01:33:01 +00:00
|
|
|
#include "game.hpp"
|
|
|
|
#include "state/planet.hpp"
|
2016-09-28 03:50:43 +00:00
|
|
|
#include "state/trace.hpp"
|
|
|
|
#include "state/player.hpp"
|
|
|
|
#include "state/ship.hpp"
|
|
|
|
#include "state/missile.hpp"
|
2016-09-27 15:57:41 +00:00
|
|
|
|
2016-09-25 21:05:27 +00:00
|
|
|
namespace endofthejedi {
|
|
|
|
|
2016-09-15 15:23:02 +00:00
|
|
|
class Renderer {
|
2016-09-27 18:56:17 +00:00
|
|
|
private:
|
|
|
|
Shader m_shader;
|
2016-09-25 21:05:27 +00:00
|
|
|
|
2016-09-27 18:56:17 +00:00
|
|
|
protected:
|
|
|
|
public:
|
|
|
|
Renderer();
|
|
|
|
~Renderer();
|
2016-09-28 01:33:01 +00:00
|
|
|
void render(const game::State* state);
|
2016-09-27 18:56:17 +00:00
|
|
|
void drawCircle(float x, float y, float radius, float r, float g, float b,
|
|
|
|
int numSides = 12);
|
|
|
|
};
|
2016-09-25 21:05:27 +00:00
|
|
|
}
|