mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 23:00:42 +00:00
Lots of stuff
This commit is contained in:
18
GpD3D/GpDisplayDriverFactory.h
Normal file
18
GpD3D/GpDisplayDriverFactory.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
#include "EGpDisplayDriverType.h"
|
||||
|
||||
class IGpDisplayDriver;
|
||||
struct GpDisplayDriverProperties;
|
||||
|
||||
class GpDisplayDriverFactory
|
||||
{
|
||||
public:
|
||||
typedef IGpDisplayDriver *(*FactoryFunc_t)(const GpDisplayDriverProperties &properties);
|
||||
|
||||
static IGpDisplayDriver *CreateDisplayDriver(const GpDisplayDriverProperties &properties);
|
||||
static void RegisterDisplayDriverFactory(EGpDisplayDriverType type, FactoryFunc_t func);
|
||||
|
||||
private:
|
||||
static FactoryFunc_t ms_Registry[EGpDisplayDriverType_Count];
|
||||
};
|
Reference in New Issue
Block a user