From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- Runtime/Interfaces/IGfxDevice.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Runtime/Interfaces/IGfxDevice.h (limited to 'Runtime/Interfaces/IGfxDevice.h') diff --git a/Runtime/Interfaces/IGfxDevice.h b/Runtime/Interfaces/IGfxDevice.h new file mode 100644 index 0000000..749c723 --- /dev/null +++ b/Runtime/Interfaces/IGfxDevice.h @@ -0,0 +1,28 @@ +#ifndef IGFXDEVICE_H +#define IGFXDEVICE_H + +class GfxDevice; +class GraphicsCaps; +class GpuProgramParameters; + +class IGfxDevice +{ +public: + virtual bool IsGfxDevice() = 0; + virtual bool InitializeGfxDevice() = 0; + virtual bool IsRealGfxDeviceThreadOwner() = 0; + virtual GfxDevice &GetGfxDevice() = 0; + virtual GfxDevice &GetUncheckedGfxDevice() = 0; + virtual GfxDevice &GetRealGfxDevice() = 0; + virtual void DestroyGfxDevice() = 0; + virtual void ParseGfxDeviceArgs() = 0; + virtual GpuProgramParameters* CreateGpuProgramParameters() = 0; + virtual void DestroyGpuProgramParameters(GpuProgramParameters*) = 0; + virtual GraphicsCaps &gGraphicsCaps = 0; + +}; + +EXPORT_COREMODULE IGfxDevice* GetIGfxDevice (); +EXPORT_COREMODULE void SetIGfxDevice (IGfxDevice* device); + +#endif \ No newline at end of file -- cgit v1.1-26-g67d0