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 {
|
|
|
|
private:
|
2016-09-27 15:57:41 +00:00
|
|
|
VBO m_vbo;
|
|
|
|
VAO m_vao;
|
|
|
|
Shader m_shader;
|
2016-09-15 15:23:02 +00:00
|
|
|
protected:
|
|
|
|
public:
|
|
|
|
Renderer();
|
|
|
|
~Renderer();
|
2016-09-25 21:05:27 +00:00
|
|
|
void drawCircle(float x, float y, float radius, float r,
|
2016-09-27 16:23:58 +00:00
|
|
|
float g, float b, int numSides=12);
|
2016-09-15 15:23:02 +00:00
|
|
|
};
|
2016-09-25 21:05:27 +00:00
|
|
|
|
|
|
|
}
|