Working build
This commit is contained in:
parent
f37e55a77b
commit
e3fc8bf30a
3 changed files with 331 additions and 2 deletions
|
|
@ -134,7 +134,7 @@
|
|||
#include <ctype.h> // Required for: tolower() [Used in IsFileExtension()]
|
||||
#include <sys/stat.h> // Required for stat() [Used in GetLastWriteTime()]
|
||||
|
||||
#if defined(PLATFORM_DESKTOP) && defined(_WIN32) && (defined(_MSC_VER) || defined(__TINYC__))
|
||||
#if (defined(PLATFORM_DESKTOP) || defined(PLATFORM_UWP)) && defined(_WIN32) && (defined(_MSC_VER) || defined(__TINYC__))
|
||||
#include "external/dirent.h" // Required for: DIR, opendir(), closedir() [Used in GetDirectoryFiles()]
|
||||
#else
|
||||
#include <dirent.h> // Required for: DIR, opendir(), closedir() [Used in GetDirectoryFiles()]
|
||||
|
|
@ -887,7 +887,8 @@ int GetScreenHeight(void)
|
|||
// Get native window handle
|
||||
void *GetWindowHandle(void)
|
||||
{
|
||||
#if defined(_WIN32)
|
||||
//TODO: See if we can do UWP?
|
||||
#ifdef PLATFORM_DESKTOP
|
||||
// NOTE: Returned handle is: void *HWND (windows.h)
|
||||
return glfwGetWin32Window(window);
|
||||
#elif defined(__linux__)
|
||||
|
|
|
|||
5
src/external/ANGLE/EGL/eglplatform.h
vendored
5
src/external/ANGLE/EGL/eglplatform.h
vendored
|
|
@ -74,11 +74,16 @@
|
|||
//#include <windows.h>
|
||||
|
||||
// raylib edit!!!
|
||||
#ifndef PLATFORM_UWP
|
||||
typedef void *PVOID; // PVOID is a pointer to any type. This type is declared in WinNT.h
|
||||
typedef PVOID HANDLE; // HANDLE is handle to an object. This type is declared in WinNT.h
|
||||
typedef HANDLE HWND; // HWND is a handle to a window. This type is declared in WinDef.h
|
||||
typedef HANDLE HDC; // HDC is a handle to a device context (DC). This type is declared in WinDef.h
|
||||
typedef HANDLE HBITMAP; // HBITMAP is a handle to a bitmap. This type is declared in WinDef.h
|
||||
#else
|
||||
//UWP Fix
|
||||
#include "Windows.h"
|
||||
#endif
|
||||
|
||||
// HDC, HBITMAP and HWND are actually pointers to void. You can cast a long to a HWND like this: HWND h = (HWND)my_long_var;
|
||||
// but very careful of what information is stored in my_long_var. You have to make sure that you have a pointer in there.
|
||||
|
|
|
|||
|
|
@ -998,6 +998,12 @@ void rlMultMatrixf(float *matf)
|
|||
*currentMatrix = MatrixMultiply(*currentMatrix, mat);
|
||||
}
|
||||
|
||||
//Fix variable name issues
|
||||
#ifdef PLATFORM_UWP
|
||||
#undef near
|
||||
#undef far
|
||||
#endif
|
||||
|
||||
// Multiply the current matrix by a perspective matrix generated by parameters
|
||||
void rlFrustum(double left, double right, double bottom, double top, double near, double far)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue