diff options
| author | Ray <[email protected]> | 2018-02-04 11:55:18 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-02-04 11:55:18 +0100 |
| commit | e2861fa71ffb4d5145369939c03d19f4a2945d95 (patch) | |
| tree | e68dcda404d03c8ebb7e4ee3ca73a01f9aee492c /src/raylib.h | |
| parent | 44cd4faf83666d545d6a9424128c5926e5cfdcef (diff) | |
| parent | 26c9176a1422125d062185b9fe9ce3c8777d87db (diff) | |
| download | raylib-e2861fa71ffb4d5145369939c03d19f4a2945d95.tar.gz raylib-e2861fa71ffb4d5145369939c03d19f4a2945d95.zip | |
Merge pull request #456 from a3f/develop
Return false from InitWindow if glfwInit or glfwCreateWindow fails -TO REVIEW AS DISCUSSED-
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/raylib.h b/src/raylib.h index f881dc68..0aa5ccae 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -684,7 +684,7 @@ extern "C" { // Prevents name mangling of functions //------------------------------------------------------------------------------------ // Window-related functions -RLAPI void InitWindow(int width, int height, void *data); // Initialize window and OpenGL context +RLAPI bool InitWindow(int width, int height, void *data); // Initialize window and OpenGL context RLAPI void CloseWindow(void); // Close window and unload OpenGL context RLAPI bool WindowShouldClose(void); // Check if KEY_ESCAPE pressed or Close icon pressed RLAPI bool IsWindowMinimized(void); // Check if window has been minimized (or lost focus) |
