mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-07-12 03:47:04 +00:00
Merge pull request #17 from tropicaaal/dev
refactor: reorganize d3d stubs
This commit is contained in:
commit
222745b224
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
#include <atomic>
|
||||
#include <climits>
|
||||
#include <cfloat>
|
||||
#include <cmath>
|
||||
#include <pthread.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
|
@ -28,6 +29,7 @@
|
|||
#define ZeroMemory RtlZeroMemory
|
||||
#define WINAPI
|
||||
|
||||
#define __cdecl
|
||||
#define _vsnprintf_s vsnprintf;
|
||||
|
||||
typedef unsigned int DWORD;
|
||||
|
|
@ -697,6 +699,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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue