Add support for hybrid XFB

This commit is contained in:
iwubcode
2017-05-29 17:02:09 -05:00
parent 84ca9a4aec
commit 79387dddb2
45 changed files with 400 additions and 985 deletions

View File

@ -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;
};