2019-11-11 00:11:59 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "HostDisplayDriver.h"
|
|
|
|
|
|
2019-12-21 18:40:17 -05:00
|
|
|
struct IGpDisplayDriver;
|
2019-11-11 00:11:59 -05:00
|
|
|
|
|
|
|
|
class GpPLGlueDisplayDriver final : public PortabilityLayer::HostDisplayDriver
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
GpPLGlueDisplayDriver();
|
|
|
|
|
|
2019-12-23 17:43:10 -05:00
|
|
|
void GetDisplayResolution(unsigned int *width, unsigned int *height, GpPixelFormat_t *bpp) override;
|
2019-12-22 00:35:30 -05:00
|
|
|
IGpColorCursor *LoadColorCursor(int id) override;
|
|
|
|
|
void SetColorCursor(IGpColorCursor *colorCursor) override;
|
|
|
|
|
void SetStandardCursor(EGpStandardCursor_t standardCursor) override;
|
2019-11-11 00:11:59 -05:00
|
|
|
|
|
|
|
|
void SetGpDisplayDriver(IGpDisplayDriver *displayDriver);
|
|
|
|
|
|
|
|
|
|
static GpPLGlueDisplayDriver *GetInstance();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
IGpDisplayDriver *m_displayDriver;
|
|
|
|
|
|
|
|
|
|
static GpPLGlueDisplayDriver ms_instance;
|
|
|
|
|
};
|