mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 09:57:10 +00:00
refactor: reorganize d3d stubs
This commit is contained in:
parent
f9edcab64b
commit
39b9222ba1
|
|
@ -11,27 +11,6 @@ class UIComponent_DebugUIConsole;
|
||||||
class UIComponent_DebugUIMarketingGuide;
|
class UIComponent_DebugUIMarketingGuide;
|
||||||
class UIControl;
|
class UIControl;
|
||||||
|
|
||||||
#if defined(__linux__)
|
|
||||||
typedef struct _RECT
|
|
||||||
{
|
|
||||||
LONG left;
|
|
||||||
LONG top;
|
|
||||||
LONG right;
|
|
||||||
LONG bottom;
|
|
||||||
} RECT, *PRECT;
|
|
||||||
|
|
||||||
// stole- i mean borrowed from OrbisStubs.h
|
|
||||||
typedef void ID3D11Device;
|
|
||||||
typedef void ID3D11DeviceContext;
|
|
||||||
typedef void IDXGISwapChain;
|
|
||||||
typedef RECT D3D11_RECT;
|
|
||||||
typedef void ID3D11RenderTargetView;
|
|
||||||
typedef void ID3D11DepthStencilView;
|
|
||||||
typedef void ID3D11Buffer;
|
|
||||||
typedef DWORD (*PTHREAD_START_ROUTINE)( LPVOID lpThreadParameter);
|
|
||||||
typedef PTHREAD_START_ROUTINE LPTHREAD_START_ROUTINE;
|
|
||||||
#endif // __linux__
|
|
||||||
|
|
||||||
// Base class for all shared functions between UIControllers
|
// Base class for all shared functions between UIControllers
|
||||||
class UIController : public IUIController
|
class UIController : public IUIController
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@
|
||||||
#define ZeroMemory RtlZeroMemory
|
#define ZeroMemory RtlZeroMemory
|
||||||
#define WINAPI
|
#define WINAPI
|
||||||
|
|
||||||
|
#define __cdecl
|
||||||
#define _vsnprintf_s vsnprintf;
|
#define _vsnprintf_s vsnprintf;
|
||||||
|
|
||||||
typedef unsigned int DWORD;
|
typedef unsigned int DWORD;
|
||||||
|
|
@ -697,6 +698,28 @@ HANDLE CreateEvent(int manual_reset, int initial_state) {
|
||||||
return (HANDLE)ev;
|
return (HANDLE)ev;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// d3d11 stubs
|
||||||
|
|
||||||
|
typedef struct _RECT
|
||||||
|
{
|
||||||
|
LONG left;
|
||||||
|
LONG top;
|
||||||
|
LONG right;
|
||||||
|
LONG bottom;
|
||||||
|
} RECT, *PRECT;
|
||||||
|
|
||||||
|
// stole- i mean borrowed from OrbisStubs.h
|
||||||
|
typedef void ID3D11Device;
|
||||||
|
typedef void ID3D11DeviceContext;
|
||||||
|
typedef void ID3D11ShaderResourceView; // used only by windows/durango gdraw and uicontroller
|
||||||
|
typedef void IDXGISwapChain;
|
||||||
|
typedef RECT D3D11_RECT;
|
||||||
|
typedef void ID3D11RenderTargetView;
|
||||||
|
typedef void ID3D11DepthStencilView;
|
||||||
|
typedef void ID3D11Buffer;
|
||||||
|
typedef DWORD (*PTHREAD_START_ROUTINE)( LPVOID lpThreadParameter);
|
||||||
|
typedef PTHREAD_START_ROUTINE LPTHREAD_START_ROUTINE;
|
||||||
|
|
||||||
//typedef bool rrbool;
|
//typedef bool rrbool;
|
||||||
|
|
||||||
#define S_OK 0
|
#define S_OK 0
|
||||||
|
|
|
||||||
|
|
@ -308,7 +308,7 @@ typedef XUID GameSessionUID;
|
||||||
// DecalOverdose: DONT (according to localcc)
|
// DecalOverdose: DONT (according to localcc)
|
||||||
#include "Linux/iggy_stub.h"
|
#include "Linux/iggy_stub.h"
|
||||||
//#include "Windows64/Iggy/include/iggy.h"
|
//#include "Windows64/Iggy/include/iggy.h"
|
||||||
//#include "Windows64/Iggy/gdraw/gdraw_d3d11.h"
|
#include "Windows64/Iggy/gdraw/gdraw_d3d11.h"
|
||||||
#include "Windows64/Windows64_UIController.h"
|
#include "Windows64/Windows64_UIController.h"
|
||||||
#elif defined __PSVITA__
|
#elif defined __PSVITA__
|
||||||
#include "PSVita/PSVita_App.h"
|
#include "PSVita/PSVita_App.h"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue