2011-01-31 01:28:32 +00:00
|
|
|
|
|
|
|
#ifndef SW_VIDEO_BACKEND_H_
|
|
|
|
#define SW_VIDEO_BACKEND_H_
|
|
|
|
|
|
|
|
#include "VideoBackendBase.h"
|
|
|
|
|
|
|
|
namespace SW
|
|
|
|
{
|
|
|
|
|
2011-03-16 22:48:17 +00:00
|
|
|
class VideoSoftware : public VideoBackend
|
2011-01-31 01:28:32 +00:00
|
|
|
{
|
2011-02-25 21:14:13 +00:00
|
|
|
bool Initialize(void *&);
|
2011-01-31 01:28:32 +00:00
|
|
|
void Shutdown();
|
|
|
|
|
|
|
|
std::string GetName();
|
|
|
|
|
2011-02-02 04:40:27 +00:00
|
|
|
void EmuStateChange(EMUSTATE_CHANGE newState);
|
2011-01-31 01:28:32 +00:00
|
|
|
|
|
|
|
void DoState(PointerWrap &p);
|
2011-02-08 11:02:34 +00:00
|
|
|
void RunLoop(bool enable);
|
2011-01-31 01:28:32 +00:00
|
|
|
|
|
|
|
void ShowConfig(void* parent);
|
|
|
|
|
|
|
|
void Video_Prepare();
|
|
|
|
|
|
|
|
void Video_EnterLoop();
|
|
|
|
void Video_ExitLoop();
|
|
|
|
void Video_BeginField(u32, FieldType, u32, u32);
|
|
|
|
void Video_EndField();
|
|
|
|
u32 Video_AccessEFB(EFBAccessType, u32, u32, u32);
|
|
|
|
|
|
|
|
void Video_AddMessage(const char* pstr, unsigned int milliseconds);
|
2011-02-03 19:55:30 +00:00
|
|
|
void Video_ClearMessages();
|
2011-01-31 01:28:32 +00:00
|
|
|
bool Video_Screenshot(const char* filename);
|
|
|
|
|
|
|
|
void Video_SetRendering(bool bEnabled);
|
|
|
|
|
2011-03-16 22:48:17 +00:00
|
|
|
void Video_GatherPipeBursted();
|
|
|
|
|
2011-02-10 04:47:02 +00:00
|
|
|
bool Video_IsPossibleWaitingSetDrawDone();
|
2011-01-31 01:28:32 +00:00
|
|
|
void Video_AbortFrame();
|
|
|
|
|
2011-03-16 22:48:17 +00:00
|
|
|
readFn16 Video_CPRead16();
|
|
|
|
writeFn16 Video_CPWrite16();
|
|
|
|
readFn16 Video_PERead16();
|
|
|
|
writeFn16 Video_PEWrite16();
|
|
|
|
writeFn32 Video_PEWrite32();
|
|
|
|
|
2011-01-31 01:28:32 +00:00
|
|
|
void UpdateFPSDisplay(const char*);
|
|
|
|
unsigned int PeekMessages();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|