160 Commits

Author SHA1 Message Date
daa5f13a60 Remove files that were not being used anymore 2022-02-10 10:43:55 -08:00
d862fa5fc0 Removed all this random testing bs 2022-02-10 10:42:02 -08:00
06d3c3d9c7 Fix incorrect type in uniform 2022-02-06 13:37:42 -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
1b884a9a48 Update makefile 2022-01-26 19:03:03 -08:00
7622aa74a6 Fix memory leak and undefined behavior in stb_alloc.cpp 2022-01-26 17:46:14 -08:00
6f670b6cd9 Rendering some amount of text bby 2022-01-26 16:43:31 -08:00
fa15721c94 Work on text rendering. All just tinkering really 2022-01-20 17:03:00 -08:00
a8082b6885 Add some font test comments 2022-01-18 15:28:26 -08:00
da9b871626 Add ability to buffer data to the middle of a vbo 2022-01-18 15:28:10 -08:00
80cb7f9528 Add deferred_function for when you want to call something other than a constructor lazily 2022-01-18 15:27:47 -08:00
54014cf460 Update font atlas generator to make smaller textures 2022-01-18 15:27:04 -08:00
01a20905f4 Add convenience aliases to math classes 2022-01-18 15:26:14 -08:00
52808c3826 Change resource manager to be more closely tied to the opengl context instance rather than the game instance 2022-01-18 12:03:46 -08:00
6580fdd4d5 Add debug output on reset in play_state 2022-01-17 14:57:13 -08:00
512cd70145 Update makefile to actually work. Add reset button in play_state (r) 2022-01-17 13:58:39 -08:00
21137971ca Start work on figuring out interface between graphics and engine subsystems. I did this by creating a 'board_gfx' class that became a member of the 'board' class. This gfx member does all the graphics legwork for the type.
I also put all the tic-tac-toe specific files into 'ttt' subdirectories to make it easier to see what's specifically for this game and what's just a wip idea
2022-01-17 13:35:29 -08:00
5857c442aa Add geometry shader to the square_shader for tests. Add texture_base class to allow easier addition of the texture_array class. Finally got some level of instance rendering to work, even if it's not technically instanced. 2022-01-16 15:17:43 -08:00
a49d24d61e Add basic font atlas loading 2022-01-15 15:26:21 -08:00
1c4d5cd304 Add subimage to texture 2022-01-15 11:36:42 -08:00
913285e57a Make board tiles change color if they are hovered and clicked 2022-01-10 12:44:14 -08:00
46c22c6193 Add pause screen image 2022-01-10 10:35:33 -08:00
56e4599ea1 Add resource manager. Add tic tac toe board abstraction 2022-01-09 15:46:53 -08:00
9a16c6ca69 Merge branch 'rexy-graphics' of ssh://rexy712.chickenkiller.com:1995/var/git/repos/rexy712/our_dick into rexy-graphics 2021-08-01 13:27:37 -07:00
59b6cd65fd Fix wayland build and merge fixes from other project using audio 2021-08-01 13:27:13 -07:00
rexy712
2857345b87 Add line-line collision check 2021-01-17 16:26:33 -08:00
rexy712
835f190aa9 Add sphere-rectangle collision check 2021-01-13 10:21:15 -08:00
rexy712
73cf1e3f42 Add sphere-linesegment collision check 2021-01-13 10:17:57 -08:00
rexy712
e7bbfb4591 Add sphere-sphere collision check 2021-01-13 10:15:10 -08:00
rexy712
93cc1b4d02 Add sphere-point collision check 2021-01-13 10:13:19 -08:00
rexy712
5a22d09e47 Fix retard rectangle-point collision check 2021-01-12 14:32:51 -08:00
rexy712
de510b1f14 Fix rectangle-point collision checks in the cases where the point is only outside the coplanar rectangle on 1 primary axis. 2021-01-11 18:02:33 -08:00
rexy712
3946f9157c Add point-rectangle collision check 2021-01-11 16:38:10 -08:00
rexy712
bc7846b697 Clarify for myself how the line-point intersection check works 2021-01-05 13:38:55 -08:00
rexy712
34f4b22ad8 Change around collision related classes to allow for collision detection between classes without vtables given we know the dynamic type 2020-12-03 12:57:42 -08:00
rexy712
aea6fb5320 Change line-point intersection check to no longer be constrained to 3D space only 2020-12-02 15:34:05 -08:00
rexy712
fd282607ae Add epsilon tunable to collision checks. Add line-point collision check logic 2020-12-01 12:19:16 -08:00
rexy712
478b82582b Add collidable point 2020-11-30 14:07:35 -08:00
rexy712
32aabb472a Change some stuff about collision setup. Trying out double dispatch to make it easy to just call check_collision(a, b) with unknown dynamic type 2020-10-26 17:34:43 -07:00
rexy712
ffc584e56d Remove exceptions 2020-10-25 16:41:25 -07:00
rexy712
6a47a796b9 Change function naming in object class to better match the naming convention 2020-10-24 08:33:57 -07:00
rexy712
0959517d08 Work on bounding volumes 2020-10-18 10:00:55 -07:00
rexy712
05efb3c006 Remove aliased warning option 2020-10-18 10:00:21 -07:00
rexy712
b488d80dc9 Add converting constructors and assignment operators to math objects 2020-10-18 09:59:35 -07:00
rexy712
fc11e5dd0e Fix typo 2020-10-17 19:37:57 -07:00
rexy712
20b3a47aba Add a bunch more debug_print calls 2020-10-17 19:16:34 -07:00
rexy712
f66e20aa3d Working very unpolished tic-tac-toe game. 2020-10-11 12:36:05 -07:00
rexy712
60ab28d37a Change how window handles initial viewport setup. Add option to make context current upon window creation 2020-10-06 17:13:27 -07:00
rexy712
befab0f495 Remove unused render.cpp and render.hpp 2020-10-06 17:12:43 -07:00
rexy712
223dbc7006 Change how fbo's manage viewports since I misunderstood how glViewportIndexedf works 2020-10-06 17:11:49 -07:00