mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
29 lines
712 B
C++
29 lines
712 B
C++
#pragma once
|
|
#ifndef __PL_HOST_DISPLAY_DRIVER_H__
|
|
#define __PL_HOST_DISPLAY_DRIVER_H__
|
|
|
|
#include "GpPixelFormat.h"
|
|
#include "EGpStandardCursor.h"
|
|
|
|
struct IGpColorCursor;
|
|
|
|
namespace PortabilityLayer
|
|
{
|
|
class HostDisplayDriver
|
|
{
|
|
public:
|
|
virtual void GetDisplayResolution(unsigned int *width, unsigned int *height, GpPixelFormat_t *pixelFormat) = 0;
|
|
virtual IGpColorCursor *LoadColorCursor(int id) = 0;
|
|
virtual void SetColorCursor(IGpColorCursor *colorCursor) = 0;
|
|
virtual void SetStandardCursor(EGpStandardCursor_t standardCursor) = 0;
|
|
|
|
static void SetInstance(HostDisplayDriver *instance);
|
|
static HostDisplayDriver *GetInstance();
|
|
|
|
private:
|
|
static HostDisplayDriver *ms_instance;
|
|
};
|
|
}
|
|
|
|
#endif
|