120 Commits

Author SHA1 Message Date
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
rexy712
b2c8b0b3b5 Switch to true modern opengl (DSA) 2020-10-01 05:01:30 -07:00
rexy712
c45875c108 Change default opengl version to 4.5 to support dsa functions. Will start work on changing to using those new functions 2020-09-30 09:59:02 -07:00
rexy712
2d081fc7e1 Fix linking on non-linux posix systems 2020-09-29 13:55:44 -07:00
rexy712
5449357396 Add license disclaimers to all shared development source files 2020-09-29 13:55:17 -07:00
rexy712
cf33a851e4 Add better glfw debug error reporting 2020-09-29 10:35:02 -07:00
rexy712
8758be4379 push correct change to glfwinit 2020-09-29 07:23:02 -07:00
rexy712
f628a2845a Revert "Add debug printout to glfwInit"
This reverts commit 94718e4608b0a2499f4699f4330af64145e25749.
2020-09-29 07:19:42 -07:00
rexy712
94718e4608 Add debug printout to glfwInit 2020-09-29 07:13:08 -07:00
rexy712
317bf89ea0 fix inclusion of alsa header in non GNU/Linux systems 2020-09-29 03:44:43 -07:00
rexy712
b6aab8e832 Fix makefile libraries being in the wrong variable 2020-09-28 15:30:01 -07:00
rexy712
f44051baae Put default debug level back to 1 in makefile. 2020-09-28 15:27:47 -07:00
rexy712
dd993e6b60 Add scoped_buffer_bind class for RAII style binding of gl_buffer_managers. Also some renaming of 'gl_buffer' and 'buffer_iface' to more descriptive 'gl_buffer_manager' and 'buffer_accessor' 2020-09-28 15:26:43 -07:00
rexy712
b3c909a93a got framebuffer objects functional with texture and renderbuffer attachments 2020-09-27 16:50:17 -07:00
rexy712
fe31a9568f Add kinda hacky fbo and rbo 2020-09-27 13:53:45 -07:00
rexy712
ffa2b06ff2 Improve the debug output system so that it's controlled by the makefile. Also easier to check for debug enable in preprocessor. Add a debug_print_succ macro for outputting success messages 2020-09-27 09:32:58 -07:00
rexy712
78f664c2a5 fix build when using libc++ 2020-09-27 08:41:04 -07:00
rexy712
96de779f55 Change gl extension loader from gl3w to glad since gl3w was loading incorrect addresses and causing segfaults. Also add opengl context debugging output 2020-09-27 08:19:59 -07:00
rexy712
c13bf59949 Add camera class because I felt like it 2020-09-26 16:47:00 -07:00
rexy712
65e08c5464 Fix matrix multiply not returning anything lol 2020-09-26 16:46:39 -07:00
rexy712
41780c24f0 Fix quaternion access to matrix elements 2020-09-26 15:46:53 -07:00
rexy712
180922c6fc Rudimentary grid 2020-09-26 10:51:14 -07:00
rexy712
5787a362ca add long double matrix debug overload 2020-09-26 10:17:29 -07:00
rexy712
1f6de5ba70 Fix mat warnings and add debug printout functions 2020-09-26 09:50:58 -07:00
rexy712
2245e8cea1 Fix _rad and _deg literal operators not working 2020-09-26 09:27:34 -07:00
rexy712
38954946e8 Add shader uniform getters 2020-09-26 09:26:50 -07:00
rexy712
85fad726cc Remove unused global variable 2020-09-23 10:29:44 -07:00
rexy712
adde85b8f6 change 'graphics' namespace to 'gfx' and 'audio' namespace to 'sfx' to make it less cluttery and easier to type out 2020-09-23 10:28:26 -07:00
rexy712
d28201824b Make graphics::window initialize gl3w upon context creation 2020-09-23 10:19:37 -07:00
rexy712
868ab5225e Add option to colorize error/warning debug messages 2020-09-23 10:18:38 -07:00
rexy712
7503a2320d Add glfw global initialization 2020-09-23 09:27:18 -07:00