summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
diff options
context:
space:
mode:
authorRay <[email protected]>2017-12-15 13:28:33 +0100
committerGitHub <[email protected]>2017-12-15 13:28:33 +0100
commitbcdde6c65af3eee20ce3a142eec800dece759c17 (patch)
tree010601d5ad8b990acbc251dab448eabd134f3542 /src/raylib.h
parent35d54dd7e4b317cb7c7a2c89db420335d3d9870c (diff)
parent2affac820e64393ac4294c53c1a7f47742e8dec9 (diff)
downloadraylib-bcdde6c65af3eee20ce3a142eec800dece759c17.tar.gz
raylib-bcdde6c65af3eee20ce3a142eec800dece759c17.zip
Merge pull request #420 from questor/develop
Develop
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/raylib.h b/src/raylib.h
index ac739830..16595b5b 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -682,8 +682,8 @@ 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 void CloseWindow(void); // Close window and unload OpenGL context
+RLAPI void InitRLWindow(int width, int height, void *data); // Initialize window and OpenGL context
+RLAPI void CloseRLWindow(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)
RLAPI void ToggleFullscreen(void); // Toggle fullscreen mode (only PLATFORM_DESKTOP)
@@ -696,8 +696,8 @@ RLAPI int GetScreenWidth(void); // Get current
RLAPI int GetScreenHeight(void); // Get current screen height
// Cursor-related functions
-RLAPI void ShowCursor(void); // Shows cursor
-RLAPI void HideCursor(void); // Hides cursor
+RLAPI void ShowRLCursor(void); // Shows cursor
+RLAPI void HideRLCursor(void); // Hides cursor
RLAPI bool IsCursorHidden(void); // Check if cursor is not visible
RLAPI void EnableCursor(void); // Enables cursor (unlock cursor)
RLAPI void DisableCursor(void); // Disables cursor (lock cursor)
@@ -723,6 +723,9 @@ RLAPI void SetTargetFPS(int fps); // Set target
RLAPI int GetFPS(void); // Returns current FPS
RLAPI float GetFrameTime(void); // Returns time in seconds for last frame drawn
+RLAPI double GetTime(void); // Return time in seconds
+
+
// Color-related functions
RLAPI int GetHexValue(Color color); // Returns hexadecimal value for a Color
RLAPI Color GetColor(int hexValue); // Returns a Color struct from hexadecimal value
@@ -1046,6 +1049,7 @@ RLAPI void SetShaderValuei(Shader shader, int uniformLoc, const int *value, int
RLAPI void SetShaderValueMatrix(Shader shader, int uniformLoc, Matrix mat); // Set shader uniform value (matrix 4x4)
RLAPI void SetMatrixProjection(Matrix proj); // Set a custom projection matrix (replaces internal projection matrix)
RLAPI void SetMatrixModelview(Matrix view); // Set a custom modelview matrix (replaces internal modelview matrix)
+RLAPI Matrix GetMatrixModelview();
// Texture maps generation (PBR)
// NOTE: Required shaders should be provided