mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-12 02:59:00 +00:00
Add support for hybrid XFB
This commit is contained in:
parent
84ca9a4aec
commit
79387dddb2
45 changed files with 400 additions and 985 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue