OGLplus  (0.59.0) a C++ wrapper for rendering APIs

resources.hpp
1 
9 #ifndef OGLPLUS_EXAMPLE_RESOURCES_HPP // NOLINT(llvm-header-guard)
10 #define OGLPLUS_EXAMPLE_RESOURCES_HPP
11 
12 #include <oglplus/gl.hpp>
13 #include <oglplus/gl_api.hpp>
14 
16 
17 namespace eagine::application {
18 //------------------------------------------------------------------------------
19 // random texture
20 //------------------------------------------------------------------------------
21 class random_texture {
22 public:
23  void init(execution_context&, video_context&);
24  void clean_up(execution_context&, video_context&);
25 
26 private:
28 };
29 //------------------------------------------------------------------------------
30 // voronoi program
31 //------------------------------------------------------------------------------
32 class voronoi_program {
33 public:
35  oglp::uniform_location offset_loc;
36  oglp::uniform_location scale_loc;
37 
38  void init(execution_context&, video_context&);
39  void clean_up(execution_context&, video_context&);
40 
41 private:
44 };
45 //------------------------------------------------------------------------------
46 // screen geometry
47 //------------------------------------------------------------------------------
48 class screen_geometry {
49 public:
50  oglp::vertex_attrib_location position_loc{0};
51  oglp::vertex_attrib_location tex_coord_loc{1};
52 
53  void init(execution_context&, video_context&);
54  void clean_up(execution_context&, video_context&);
55 
56 private:
58 
59  oglp::owned_buffer_name positions;
60  oglp::owned_buffer_name tex_coords;
61 };
62 //------------------------------------------------------------------------------
63 } // namespace eagine::application
64 
65 #endif
Application harness / wrapper code is placed in this namespace.
Definition: eagine.hpp:72
prog_var_location< EAGINE_ID_V(Uniform)> uniform_location
Alias for shader program uniform location wrapper.
Definition: prog_var_loc.hpp:115
gl_owned_object_name< shader_tag > owned_shader_name
Alias for owned GL shader object handle.
Definition: object_name.hpp:208
gl_owned_object_name< texture_tag > owned_texture_name
Alias for owned GL texture object handle.
Definition: object_name.hpp:213
gl_owned_object_name< vertex_array_tag > owned_vertex_array_name
Alias for owned GL vertex array object handle.
Definition: object_name.hpp:224
prog_var_location< EAGINE_ID_V(VertexAttr)> vertex_attrib_location
Alias for program vertex attribute location wrapper.
Definition: prog_var_loc.hpp:104
gl_owned_object_name< program_tag > owned_program_name
Alias for owned GL program object handle.
Definition: object_name.hpp:188

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).