mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-30 14:25:36 +08:00
Fixing cross compiling with clang-cl
This commit is contained in:
parent
d646f61582
commit
890f19c20a
@ -8,7 +8,7 @@
|
|||||||
class DX10_Hook : public Base_Hook
|
class DX10_Hook : public Base_Hook
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static constexpr const char DLL_NAME[] = "d3d10.dll";
|
static constexpr const char *DLL_NAME = "d3d10.dll";
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Variables
|
// Variables
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
class DX11_Hook : public Base_Hook
|
class DX11_Hook : public Base_Hook
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static constexpr const char DLL_NAME[] = "d3d11.dll";
|
static constexpr const char *DLL_NAME = "d3d11.dll";
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Variables
|
// Variables
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
class DX12_Hook : public Base_Hook
|
class DX12_Hook : public Base_Hook
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static constexpr const char DLL_NAME[] = "d3d12.dll";
|
static constexpr const char *DLL_NAME = "d3d12.dll";
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Variables
|
// Variables
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
class DX9_Hook : public Base_Hook
|
class DX9_Hook : public Base_Hook
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static constexpr const char DLL_NAME[] = "d3d9.dll";
|
static constexpr const char *DLL_NAME = "d3d9.dll";
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Variables
|
// Variables
|
||||||
|
@ -7,10 +7,10 @@
|
|||||||
class OpenGL_Hook : public Base_Hook
|
class OpenGL_Hook : public Base_Hook
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static constexpr const char DLL_NAME[] = "opengl32.dll";
|
static constexpr const char *DLL_NAME = "opengl32.dll";
|
||||||
|
|
||||||
using wglSwapBuffers_t = BOOL(WINAPI)(HDC);
|
using wglSwapBuffers_t = BOOL(WINAPI*)(HDC);
|
||||||
using wglMakeCurrent_t = BOOL(WINAPI)(HDC, HGLRC);
|
using wglMakeCurrent_t = BOOL(WINAPI*)(HDC, HGLRC);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Variables
|
// Variables
|
||||||
@ -27,12 +27,12 @@ private:
|
|||||||
// Hook to render functions
|
// Hook to render functions
|
||||||
static BOOL WINAPI MywglSwapBuffers(HDC hDC);
|
static BOOL WINAPI MywglSwapBuffers(HDC hDC);
|
||||||
|
|
||||||
wglSwapBuffers_t* wglSwapBuffers;
|
wglSwapBuffers_t wglSwapBuffers;
|
||||||
|
|
||||||
// Hook functions so we know we use OGL
|
// Hook functions so we know we use OGL
|
||||||
static BOOL WINAPI MywglMakeCurrent(HDC hDC, HGLRC hGLRC);
|
static BOOL WINAPI MywglMakeCurrent(HDC hDC, HGLRC hGLRC);
|
||||||
|
|
||||||
wglMakeCurrent_t* wglMakeCurrent;
|
wglMakeCurrent_t wglMakeCurrent;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static void Create(); // Initialize OGL Hook.
|
static void Create(); // Initialize OGL Hook.
|
||||||
|
Loading…
Reference in New Issue
Block a user