Duckstation/src/pse/host_interface.h

30 lines
628 B
C
Raw Normal View History

2019-09-12 14:18:13 +00:00
#pragma once
#include "types.h"
2019-09-14 10:28:47 +00:00
#include <memory>
2019-09-12 14:18:13 +00:00
namespace GL {
class Texture;
}
2019-09-14 10:28:47 +00:00
class System;
2019-09-12 14:18:13 +00:00
class HostInterface
{
public:
2019-09-14 10:28:47 +00:00
HostInterface();
virtual ~HostInterface();
2019-09-12 14:18:13 +00:00
virtual void SetDisplayTexture(GL::Texture* texture, u32 offset_x, u32 offset_y, u32 width, u32 height) = 0;
virtual void ReportMessage(const char* message) = 0;
// Adds OSD messages, duration is in seconds.
virtual void AddOSDMessage(const char* message, float duration = 2.0f) = 0;
2019-09-14 10:28:47 +00:00
protected:
bool LoadState(const char* filename);
bool SaveState(const char* filename);
std::unique_ptr<System> m_system;
bool m_running = false;
2019-09-12 14:18:13 +00:00
};