mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Needed to prevent clutter all over the codebase. Does not go all the way yet, goal would be a common render loop between platforms but not there yet.
23 lines
605 B
C++
23 lines
605 B
C++
#pragma once
|
|
|
|
#include "Common/CommonWindows.h"
|
|
#include "Windows/GPU/WindowsGraphicsContext.h"
|
|
|
|
class Thin3DContext;
|
|
|
|
class WindowsGLContext : public WindowsGraphicsContext {
|
|
public:
|
|
bool Init(HINSTANCE hInst, HWND window, std::string *error_message) override;
|
|
void Shutdown() override;
|
|
void SwapInterval(int interval) override;
|
|
void SwapBuffers() override;
|
|
|
|
// Used during window resize. Must be called from the window thread,
|
|
// not the rendering thread or CPU thread.
|
|
void Pause() override;
|
|
void Resume() override;
|
|
|
|
void Resize() override;
|
|
|
|
Thin3DContext *CreateThin3DContext() override;
|
|
};
|