KlassischeKeplerKriege/game/renderer.hpp

27 lines
410 B
C++
Raw Normal View History

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-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:
VBO m_vbo;
VAO m_vao;
Shader m_shader;
2016-09-25 21:05:27 +00:00
2016-09-27 18:56:17 +00:00
protected:
public:
Renderer();
~Renderer();
void render();
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
}