Add GetPlatformHandle

This commit is contained in:
sse2 2024-09-11 03:42:54 +03:00
parent fd961deba7
commit 921c1055d2
8 changed files with 42 additions and 0 deletions

View File

@ -424,6 +424,12 @@ void *GetWindowHandle(void)
return NULL;
}
void *GetPlatformHandle(void)
{
TRACELOG(LOG_WARNING, "GetPlatformHandle() not implemented on target platform");
return NULL;
}
// Get number of monitors
int GetMonitorCount(void)
{

View File

@ -721,6 +721,11 @@ void *GetWindowHandle(void)
return NULL;
}
void *GetPlatformHandle(void)
{
return platform.handle;
}
// Get number of monitors
int GetMonitorCount(void)
{

View File

@ -541,6 +541,12 @@ void *GetWindowHandle(void)
#endif
}
void *GetPlatformHandle(void)
{
TRACELOG(LOG_WARNING, "GetPlatformHandle() not implemented on target platform");
return NULL;
}
// Get number of monitors
int GetMonitorCount(void)
{

View File

@ -682,6 +682,12 @@ void *GetWindowHandle(void)
return (void *)platform.window;
}
void *GetPlatformHandle(void)
{
TRACELOG(LOG_WARNING, "GetPlatformHandle() not implemented on target platform");
return NULL;
}
// Get number of monitors
int GetMonitorCount(void)
{

View File

@ -364,6 +364,12 @@ void *GetWindowHandle(void)
return NULL;
}
void *GetPlatformHandle(void)
{
TRACELOG(LOG_WARNING, "GetPlatformHandle() not implemented on target platform");
return NULL;
}
// Get number of monitors
int GetMonitorCount(void)
{

View File

@ -201,6 +201,12 @@ void *GetWindowHandle(void)
return NULL;
}
void *GetPlatformHandle(void)
{
TRACELOG(LOG_WARNING, "GetPlatformHandle() not implemented on target platform");
return NULL;
}
// Get number of monitors
int GetMonitorCount(void)
{

View File

@ -655,6 +655,12 @@ void *GetWindowHandle(void)
return NULL;
}
void *GetPlatformHandle(void)
{
TRACELOG(LOG_WARNING, "GetPlatformHandle() not implemented on target platform");
return NULL;
}
// Get number of monitors
int GetMonitorCount(void)
{

View File

@ -984,6 +984,7 @@ RLAPI void SetWindowSize(int width, int height); // Set window
RLAPI void SetWindowOpacity(float opacity); // Set window opacity [0.0f..1.0f] (only PLATFORM_DESKTOP)
RLAPI void SetWindowFocused(void); // Set window focused (only PLATFORM_DESKTOP)
RLAPI void *GetWindowHandle(void); // Get native window handle
RLAPI void *GetPlatformHandle(void); // Get platform handle (GLFWwindow*, only PLATFORM_DESKTOP)
RLAPI int GetScreenWidth(void); // Get current screen width
RLAPI int GetScreenHeight(void); // Get current screen height
RLAPI int GetRenderWidth(void); // Get current render width (it considers HiDPI)