mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Add support for hybrid XFB
This commit is contained in:
@ -10,17 +10,20 @@
|
||||
|
||||
#include "Common/CommonTypes.h"
|
||||
|
||||
class AbstractTexture;
|
||||
|
||||
class SWOGLWindow
|
||||
{
|
||||
public:
|
||||
static void Init(void* window_handle);
|
||||
static void Shutdown();
|
||||
void Prepare();
|
||||
|
||||
// Will be printed on the *next* image
|
||||
void PrintText(const std::string& text, int x, int y, u32 color);
|
||||
|
||||
// Image to show, will be swapped immediately
|
||||
void ShowImage(const u8* data, int stride, int width, int height, float aspect);
|
||||
void ShowImage(AbstractTexture* image, float aspect);
|
||||
|
||||
int PeekMessages();
|
||||
|
||||
@ -28,7 +31,6 @@ public:
|
||||
|
||||
private:
|
||||
SWOGLWindow() {}
|
||||
void Prepare();
|
||||
|
||||
struct TextData
|
||||
{
|
||||
@ -40,5 +42,5 @@ private:
|
||||
|
||||
bool m_init{false};
|
||||
|
||||
u32 m_image_program, m_image_texture, m_image_vao;
|
||||
u32 m_image_program, m_image_vao;
|
||||
};
|
||||
|
Reference in New Issue
Block a user