mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-11 11:39:37 +00:00
refactor: reorganize d3d stubs
This commit is contained in:
@@ -11,27 +11,6 @@ class UIComponent_DebugUIConsole;
|
||||
class UIComponent_DebugUIMarketingGuide;
|
||||
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
|
||||
class UIController : public IUIController
|
||||
{
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#define ZeroMemory RtlZeroMemory
|
||||
#define WINAPI
|
||||
|
||||
#define __cdecl
|
||||
#define _vsnprintf_s vsnprintf;
|
||||
|
||||
typedef unsigned int DWORD;
|
||||
@@ -697,6 +698,28 @@ HANDLE CreateEvent(int manual_reset, int initial_state) {
|
||||
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;
|
||||
|
||||
#define S_OK 0
|
||||
|
||||
@@ -308,7 +308,7 @@ typedef XUID GameSessionUID;
|
||||
// DecalOverdose: DONT (according to localcc)
|
||||
#include "Linux/iggy_stub.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"
|
||||
#elif defined __PSVITA__
|
||||
#include "PSVita/PSVita_App.h"
|
||||
|
||||
Reference in New Issue
Block a user