Commit graph

19 commits

Author SHA1 Message Date
wheremyfoodat
7307bd270b [OpenGL] Same for depth mask 2023-07-05 18:54:09 +03:00
wheremyfoodat
e01f0ea4d0 [OpenGL] Add const to some functions 2023-07-05 00:02:52 +03:00
wheremyfoodat
f7ad66c708 [PICA] Add some clipping definitions 2023-07-04 19:51:07 +03:00
wheremyfoodat
8b703dd147 Merge branch 'master' into dynapica 2023-06-30 16:01:49 +03:00
wheremyfoodat
02d07f29d7 Merge remote-tracking branch 'origin/GamingProcessingUnit' into dynapica 2023-06-27 18:53:59 +03:00
Wunkolo
62fdb29646 Add GPU_DEBUG_INFO CMake-Option
Adds a project-wide setting for allowing renderer code to add additional
diagnostic data.  Currently used to allow `opengl.hpp` to conditionally
implement debug-labeling and scopes.
2023-06-20 11:04:52 -07:00
Wunkolo
dbf0597bd8 Add DebugScope utility-class for RAII-based OpenGL debug-scopes
Simply define this object in a C++ scope like:
```cpp
OpenGL::DebugScope glScope("Renderer::display");
```
and it will associate all functions within the current scope within a
named group. Supports `printf` formatting.
2023-06-20 10:10:11 -07:00
Wunkolo
1251cecc88 Add setObjectLabel for naming OpenGL functions
Add `OPENGL_PRINTF_FORMAT` and `OPENGL_PRINTF_FORMAT_ATTR` macros for providing
printf diagnostic information across platforms.
2023-06-19 23:48:16 -07:00
Mary
f3010f0909 misc: Switch from gl3w to glad
Also add more checks on window and context creation.
2023-06-17 11:26:18 +02:00
wheremyfoodat
936302da2a Raise clang-format column size, make std::span support in opengl.hpp version-dependent 2023-06-16 22:06:59 +03:00
Wunkolo
553d23974a Use std::span to pass vertex data
Starts utilizing
[std::span](https://en.cppreference.com/w/cpp/container/span) to
indicate a non-owning view of a contiguous array of elements rather than
`T* data, usize count`.
2023-06-16 07:28:35 -07:00
wheremyfoodat
48e25870a5 Add const equvalent for OpenGL::Vector operator[] 2023-06-10 16:09:13 +03:00
wheremyfoodat
d79fd1e198 [OpenGL HAL] Add createDSTexture 2023-03-03 00:58:57 +02:00
wheremyfoodat
e41932ec2f [OpenGL library] More texture options 2023-02-06 00:40:13 +02:00
wheremyfoodat
1b7c38e27f [OpenGL] Better deallocation scheme 2023-01-02 23:35:34 +02:00
wheremyfoodat
be4fae5104 Trongle 2022-09-24 02:45:57 +03:00
wheremyfoodat
68698ae7a7 Add GSP::GPU::AcquireRight 2022-09-18 17:30:26 +03:00
wheremyfoodat
51689af51f Update opengl.hpp, start with ELFs 2022-09-15 14:59:44 +03:00
wheremyfoodat
b5371dc66c Initial commit (I really need to remove Boost) 2022-09-15 04:47:14 +03:00