summaryrefslogtreecommitdiffhomepage
path: root/src/rcore_template.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rcore_template.c')
-rw-r--r--src/rcore_template.c48
1 files changed, 9 insertions, 39 deletions
diff --git a/src/rcore_template.c b/src/rcore_template.c
index ea5af40d..88b3c4a7 100644
--- a/src/rcore_template.c
+++ b/src/rcore_template.c
@@ -128,8 +128,11 @@ void InitWindow(int width, int height, const char *title)
CORE.Input.Mouse.scale = (Vector2){ 1.0f, 1.0f };
CORE.Input.Mouse.cursor = MOUSE_CURSOR_ARROW;
CORE.Input.Gamepad.lastButtonPressed = 0; // GAMEPAD_BUTTON_UNKNOWN
-
CORE.Window.eventWaiting = false;
+
+
+ // TODO: Platform specific init window
+ //--------------------------------------------------------------
CORE.Window.screen.width = width;
CORE.Window.screen.height = height;
CORE.Window.currentFbo.width = width;
@@ -144,13 +147,15 @@ void InitWindow(int width, int height, const char *title)
// Initialize hi-res timer
InitTimer();
+
+ // Initialize base path for storage
+ CORE.Storage.basePath = GetWorkingDirectory();
+ //--------------------------------------------------------------
+
// Initialize random seed
SetRandomSeed((unsigned int)time(NULL));
- // Initialize base path for storage
- CORE.Storage.basePath = GetWorkingDirectory();
-
#if defined(SUPPORT_MODULE_RTEXT) && defined(SUPPORT_DEFAULT_FONT)
// Load default font
// WARNING: External function: Module required: rtext
@@ -193,11 +198,6 @@ void InitWindow(int width, int height, const char *title)
CORE.Time.frameCounter = 0;
#endif
- // TODO: Platform specific init window
- //--------------------------------------------------------------
- // ...
- //--------------------------------------------------------------
-
TRACELOG(LOG_INFO, "PLATFORM: CUSTOM: Application initialized successfully");
}
@@ -239,36 +239,6 @@ bool WindowShouldClose(void)
else return true;
}
-// Check if window is currently hidden
-bool IsWindowHidden(void)
-{
- return false;
-}
-
-// Check if window has been minimized
-bool IsWindowMinimized(void)
-{
- return false;
-}
-
-// Check if window has been maximized
-bool IsWindowMaximized(void)
-{
- return false;
-}
-
-// Check if window has the focus
-bool IsWindowFocused(void)
-{
- return platform.appEnabled;
-}
-
-// Check if window has been resizedLastFrame
-bool IsWindowResized(void)
-{
- return false;
-}
-
// Toggle fullscreen mode
void ToggleFullscreen(void)
{