mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 09:57:10 +00:00
fix(Renderer): Fix renderer compile
This commit is contained in:
parent
2aa2beb990
commit
9bc3f561d9
|
|
@ -5203,5 +5203,5 @@ elseif("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "Xbox 360")
|
||||||
"xonline"
|
"xonline"
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
add_compile_options(-fpermissive)
|
add_compile_options(-fpermissive -Wtemplate-body)
|
||||||
target_link_libraries(${PROJECT_NAME} PRIVATE "${ADDITIONAL_LIBRARY_DEPENDENCIES}")
|
target_link_libraries(${PROJECT_NAME} PRIVATE "${ADDITIONAL_LIBRARY_DEPENDENCIES}")
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ public:
|
||||||
void InitialiseContext();
|
void InitialiseContext();
|
||||||
void StartFrame();
|
void StartFrame();
|
||||||
void Present();
|
void Present();
|
||||||
void Clear(int flags, D3D11_RECT *pRect = NULL);
|
void Clear(int flags/*, D3D11_RECT *pRect = NULL*/);
|
||||||
void SetClearColour(const float colourRGBA[4]);
|
void SetClearColour(const float colourRGBA[4]);
|
||||||
bool IsWidescreen();
|
bool IsWidescreen();
|
||||||
bool IsHiDef();
|
bool IsHiDef();
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ public:
|
||||||
void Set_matrixDirty();
|
void Set_matrixDirty();
|
||||||
|
|
||||||
// Core
|
// Core
|
||||||
void Initialise(ID3D11Device *pDevice, IDXGISwapChain *pSwapChain);
|
void Initialise();
|
||||||
void InitialiseContext();
|
void InitialiseContext();
|
||||||
void StartFrame();
|
void StartFrame();
|
||||||
void DoScreenGrabOnNextPresent();
|
void DoScreenGrabOnNextPresent();
|
||||||
|
|
|
||||||
|
|
@ -1988,4 +1988,4 @@ target_compile_definitions(${PROJECT_NAME} PRIVATE
|
||||||
">"
|
">"
|
||||||
)
|
)
|
||||||
|
|
||||||
add_compile_options(-fpermissive)
|
add_compile_options(-fpermissive -Wtemplate-body)
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,37 @@ typedef void* PVOID;
|
||||||
typedef unsigned long* ULONG_PTR;
|
typedef unsigned long* ULONG_PTR;
|
||||||
typedef long LONG;
|
typedef long LONG;
|
||||||
typedef void VOID;
|
typedef void VOID;
|
||||||
|
#define RtlZeroMemory(Destination,Length) memset((Destination),0,(Length))
|
||||||
|
#define ZeroMemory RtlZeroMemory
|
||||||
|
typedef ULONGLONG PlayerUID;
|
||||||
|
typedef DWORD WORD;
|
||||||
|
#define FALSE false
|
||||||
|
typedef struct {
|
||||||
|
DWORD LowPart;
|
||||||
|
long long QuadPart;
|
||||||
|
LONG HighPart;
|
||||||
|
} LARGE_INTEGER;
|
||||||
|
|
||||||
|
#define XCONTENT_MAX_FILENAME_LENGTH 42
|
||||||
|
#define XCONTENT_MAX_DISPLAYNAME_LENGTH MAX_DISPLAYNAME_LENGTH
|
||||||
|
|
||||||
|
typedef short SHORT;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
int xuidInvitee;
|
||||||
|
int xuidInviter;
|
||||||
|
DWORD dwTitleID;
|
||||||
|
int hostInfo;
|
||||||
|
bool fFromGameInvite;
|
||||||
|
} XINVITE_INFO, * PXINVITE_INFO;
|
||||||
|
|
||||||
|
typedef XINVITE_INFO INVITE_INFO;
|
||||||
|
|
||||||
|
typedef struct HXUIOBJ {
|
||||||
|
// Stub fields representing the actual Xbox HXUIOBJ structure.
|
||||||
|
int id;
|
||||||
|
const char* name;
|
||||||
|
} HXUIOBJ;
|
||||||
|
|
||||||
typedef struct _RTL_CRITICAL_SECTION {
|
typedef struct _RTL_CRITICAL_SECTION {
|
||||||
// //
|
// //
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue