Horizon
src
canvas
selectables_renderer.hpp
1
#pragma once
2
#include <epoxy/gl.h>
3
4
namespace
horizon {
5
class
SelectablesRenderer
{
6
public
:
7
SelectablesRenderer
(
const
class
CanvasGL
&ca,
const
class
Selectables
&sel);
8
void
realize();
9
void
render();
10
void
push();
11
12
private
:
13
const
CanvasGL
&ca;
14
const
Selectables
&sel;
15
16
GLuint program;
17
GLuint vao;
18
GLuint vbo;
19
20
GLuint screenmat_loc;
21
GLuint viewmat_loc;
22
GLuint scale_loc;
23
24
GLuint color_always_loc;
25
GLuint color_inner_loc;
26
GLuint color_outer_loc;
27
GLuint color_prelight_loc;
28
GLuint min_size_loc;
29
};
30
}
// namespace horizon
horizon::CanvasGL
Definition:
canvas_gl.hpp:18
horizon::SelectablesRenderer
Definition:
selectables_renderer.hpp:5
horizon::Selectables
Definition:
selectables.hpp:65
Generated by
1.9.1