2014-02-10 18:54:46 +00:00
|
|
|
#pragma once
|
2011-01-31 01:28:32 +00:00
|
|
|
|
2014-03-12 19:33:41 +00:00
|
|
|
#include <string>
|
2014-02-17 10:18:15 +00:00
|
|
|
#include "VideoCommon/VideoBackendBase.h"
|
2011-01-31 01:28:32 +00:00
|
|
|
|
2014-02-02 13:16:43 +00:00
|
|
|
namespace MMIO { class Mapping; }
|
|
|
|
|
2011-01-31 01:28:32 +00:00
|
|
|
namespace SW
|
|
|
|
{
|
|
|
|
|
2011-03-16 22:48:17 +00:00
|
|
|
class VideoSoftware : public VideoBackend
|
2011-01-31 01:28:32 +00:00
|
|
|
{
|
2014-08-06 04:44:21 +00:00
|
|
|
bool Initialize(void *window_handle) override;
|
2013-10-29 05:34:26 +00:00
|
|
|
void Shutdown() override;
|
2011-01-31 01:28:32 +00:00
|
|
|
|
2014-03-11 05:55:00 +00:00
|
|
|
std::string GetName() const override;
|
2014-08-04 00:07:27 +00:00
|
|
|
std::string GetDisplayName() const override;
|
2011-01-31 01:28:32 +00:00
|
|
|
|
2013-10-29 05:34:26 +00:00
|
|
|
void EmuStateChange(EMUSTATE_CHANGE newState) override;
|
2011-01-31 01:28:32 +00:00
|
|
|
|
2013-10-29 05:34:26 +00:00
|
|
|
void RunLoop(bool enable) override;
|
2011-01-31 01:28:32 +00:00
|
|
|
|
2013-10-29 05:34:26 +00:00
|
|
|
void ShowConfig(void* parent) override;
|
2011-01-31 01:28:32 +00:00
|
|
|
|
2013-10-29 05:34:26 +00:00
|
|
|
void Video_Prepare() override;
|
|
|
|
void Video_Cleanup() override;
|
2011-01-31 01:28:32 +00:00
|
|
|
|
2013-10-29 05:34:26 +00:00
|
|
|
void Video_EnterLoop() override;
|
|
|
|
void Video_ExitLoop() override;
|
2014-05-02 07:08:44 +00:00
|
|
|
void Video_BeginField(u32, u32, u32, u32) override;
|
2013-10-29 05:34:26 +00:00
|
|
|
void Video_EndField() override;
|
2013-10-29 05:23:17 +00:00
|
|
|
|
2013-10-29 05:34:26 +00:00
|
|
|
u32 Video_AccessEFB(EFBAccessType, u32, u32, u32) override;
|
|
|
|
u32 Video_GetQueryResult(PerfQueryType type) override;
|
2014-11-13 22:26:49 +00:00
|
|
|
u16 Video_GetBoundingBox(int index) override;
|
2011-01-31 01:28:32 +00:00
|
|
|
|
2014-03-12 19:33:41 +00:00
|
|
|
void Video_AddMessage(const std::string& msg, unsigned int milliseconds) override;
|
2013-10-29 05:34:26 +00:00
|
|
|
void Video_ClearMessages() override;
|
2014-03-12 19:33:41 +00:00
|
|
|
bool Video_Screenshot(const std::string& filename) override;
|
2011-01-31 01:28:32 +00:00
|
|
|
|
2013-09-02 06:40:05 +00:00
|
|
|
int Video_LoadTexture(char *imagedata, u32 width, u32 height);
|
|
|
|
void Video_DeleteTexture(int texID);
|
|
|
|
void Video_DrawTexture(int texID, float *coords);
|
|
|
|
|
2013-10-29 05:34:26 +00:00
|
|
|
void Video_SetRendering(bool bEnabled) override;
|
2011-01-31 01:28:32 +00:00
|
|
|
|
2013-10-29 05:34:26 +00:00
|
|
|
void Video_GatherPipeBursted() override;
|
2015-03-05 20:14:46 +00:00
|
|
|
void Video_Sync() override {}
|
2011-01-31 01:28:32 +00:00
|
|
|
|
2014-02-02 13:16:43 +00:00
|
|
|
void RegisterCPMMIO(MMIO::Mapping* mmio, u32 base) override;
|
|
|
|
|
2013-10-29 05:34:26 +00:00
|
|
|
unsigned int PeekMessages() override;
|
2011-12-31 04:16:12 +00:00
|
|
|
|
2013-10-29 05:34:26 +00:00
|
|
|
void PauseAndLock(bool doLock, bool unpauseOnUnlock=true) override;
|
|
|
|
void DoState(PointerWrap &p) override;
|
2013-10-29 05:23:17 +00:00
|
|
|
|
2012-12-23 12:32:23 +00:00
|
|
|
public:
|
2013-10-29 05:34:26 +00:00
|
|
|
void CheckInvalidState() override;
|
2011-01-31 01:28:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|