Commit Graph
895 Commits
Author SHA1 Message Date
Wunkolo 666fd96e7f Move color/depth format and size to Renderer interface
The state of these values are not specific to any rendering backend and
can be moved to be part of the interface itself
2023-07-11 11:28:06 -07:00
Wunkolo 5b7fa5be7e Remove redundant Renderer::screenshot definition 2023-07-11 11:28:06 -07:00
Wunkolo 0f3d77768d Fix array declarations to use block-formatting 2023-07-11 11:28:06 -07:00
Wunkolo 0a605339a3 Conditionally compile and link glad
Only include this library in the case that the OpenGL backend is
enabled.
2023-07-11 11:28:06 -07:00
Wunkolo 4864c51125 Migrate OpenGL specific headers to renderer_gl 2023-07-11 11:28:06 -07:00
Wunkolo a636a0d1da Replace ENABLE_OPENGL with PANDA3DS_ENABLE_OPENGL 2023-07-11 11:28:06 -07:00
Wunkolo c53080b444 Fix HTTPServer gpu-renderer interfacing
Fixing some compilation issues that occur when enabling the HTTP server
2023-07-11 11:28:06 -07:00
Wunkolo 9e32b6d4bf Remove OpenGL-specific vector-types
Removes dependency on the OpenGL header and rendering backen for its
`OpenGL::Vector` type in favor of a more standard array.
2023-07-11 11:27:35 -07:00
Wunkolo 2a1683ba62 Introduce "Renderer" abstraction layer
Adds a `renderer` class for which a rendering backend must implement and
will conditionally use OpenGL in the case that `ENABLE_GL` is enabled.
2023-07-11 11:27:35 -07:00
Wunkolo d664d5caf0 Emulator: Conditional OpenGL compilation 2023-07-11 11:27:04 -07:00
Wunkolo 0009b0817d Add ENABLE_OPENGL build option
Allows the OpenGL backend to be fully disabled, continuing a modular
pattern of having multiple possible rendering backends. Also defines the
`ENABLE_OPENGL` preprocessor in the case of conditional source-file
changes depending on the rendering backend.
2023-07-11 11:27:04 -07:00
WunkandGitHub 7382e29fa7 Merge pull request #105 from Wunkolo/tunit-stb_image_write
Move `stb_image_write` into its own translation unit
2023-07-11 11:03:08 -07:00
Wunkolo e4e8e7ce26 Move stb_image_write into its own translation unit
Rather than having the entire implementation within `emulator.cpp`,
causing incremental builds to be much slower, give it its own
translation unit `stb_image_write.c`.
2023-07-11 10:43:20 -07:00
wheremyfoodatandGitHub 148232c0b2 Merge pull request #101 from SimoneN64/master
Don't force users to load rom from terminal
2023-07-11 20:14:17 +03:00
wheremyfoodat b352309290 Introduce 2 methods of resetting the emulator; with and without reload 2023-07-11 16:17:36 +03:00
wheremyfoodat effc9543b3 Formatting 2023-07-11 03:08:12 +03:00
wheremyfoodat 3063efaea1 Revert "Merge branch 'master' of https://github.com/SimoneN64/Panda3DS"
This reverts commit 51fb4865ee, reversing
changes made to de2751fb5c.
2023-07-11 02:50:40 +03:00
wheremyfoodat 51fb4865ee Merge branch 'master' of https://github.com/SimoneN64/Panda3DS 2023-07-11 02:50:24 +03:00
wheremyfoodat de2751fb5c Bonk frontend changes 2023-07-11 02:47:09 +03:00
SimoneN64andwheremyfoodat 6ce861624d Don't force users to load rom from terminal or by dragging and dropping onto executable file. Instead, open a blank window and use SDL's drag&drop feature 2023-07-11 01:58:35 +03:00
wheremyfoodatandGitHub 27cf8d75ca Merge pull request #104 from GPUCode/panda-needs-school
Fix typo
2023-07-11 01:21:01 +03:00
GPUCode 57423e206f Fix typo 2023-07-11 01:18:55 +03:00
SimoneN64 49101037b8 Should reset this flag in the GSP (needs better name) 2023-07-10 23:04:07 +02:00
wheremyfoodatandGitHub 1a176110d7 Merge pull request #47 from Wunkolo/lossy-cast
Address `C4267`/`C4244` warnings
2023-07-10 23:28:52 +03:00
WunkandGitHub 72252fc702 Merge pull request #102 from Wunkolo/sdl-test-disable
Disable compilation of SDL tests
2023-07-10 13:02:23 -07:00
wheremyfoodat 00f0af8771 Sorry Wunk 2023-07-10 22:56:45 +03:00
Wunkolo d96289cc05 Address remaining C4244 warnings
Remaining warnings regarding an implicit cast from `double` to `float`.
2023-07-10 12:33:37 -07:00
Wunkolo 119c908aa7 Add explicit return-type overload for getBits
Allows the return-type to be specified, allowing a concise final cast
after extracting the bit-type.  Addresses the remaining `C4244` warnings
regarding `getBits`.
2023-07-10 12:33:37 -07:00
Wunkolo 37b75f0928 Fix C4267/C4244 warnings
Address warnings involving lossy conversions from larger integer-types into smaller integer-types
2023-07-10 12:33:37 -07:00
Wunkolo 1cb5513716 Disable compilation of SDL tests
Speed up our compilation by about 20 files by removing the need to
compile all of SDL's test suite.
2023-07-10 12:31:10 -07:00
SimoneN64 7ad47875b6 Should reset the state every time a rom is loaded so the user can keep dragging and dropping roms and it works 2023-07-10 21:27:18 +02:00
wheremyfoodatandGitHub 86de7d8aa3 Merge pull request #100 from Wunkolo/config-fs-error-code
config: Use `error_code` prototype of `filesystem::exists`
2023-07-10 22:22:31 +03:00
SimoneN64 a7a908658a Should use SDL_free for drag and drop char* 2023-07-10 21:20:02 +02:00
wheremyfoodatandGitHub e4f3c3beda Bonk config.cpp 2023-07-10 22:01:49 +03:00
SimoneN64 340c18b87b Oops small mistake 2023-07-10 20:53:51 +02:00
SimoneN64 53873c75cc Don't force users to load rom from terminal or by dragging and dropping onto executable file. Instead, open a blank window and use SDL's drag&drop feature 2023-07-10 20:48:13 +02:00
Wunkolo 5372fe6e43 config: Use error_code prototype of filesystem::exists
The non-error-code version of these functions are susceptible to
throwing an exception in the case of system errors like permission
issues or underlying device errors.
2023-07-10 11:33:29 -07:00
wheremyfoodatandGitHub 008f0bfb84 Merge pull request #99 from wheremyfoodat/dynapand
Update dynarmic
2023-07-10 20:09:26 +03:00
wheremyfoodat 334662c0a5 Update dynarmic 2023-07-10 19:48:55 +03:00
wheremyfoodatandGitHub 5f9db9c1cd Merge pull request #97 from OFFTKP/master
Add /status command in http server
2023-07-10 14:41:02 +03:00
offtkp 37188edc3b Add /status command in http server 2023-07-10 13:52:40 +03:00
wheremyfoodatandGitHub c8f4d41b47 Merge pull request #96 from wheremyfoodat/http-server
Add initial http server stuff
2023-07-10 11:51:12 +03:00
wheremyfoodat ba1c3a8ec5 Moar HTTP 2023-07-10 11:30:09 +03:00
wheremyfoodat 536e4566db Fix Windows build 2023-07-10 11:04:15 +03:00
wheremyfoodat 57c45cf58a Remove globals, change conditional compilation, doormat 2023-07-10 02:29:08 +03:00
offtkp b8fa5fc86d Separate http server to a new file 2023-07-10 01:32:47 +03:00
offtkp 77ea84373f Add /input command in http server 2023-07-10 01:00:14 +03:00
offtkp 0949a16e6f Add initial http server stuff 2023-07-10 01:00:08 +03:00
wheremyfoodatandGitHub eb7b056e28 Derp 2023-07-09 23:09:19 +03:00
wheremyfoodatandGitHub d75c183d11 Merge pull request #94 from wheremyfoodat/http-option
Add HTTP server CMake option for Pokemon Bot
2023-07-09 22:49:11 +03:00