7 Commits

Author SHA1 Message Date
106c7009b5 Clean up some of the concept jank 2022-02-18 17:46:17 -08:00
ae068a8688 Playing with c++20 concepts 2022-02-18 16:57:27 -08:00
e0924c5895 I forgot to commit for a while so there's a lot in here.
Added ubo class template for handling Uniform Buffer Objects. This class automatically finds the offset and alignment for given data in a GLSL std140 uniform block. This makes it easy to just assign data through the gfx::ubo interface and bind that to the relevant shader_program's uniform block
Changed shader_program's method of handling uniforms to match more closely to how vao handles its attributes. That is to call  with the location as argument to get a proxy object on which to operate. I find this nicer to work with than having everything to do with uniforms in the shader_program class itself
Add a flat_camera class which just assigns the near and far plane to 0 and 1 respectively
Start work on a gui system which i'm really not confident about.
Attempting to rethink how renderers work, but also no really confident about where i'm going with it
Break out vbo_scoped_map into a more general scoped_buffer_map class so that vbo and ubo can utilize it
Remove old gl_buffers units that were not really being used since my change over to opengl DSA functions
Change the gfx::resource_manager to keep shared_ptr's in the container so the data can be more nicely shared
Add missing aliases in math::fwd_declare.hpp for boolean types
Change orthographic projection generator function to have the z values behave more in line with how opengl handles z depth. May have to undo this at some point but it seems to behave correctly now
Fix some rvalue related aspects of util::deferred
'
2022-02-04 13:49:22 -08:00
01a20905f4 Add convenience aliases to math classes 2022-01-18 15:26:14 -08:00
rexy712
f6bc17f71b Add some more small clarification comments 2020-08-30 10:48:06 -07:00
rexy712
2369a8146c Cleanup aliases 2020-08-17 09:33:29 -07:00
rexy712
71278c460a Add quaternions. Move math to separate directory 2020-08-17 09:30:42 -07:00