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
rexy712
b514cd2e87
Add some projection functions to math namespace. Break projection into their own header
2020-10-06 17:10:59 -07:00
rexy712
6fe392258b
Make x and o images squares
2020-10-05 11:29:25 -07:00
rexy712
07a5f0a36f
Add ortho camera function to set view bounding box. Add some debug printouts
2020-10-05 11:29:00 -07:00
rexy712
e44a577ff0
Make graphics interface more cohesive. Remove texture functionality that was broken, add more debug printouts and debug levels
2020-10-05 11:27:03 -07:00
rexy712
026b3c129a
Fix matrix multiply working backwards
2020-10-05 11:25:10 -07:00
rexy712
a4e684beb5
Add fbo constructor that will bind existing textures/rbos in a single call
2020-10-02 06:56:39 -07:00
rexy712
9fea54d971
Remove annoying debug_print
2020-10-01 11:33:39 -07:00
rexy712
7874a6d4fd
Layout rendering idea
2020-10-01 11:32:52 -07:00
rexy712
c914489eca
Fix a lot of math inconsistencies and add missing functionality
2020-10-01 11:32:28 -07:00
rexy712
9c87c4399f
Figure out how to resize a framebuffer (just fucking delete all attachments and rebuild them lol). Remove render_manager from main.cpp. Move game logic out of main to make it less cluttered. Remove unused audio functions from main.cpp.
2020-10-01 07:51:32 -07:00