Add support for framedumping to OpenGL ES.

This commit is contained in:
Ryan Houdek
2016-01-01 08:50:15 -06:00
parent af9beecc10
commit 3f15aa4b57
4 changed files with 66 additions and 56 deletions

View File

@ -13,7 +13,13 @@ private:
static void CloseFile();
public:
static bool Start(int w, int h);
enum class DumpFormat
{
FORMAT_BGR,
FORMAT_RGBA
};
static bool Start(int w, int h, DumpFormat format);
static void AddFrame(const u8* data, int width, int height);
static void Stop();
static void DoState();