start this from scratch

This commit is contained in:
Simone
2024-01-18 12:31:53 +01:00
parent c4f021cb9d
commit af7a6c004b
24 changed files with 116 additions and 921 deletions

View File

@@ -2,9 +2,6 @@
#include <backend/Core.hpp>
#include <wsi.hpp>
struct Window;
static SDL_Window* g_Window;
class ParallelRdpWindowInfo {
public:
struct CoordinatePair {
@@ -16,9 +13,12 @@ public:
};
class SDLParallelRdpWindowInfo : public ParallelRdpWindowInfo {
SDL_Window* window;
public:
SDLParallelRdpWindowInfo(SDL_Window* window) : window(window) {}
CoordinatePair get_window_size() {
int width, height;
SDL_GetWindowSize(g_Window, &width, &height);
SDL_GetWindowSize(window, &width, &height);
return CoordinatePair{ static_cast<float>(width), static_cast<float>(height) };
}
};
@@ -33,9 +33,9 @@ VkFormat GetVkFormat();
VkCommandBuffer GetVkCommandBuffer();
void SubmitRequestedVkCommandBuffer();
void InitParallelRDP(const u8* rdram, SDL_Window* window);
void UpdateScreenParallelRdp(n64::Core& core, Window& imguiWindow, n64::VI& vi);
void UpdateScreenParallelRdp(n64::Core& core, n64::VI& vi);
void ParallelRdpEnqueueCommand(int command_length, u32* buffer);
void ParallelRdpOnFullSync();
void UpdateScreenParallelRdpNoGame(n64::Core& core, Window& imguiWindow);
void UpdateScreenParallelRdpNoGame(n64::Core& core);
bool IsFramerateUnlocked();
void SetFramerateUnlocked(bool unlocked);