9 #ifndef OGLPLUS_EXAMPLE_RESOURCES_HPP // NOLINT(llvm-header-guard)
10 #define OGLPLUS_EXAMPLE_RESOURCES_HPP
29 static auto origin_loc() noexcept {
33 static auto cursors_binding() noexcept {
37 static auto random_binding() noexcept {
41 static auto offsets_binding() noexcept {
45 static auto velocities_binding() noexcept {
49 static auto ages_binding() noexcept {
54 const unsigned _count{4096U};
58 oglp::owned_buffer_name _origin;
59 oglp::owned_buffer_name _cursors;
60 oglp::owned_buffer_name _random;
61 oglp::owned_buffer_name _offsets;
62 oglp::owned_buffer_name _velocities;
63 oglp::owned_buffer_name _ages;
71 void prepare_frame(example&);
87 void prepare_frame(example&);
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
GLuint uint_type
Unsigned integer type.
Definition: config.hpp:73
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