16 unsigned last_fragments_per_pixel;
17 unsigned last_nodes_per_pixel;
20 bool init_frame_called;
26 unsigned head_pointer_buffer;
32 int head_pointers_binding_point;
33 int nodes_binding_point;
38 static void ensure_buffer(GLuint& buffer, GLenum target, GLsizeiptr size,
const void* data, GLenum usage = GL_DYNAMIC_DRAW);
39 static void destruct_buffer(GLuint& buffer);
40 void destruct_buffers(
context& ctx);
41 void ensure_buffers(
context& ctx);
46 a_buffer(
unsigned _fragments_per_pixel = 32,
unsigned _nodes_per_pixel = 64,
int _depth_tex_unit = 0,
47 int _node_counter_binding_point = 0,
int _head_pointers_binding_point = 0,
int _nodes_binding_point = 1);
70 void finish_frame(
context& ctx);
72 int& ref_depth_tex_unit() {
return depth_tex_unit; }
73 int& ref_node_counter_binding_point () {
return node_counter_binding_point ; }
74 int& ref_head_pointers_binding_point() {
return head_pointers_binding_point ; }
75 int& ref_nodes_binding_point () {
return nodes_binding_point ; }
base class for all drawables, which is independent of the used rendering API.
the texture class encapsulates all functionality independent of the rendering api.