Wise&mystical  1.0
Project about Europe
Loading...
Searching...
No Matches
rcore.c File Reference
#include "raylib.h"
#include "config.h"
#include "utils.h"
#include "rlgl.h"
#include "raymath.h"
#include "rgestures.h"
#include "rcamera.h"
#include "external/msf_gif.h"
#include "external/sinfl.h"
#include "external/sdefl.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <math.h>
#include <sys/stat.h>
#include <dirent.h>
#include <unistd.h>
+ Include dependency graph for rcore.c:

Go to the source code of this file.

Classes

struct  Point
 
struct  Size
 
struct  CoreData
 

Macros

#define RLGL_IMPLEMENTATION
 rcore - Basic functions to manage windows, OpenGL context and input on multiple platforms More...
 
#define RAYMATH_IMPLEMENTATION
 
#define GESTURES_IMPLEMENTATION
 
#define CAMERA_IMPLEMENTATION
 
#define MSF_GIF_MALLOC(contextPointer, newSize)   RL_MALLOC(newSize)
 
#define MSF_GIF_REALLOC(contextPointer, oldMemory, oldSize, newSize)   RL_REALLOC(oldMemory, newSize)
 
#define MSF_GIF_FREE(contextPointer, oldMemory, oldSize)   RL_FREE(oldMemory)
 
#define MSF_GIF_IMPL
 
#define SINFL_IMPLEMENTATION
 
#define SINFL_NO_SIMD
 
#define SDEFL_IMPLEMENTATION
 
#define GETCWD   getcwd
 
#define CHDIR   chdir
 
#define FLAG_SET(n, f)   ((n) |= (f))
 
#define FLAG_CLEAR(n, f)   ((n) &= ~(f))
 
#define FLAG_TOGGLE(n, f)   ((n) ^= (f))
 
#define FLAG_CHECK(n, f)   ((n) & (f))
 
#define GIF_RECORD_FRAMERATE   10
 
#define FPS_CAPTURE_FRAMES_COUNT   30
 
#define FPS_AVERAGE_TIME_SECONDS   0.5f
 
#define FPS_STEP   (FPS_AVERAGE_TIME_SECONDS/FPS_CAPTURE_FRAMES_COUNT)
 
#define MAX_FILENAMEWITHOUTEXT_LENGTH   128
 
#define COMPRESSION_QUALITY_DEFLATE   8
 

Typedefs

typedef struct CoreData CoreData
 

Functions

void LoadFontDefault (void)
 
void UnloadFontDefault (void)
 
void InitWindow (int width, int height, const char *title)
 
void CloseWindow (void)
 
bool WindowShouldClose (void)
 
bool IsWindowReady (void)
 
bool IsWindowFullscreen (void)
 
bool IsWindowHidden (void)
 
bool IsWindowMinimized (void)
 
bool IsWindowMaximized (void)
 
bool IsWindowFocused (void)
 
bool IsWindowResized (void)
 
bool IsWindowState (unsigned int flag)
 
void ToggleFullscreen (void)
 
void MaximizeWindow (void)
 
void MinimizeWindow (void)
 
void RestoreWindow (void)
 
void SetWindowState (unsigned int flags)
 
void ClearWindowState (unsigned int flags)
 
void SetWindowIcon (Image image)
 
void SetWindowTitle (const char *title)
 
void SetWindowPosition (int x, int y)
 
void SetWindowMonitor (int monitor)
 
void SetWindowMinSize (int width, int height)
 
void SetWindowSize (int width, int height)
 
void SetWindowOpacity (float opacity)
 
int GetScreenWidth (void)
 
int GetScreenHeight (void)
 
int GetRenderWidth (void)
 
int GetRenderHeight (void)
 
void * GetWindowHandle (void)
 
int GetMonitorCount (void)
 
int GetCurrentMonitor (void)
 
Vector2 GetMonitorPosition (int monitor)
 
int GetMonitorWidth (int monitor)
 
int GetMonitorHeight (int monitor)
 
int GetMonitorPhysicalWidth (int monitor)
 
int GetMonitorPhysicalHeight (int monitor)
 
int GetMonitorRefreshRate (int monitor)
 
Vector2 GetWindowPosition (void)
 
Vector2 GetWindowScaleDPI (void)
 
const char * GetMonitorName (int monitor)
 
const char * GetClipboardText (void)
 
void SetClipboardText (const char *text)
 
void ShowCursor (void)
 
void HideCursor (void)
 
bool IsCursorHidden (void)
 
void EnableCursor (void)
 
void DisableCursor (void)
 
bool IsCursorOnScreen (void)
 
void ClearBackground (Color color)
 
void BeginDrawing (void)
 
void EndDrawing (void)
 
void BeginMode2D (Camera2D camera)
 
void EndMode2D (void)
 
void BeginMode3D (Camera3D camera)
 
void EndMode3D (void)
 
void BeginTextureMode (RenderTexture2D target)
 
void EndTextureMode (void)
 
void BeginShaderMode (Shader shader)
 
void EndShaderMode (void)
 
void BeginBlendMode (int mode)
 
void EndBlendMode (void)
 
void BeginScissorMode (int x, int y, int width, int height)
 
void EndScissorMode (void)
 
void BeginVrStereoMode (VrStereoConfig config)
 
void EndVrStereoMode (void)
 
VrStereoConfig LoadVrStereoConfig (VrDeviceInfo device)
 
void UnloadVrStereoConfig (VrStereoConfig config)
 
Shader LoadShader (const char *vsFileName, const char *fsFileName)
 
RLAPI Shader LoadShaderFromMemory (const char *vsCode, const char *fsCode)
 
void UnloadShader (Shader shader)
 
int GetShaderLocation (Shader shader, const char *uniformName)
 
int GetShaderLocationAttrib (Shader shader, const char *attribName)
 
void SetShaderValue (Shader shader, int locIndex, const void *value, int uniformType)
 
void SetShaderValueV (Shader shader, int locIndex, const void *value, int uniformType, int count)
 
void SetShaderValueMatrix (Shader shader, int locIndex, Matrix mat)
 
void SetShaderValueTexture (Shader shader, int locIndex, Texture2D texture)
 
Ray GetMouseRay (Vector2 mouse, Camera camera)
 
Matrix GetCameraMatrix (Camera camera)
 
Matrix GetCameraMatrix2D (Camera2D camera)
 
Vector2 GetWorldToScreen (Vector3 position, Camera camera)
 
Vector2 GetWorldToScreenEx (Vector3 position, Camera camera, int width, int height)
 
Vector2 GetWorldToScreen2D (Vector2 position, Camera2D camera)
 
Vector2 GetScreenToWorld2D (Vector2 position, Camera2D camera)
 
void SetTargetFPS (int fps)
 
int GetFPS (void)
 
float GetFrameTime (void)
 
double GetTime (void)
 
void SetConfigFlags (unsigned int flags)
 
void TakeScreenshot (const char *fileName)
 
int GetRandomValue (int min, int max)
 
void SetRandomSeed (unsigned int seed)
 
bool FileExists (const char *fileName)
 
bool IsFileExtension (const char *fileName, const char *ext)
 
bool DirectoryExists (const char *dirPath)
 
int GetFileLength (const char *fileName)
 
const char * GetFileExtension (const char *fileName)
 
const char * GetFileName (const char *filePath)
 
const char * GetFileNameWithoutExt (const char *filePath)
 
const char * GetDirectoryPath (const char *filePath)
 
const char * GetPrevDirectoryPath (const char *dirPath)
 
const char * GetWorkingDirectory (void)
 
const char * GetApplicationDirectory (void)
 
char ** GetDirectoryFiles (const char *dirPath, int *fileCount)
 
void ClearDirectoryFiles (void)
 
bool ChangeDirectory (const char *dir)
 
bool IsFileDropped (void)
 
char ** GetDroppedFiles (int *count)
 
void ClearDroppedFiles (void)
 
long GetFileModTime (const char *fileName)
 
unsigned char * CompressData (const unsigned char *data, int dataSize, int *compDataSize)
 
unsigned char * DecompressData (const unsigned char *compData, int compDataSize, int *dataSize)
 
char * EncodeDataBase64 (const unsigned char *data, int dataSize, int *outputSize)
 
unsigned char * DecodeDataBase64 (const unsigned char *data, int *outputSize)
 
bool SaveStorageValue (unsigned int position, int value)
 
int LoadStorageValue (unsigned int position)
 
void OpenURL (const char *url)
 
bool IsKeyPressed (int key)
 
bool IsKeyDown (int key)
 
bool IsKeyReleased (int key)
 
bool IsKeyUp (int key)
 
int GetKeyPressed (void)
 
int GetCharPressed (void)
 
void SetExitKey (int key)
 
bool IsGamepadAvailable (int gamepad)
 
const char * GetGamepadName (int gamepad)
 
int GetGamepadAxisCount (int gamepad)
 
float GetGamepadAxisMovement (int gamepad, int axis)
 
bool IsGamepadButtonPressed (int gamepad, int button)
 
bool IsGamepadButtonDown (int gamepad, int button)
 
bool IsGamepadButtonReleased (int gamepad, int button)
 
bool IsGamepadButtonUp (int gamepad, int button)
 
int GetGamepadButtonPressed (void)
 
int SetGamepadMappings (const char *mappings)
 
bool IsMouseButtonPressed (int button)
 
bool IsMouseButtonDown (int button)
 
bool IsMouseButtonReleased (int button)
 
bool IsMouseButtonUp (int button)
 
int GetMouseX (void)
 
int GetMouseY (void)
 
Vector2 GetMousePosition (void)
 
Vector2 GetMouseDelta (void)
 
void SetMousePosition (int x, int y)
 
void SetMouseOffset (int offsetX, int offsetY)
 
void SetMouseScale (float scaleX, float scaleY)
 
float GetMouseWheelMove (void)
 
void SetMouseCursor (int cursor)
 
int GetTouchX (void)
 
int GetTouchY (void)
 
Vector2 GetTouchPosition (int index)
 
int GetTouchPointId (int index)
 
int GetTouchPointCount (void)
 
void WaitTime (float ms)
 
void SwapScreenBuffer (void)
 
void PollInputEvents (void)
 

Variables

const char * raylibVersion = RAYLIB_VERSION
 

Macro Definition Documentation

◆ CAMERA_IMPLEMENTATION

#define CAMERA_IMPLEMENTATION

Definition at line 136 of file rcore.c.

◆ CHDIR

#define CHDIR   chdir

Definition at line 205 of file rcore.c.

◆ COMPRESSION_QUALITY_DEFLATE

#define COMPRESSION_QUALITY_DEFLATE   8

◆ FLAG_CHECK

#define FLAG_CHECK (   n,
 
)    ((n) & (f))

Definition at line 343 of file rcore.c.

◆ FLAG_CLEAR

#define FLAG_CLEAR (   n,
 
)    ((n) &= ~(f))

Definition at line 341 of file rcore.c.

◆ FLAG_SET

#define FLAG_SET (   n,
 
)    ((n) |= (f))

Definition at line 340 of file rcore.c.

◆ FLAG_TOGGLE

#define FLAG_TOGGLE (   n,
 
)    ((n) ^= (f))

Definition at line 342 of file rcore.c.

◆ FPS_AVERAGE_TIME_SECONDS

#define FPS_AVERAGE_TIME_SECONDS   0.5f

◆ FPS_CAPTURE_FRAMES_COUNT

#define FPS_CAPTURE_FRAMES_COUNT   30

◆ FPS_STEP

◆ GESTURES_IMPLEMENTATION

#define GESTURES_IMPLEMENTATION

Definition at line 131 of file rcore.c.

◆ GETCWD

#define GETCWD   getcwd

Definition at line 204 of file rcore.c.

◆ GIF_RECORD_FRAMERATE

#define GIF_RECORD_FRAMERATE   10

◆ MAX_FILENAMEWITHOUTEXT_LENGTH

#define MAX_FILENAMEWITHOUTEXT_LENGTH   128

◆ MSF_GIF_FREE

#define MSF_GIF_FREE (   contextPointer,
  oldMemory,
  oldSize 
)    RL_FREE(oldMemory)

Definition at line 143 of file rcore.c.

◆ MSF_GIF_IMPL

#define MSF_GIF_IMPL

Definition at line 145 of file rcore.c.

◆ MSF_GIF_MALLOC

#define MSF_GIF_MALLOC (   contextPointer,
  newSize 
)    RL_MALLOC(newSize)

Definition at line 141 of file rcore.c.

◆ MSF_GIF_REALLOC

#define MSF_GIF_REALLOC (   contextPointer,
  oldMemory,
  oldSize,
  newSize 
)    RL_REALLOC(oldMemory, newSize)

Definition at line 142 of file rcore.c.

◆ RAYMATH_IMPLEMENTATION

#define RAYMATH_IMPLEMENTATION

Definition at line 127 of file rcore.c.

◆ RLGL_IMPLEMENTATION

#define RLGL_IMPLEMENTATION

rcore - Basic functions to manage windows, OpenGL context and input on multiple platforms

PLATFORMS SUPPORTED:

  • PLATFORM_DESKTOP: Windows (Win32, Win64)
  • PLATFORM_DESKTOP: Linux (X11 desktop mode)
  • PLATFORM_DESKTOP: FreeBSD, OpenBSD, NetBSD, DragonFly (X11 desktop)
  • PLATFORM_DESKTOP: OSX/macOS
  • PLATFORM_ANDROID: Android (ARM, ARM64)
  • PLATFORM_RPI: Raspberry Pi 0,1,2,3 (Raspbian, native mode)
  • PLATFORM_DRM: Linux native mode, including Raspberry Pi 4 with V3D fkms driver
  • PLATFORM_WEB: HTML5 with WebAssembly

CONFIGURATION:

#define PLATFORM_DESKTOP Windowing and input system configured for desktop platforms: Windows, Linux, OSX, FreeBSD, OpenBSD, NetBSD, DragonFly NOTE: Oculus Rift CV1 requires PLATFORM_DESKTOP for mirror rendering - View [rlgl] module to enable it

#define PLATFORM_ANDROID Windowing and input system configured for Android device, app activity managed internally in this module. NOTE: OpenGL ES 2.0 is required and graphic device is managed by EGL

#define PLATFORM_RPI Windowing and input system configured for Raspberry Pi in native mode (no XWindow required), graphic device is managed by EGL and inputs are processed is raw mode, reading from /dev/input/

#define PLATFORM_DRM Windowing and input system configured for DRM native mode (RPI4 and other devices) graphic device is managed by EGL and inputs are processed is raw mode, reading from /dev/input/

#define PLATFORM_WEB Windowing and input system configured for HTML5 (run on browser), code converted from C to asm.js using emscripten compiler. OpenGL ES 2.0 required for direct translation to WebGL equivalent code.

#define SUPPORT_DEFAULT_FONT (default) Default font is loaded on window initialization to be available for the user to render simple text. NOTE: If enabled, uses external module functions to load default raylib font (module: text)

#define SUPPORT_CAMERA_SYSTEM Camera module is included (rcamera.h) and multiple predefined cameras are available: free, 1st/3rd person, orbital

#define SUPPORT_GESTURES_SYSTEM Gestures module is included (rgestures.h) to support gestures detection: tap, hold, swipe, drag

#define SUPPORT_MOUSE_GESTURES Mouse gestures are directly mapped like touches and processed by gestures system.

#define SUPPORT_TOUCH_AS_MOUSE Touch input and mouse input are shared. Mouse functions also return touch information.

#define SUPPORT_SSH_KEYBOARD_RPI (Raspberry Pi only) Reconfigure standard input to receive key inputs, works with SSH connection. WARNING: Reconfiguring standard input could lead to undesired effects, like breaking other running processes or blocking the device if not restored properly. Use with care.

#define SUPPORT_MOUSE_CURSOR_POINT Draw a mouse pointer on screen

#define SUPPORT_BUSY_WAIT_LOOP Use busy wait loop for timing sync, if not defined, a high-resolution timer is setup and used

#define SUPPORT_PARTIALBUSY_WAIT_LOOP Use a partial-busy wait loop, in this case frame sleeps for most of the time and runs a busy-wait-loop at the end

#define SUPPORT_EVENTS_WAITING Wait for events passively (sleeping while no events) instead of polling them actively every frame

#define SUPPORT_SCREEN_CAPTURE Allow automatic screen capture of current screen pressing F12, defined in KeyCallback()

#define SUPPORT_GIF_RECORDING Allow automatic gif recording of current screen pressing CTRL+F12, defined in KeyCallback()

#define SUPPORT_COMPRESSION_API Support CompressData() and DecompressData() functions, those functions use zlib implementation provided by stb_image and stb_image_write libraries, so, those libraries must be enabled on textures module for linkage

#define SUPPORT_DATA_STORAGE Support saving binary data automatically to a generated storage.data file. This file is managed internally

#define SUPPORT_EVENTS_AUTOMATION Support automatic generated events, loading and recording of those events when required

DEPENDENCIES: rglfw - Manage graphic device, OpenGL context and inputs on PLATFORM_DESKTOP (Windows, Linux, OSX. FreeBSD, OpenBSD, NetBSD, DragonFly) raymath - 3D math functionality (Vector2, Vector3, Matrix, Quaternion) camera - Multiple 3D camera modes (free, orbital, 1st person, 3rd person) gestures - Gestures system for touch-ready devices (or simulated from mouse inputs)

LICENSE: zlib/libpng

Copyright (c) 2013-2022 Ramon Santamaria (@raysan5)

This software is provided "as-is", without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

  1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
  2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
  3. This notice may not be removed or altered from any source distribution.

Definition at line 124 of file rcore.c.

◆ SDEFL_IMPLEMENTATION

#define SDEFL_IMPLEMENTATION

Definition at line 154 of file rcore.c.

◆ SINFL_IMPLEMENTATION

#define SINFL_IMPLEMENTATION

Definition at line 150 of file rcore.c.

◆ SINFL_NO_SIMD

#define SINFL_NO_SIMD

Definition at line 151 of file rcore.c.

Typedef Documentation

◆ CoreData

typedef struct CoreData CoreData

Function Documentation

◆ BeginBlendMode()

void BeginBlendMode ( int  mode)

Definition at line 2256 of file rcore.c.

+ Here is the call graph for this function:

◆ BeginDrawing()

void BeginDrawing ( void  )

Definition at line 1992 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ BeginMode2D()

void BeginMode2D ( Camera2D  camera)

Definition at line 2120 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ BeginMode3D()

void BeginMode3D ( Camera3D  camera)

Definition at line 2143 of file rcore.c.

+ Here is the call graph for this function:

◆ BeginScissorMode()

void BeginScissorMode ( int  x,
int  y,
int  width,
int  height 
)

Definition at line 2269 of file rcore.c.

+ Here is the call graph for this function:

◆ BeginShaderMode()

void BeginShaderMode ( Shader  shader)

Definition at line 2243 of file rcore.c.

+ Here is the call graph for this function:

◆ BeginTextureMode()

void BeginTextureMode ( RenderTexture2D  target)

Definition at line 2198 of file rcore.c.

+ Here is the call graph for this function:

◆ BeginVrStereoMode()

void BeginVrStereoMode ( VrStereoConfig  config)

Definition at line 2299 of file rcore.c.

+ Here is the call graph for this function:

◆ ChangeDirectory()

bool ChangeDirectory ( const char *  dir)

Definition at line 3141 of file rcore.c.

◆ ClearBackground()

void ClearBackground ( Color  color)

Definition at line 1985 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ClearDirectoryFiles()

void ClearDirectoryFiles ( void  )

Definition at line 3128 of file rcore.c.

+ Here is the caller graph for this function:

◆ ClearDroppedFiles()

void ClearDroppedFiles ( void  )

Definition at line 3165 of file rcore.c.

◆ ClearWindowState()

void ClearWindowState ( unsigned int  flags)

Definition at line 1433 of file rcore.c.

+ Here is the call graph for this function:

◆ CloseWindow()

void CloseWindow ( void  )

Definition at line 926 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CompressData()

unsigned char * CompressData ( const unsigned char *  data,
int  dataSize,
int *  compDataSize 
)

Definition at line 3193 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DecodeDataBase64()

unsigned char * DecodeDataBase64 ( const unsigned char *  data,
int *  outputSize 
)

Definition at line 3271 of file rcore.c.

◆ DecompressData()

unsigned char * DecompressData ( const unsigned char *  compData,
int  compDataSize,
int *  dataSize 
)

Definition at line 3213 of file rcore.c.

+ Here is the call graph for this function:

◆ DirectoryExists()

bool DirectoryExists ( const char *  dirPath)

Definition at line 2849 of file rcore.c.

+ Here is the call graph for this function:

◆ DisableCursor()

void DisableCursor ( void  )

Definition at line 1966 of file rcore.c.

+ Here is the call graph for this function:

◆ EnableCursor()

void EnableCursor ( void  )

Definition at line 1953 of file rcore.c.

+ Here is the call graph for this function:

◆ EncodeDataBase64()

char * EncodeDataBase64 ( const unsigned char *  data,
int  dataSize,
int *  outputSize 
)

Definition at line 3235 of file rcore.c.

◆ EndBlendMode()

void EndBlendMode ( void  )

Definition at line 2262 of file rcore.c.

+ Here is the call graph for this function:

◆ EndDrawing()

void EndDrawing ( void  )

Definition at line 2009 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EndMode2D()

void EndMode2D ( void  )

Definition at line 2134 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EndMode3D()

void EndMode3D ( void  )

Definition at line 2182 of file rcore.c.

+ Here is the call graph for this function:

◆ EndScissorMode()

void EndScissorMode ( void  )

Definition at line 2292 of file rcore.c.

+ Here is the call graph for this function:

◆ EndShaderMode()

void EndShaderMode ( void  )

Definition at line 2249 of file rcore.c.

+ Here is the call graph for this function:

◆ EndTextureMode()

void EndTextureMode ( void  )

Definition at line 2228 of file rcore.c.

+ Here is the call graph for this function:

◆ EndVrStereoMode()

void EndVrStereoMode ( void  )

Definition at line 2309 of file rcore.c.

+ Here is the call graph for this function:

◆ FileExists()

bool FileExists ( const char *  fileName)

Definition at line 2798 of file rcore.c.

◆ GetApplicationDirectory()

const char * GetApplicationDirectory ( void  )

Definition at line 3016 of file rcore.c.

◆ GetCameraMatrix()

Matrix GetCameraMatrix ( Camera  camera)

Definition at line 2571 of file rcore.c.

+ Here is the call graph for this function:

◆ GetCameraMatrix2D()

Matrix GetCameraMatrix2D ( Camera2D  camera)

Definition at line 2577 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetCharPressed()

int GetCharPressed ( void  )

Definition at line 3551 of file rcore.c.

◆ GetClipboardText()

const char * GetClipboardText ( void  )

Definition at line 1904 of file rcore.c.

+ Here is the call graph for this function:

◆ GetCurrentMonitor()

int GetCurrentMonitor ( void  )

Definition at line 1675 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetDirectoryFiles()

char ** GetDirectoryFiles ( const char *  dirPath,
int *  fileCount 
)

Definition at line 3094 of file rcore.c.

+ Here is the call graph for this function:

◆ GetDirectoryPath()

const char * GetDirectoryPath ( const char *  filePath)

Definition at line 2936 of file rcore.c.

◆ GetDroppedFiles()

char ** GetDroppedFiles ( int *  count)

Definition at line 3158 of file rcore.c.

◆ GetFileExtension()

const char * GetFileExtension ( const char *  fileName)

Definition at line 2882 of file rcore.c.

+ Here is the caller graph for this function:

◆ GetFileLength()

int GetFileLength ( const char *  fileName)

Definition at line 2865 of file rcore.c.

◆ GetFileModTime()

long GetFileModTime ( const char *  fileName)

Definition at line 3178 of file rcore.c.

◆ GetFileName()

const char * GetFileName ( const char *  filePath)

Definition at line 2900 of file rcore.c.

+ Here is the caller graph for this function:

◆ GetFileNameWithoutExt()

const char * GetFileNameWithoutExt ( const char *  filePath)

Definition at line 2911 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetFPS()

int GetFPS ( void  )

Definition at line 2685 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetFrameTime()

float GetFrameTime ( void  )

Definition at line 2717 of file rcore.c.

+ Here is the caller graph for this function:

◆ GetGamepadAxisCount()

int GetGamepadAxisCount ( int  gamepad)

Definition at line 3611 of file rcore.c.

◆ GetGamepadAxisMovement()

float GetGamepadAxisMovement ( int  gamepad,
int  axis 
)

Definition at line 3623 of file rcore.c.

◆ GetGamepadButtonPressed()

int GetGamepadButtonPressed ( void  )

Definition at line 3678 of file rcore.c.

◆ GetGamepadName()

const char * GetGamepadName ( int  gamepad)

Definition at line 3594 of file rcore.c.

+ Here is the call graph for this function:

◆ GetKeyPressed()

int GetKeyPressed ( void  )

Definition at line 3529 of file rcore.c.

◆ GetMonitorCount()

int GetMonitorCount ( void  )

Definition at line 1663 of file rcore.c.

+ Here is the call graph for this function:

◆ GetMonitorHeight()

int GetMonitorHeight ( int  monitor)

Definition at line 1763 of file rcore.c.

+ Here is the call graph for this function:

◆ GetMonitorName()

const char * GetMonitorName ( int  monitor)

Definition at line 1887 of file rcore.c.

+ Here is the call graph for this function:

◆ GetMonitorPhysicalHeight()

int GetMonitorPhysicalHeight ( int  monitor)

Definition at line 1802 of file rcore.c.

+ Here is the call graph for this function:

◆ GetMonitorPhysicalWidth()

int GetMonitorPhysicalWidth ( int  monitor)

Definition at line 1784 of file rcore.c.

+ Here is the call graph for this function:

◆ GetMonitorPosition()

Vector2 GetMonitorPosition ( int  monitor)

Definition at line 1723 of file rcore.c.

+ Here is the call graph for this function:

◆ GetMonitorRefreshRate()

int GetMonitorRefreshRate ( int  monitor)

Definition at line 1819 of file rcore.c.

+ Here is the call graph for this function:

◆ GetMonitorWidth()

int GetMonitorWidth ( int  monitor)

Definition at line 1742 of file rcore.c.

+ Here is the call graph for this function:

◆ GetMouseDelta()

Vector2 GetMouseDelta ( void  )

Definition at line 3776 of file rcore.c.

◆ GetMousePosition()

Vector2 GetMousePosition ( void  )

Definition at line 3761 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetMouseRay()

Ray GetMouseRay ( Vector2  mouse,
Camera  camera 
)

Definition at line 2516 of file rcore.c.

+ Here is the call graph for this function:

◆ GetMouseWheelMove()

float GetMouseWheelMove ( void  )

Definition at line 3811 of file rcore.c.

◆ GetMouseX()

int GetMouseX ( void  )

Definition at line 3741 of file rcore.c.

+ Here is the caller graph for this function:

◆ GetMouseY()

int GetMouseY ( void  )

Definition at line 3751 of file rcore.c.

+ Here is the caller graph for this function:

◆ GetPrevDirectoryPath()

const char * GetPrevDirectoryPath ( const char *  dirPath)

Definition at line 2982 of file rcore.c.

◆ GetRandomValue()

int GetRandomValue ( int  min,
int  max 
)

Definition at line 2779 of file rcore.c.

+ Here is the caller graph for this function:

◆ GetRenderHeight()

int GetRenderHeight ( void  )

Definition at line 1635 of file rcore.c.

◆ GetRenderWidth()

int GetRenderWidth ( void  )

Definition at line 1629 of file rcore.c.

◆ GetScreenHeight()

int GetScreenHeight ( void  )

Definition at line 1623 of file rcore.c.

+ Here is the caller graph for this function:

◆ GetScreenToWorld2D()

Vector2 GetScreenToWorld2D ( Vector2  position,
Camera2D  camera 
)

Definition at line 2666 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetScreenWidth()

int GetScreenWidth ( void  )

Definition at line 1617 of file rcore.c.

+ Here is the caller graph for this function:

◆ GetShaderLocation()

int GetShaderLocation ( Shader  shader,
const char *  uniformName 
)

Definition at line 2474 of file rcore.c.

+ Here is the call graph for this function:

◆ GetShaderLocationAttrib()

int GetShaderLocationAttrib ( Shader  shader,
const char *  attribName 
)

Definition at line 2480 of file rcore.c.

+ Here is the call graph for this function:

◆ GetTime()

double GetTime ( void  )

Definition at line 2725 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetTouchPointCount()

int GetTouchPointCount ( void  )

Definition at line 3904 of file rcore.c.

◆ GetTouchPointId()

int GetTouchPointId ( int  index)

Definition at line 3894 of file rcore.c.

◆ GetTouchPosition()

Vector2 GetTouchPosition ( int  index)

Definition at line 3860 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetTouchX()

int GetTouchX ( void  )

Definition at line 3839 of file rcore.c.

+ Here is the call graph for this function:

◆ GetTouchY()

int GetTouchY ( void  )

Definition at line 3849 of file rcore.c.

+ Here is the call graph for this function:

◆ GetWindowHandle()

void * GetWindowHandle ( void  )

Definition at line 1641 of file rcore.c.

+ Here is the call graph for this function:

◆ GetWindowPosition()

Vector2 GetWindowPosition ( void  )

Definition at line 1842 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetWindowScaleDPI()

Vector2 GetWindowScaleDPI ( void  )

Definition at line 1853 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetWorkingDirectory()

const char * GetWorkingDirectory ( void  )

Definition at line 3006 of file rcore.c.

+ Here is the caller graph for this function:

◆ GetWorldToScreen()

Vector2 GetWorldToScreen ( Vector3  position,
Camera  camera 
)

Definition at line 2605 of file rcore.c.

+ Here is the call graph for this function:

◆ GetWorldToScreen2D()

Vector2 GetWorldToScreen2D ( Vector2  position,
Camera2D  camera 
)

Definition at line 2657 of file rcore.c.

+ Here is the call graph for this function:

◆ GetWorldToScreenEx()

Vector2 GetWorldToScreenEx ( Vector3  position,
Camera  camera,
int  width,
int  height 
)

Definition at line 2613 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HideCursor()

void HideCursor ( void  )

Definition at line 1937 of file rcore.c.

+ Here is the call graph for this function:

◆ InitWindow()

void InitWindow ( int  width,
int  height,
const char *  title 
)

Definition at line 723 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsCursorHidden()

bool IsCursorHidden ( void  )

Definition at line 1947 of file rcore.c.

◆ IsCursorOnScreen()

bool IsCursorOnScreen ( void  )

Definition at line 1979 of file rcore.c.

◆ IsFileDropped()

bool IsFileDropped ( void  )

Definition at line 3151 of file rcore.c.

◆ IsFileExtension()

bool IsFileExtension ( const char *  fileName,
const char *  ext 
)

Definition at line 2818 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsGamepadAvailable()

bool IsGamepadAvailable ( int  gamepad)

Definition at line 3584 of file rcore.c.

◆ IsGamepadButtonDown()

bool IsGamepadButtonDown ( int  gamepad,
int  button 
)

Definition at line 3645 of file rcore.c.

◆ IsGamepadButtonPressed()

bool IsGamepadButtonPressed ( int  gamepad,
int  button 
)

Definition at line 3634 of file rcore.c.

◆ IsGamepadButtonReleased()

bool IsGamepadButtonReleased ( int  gamepad,
int  button 
)

Definition at line 3656 of file rcore.c.

◆ IsGamepadButtonUp()

bool IsGamepadButtonUp ( int  gamepad,
int  button 
)

Definition at line 3667 of file rcore.c.

◆ IsKeyDown()

bool IsKeyDown ( int  key)

Definition at line 3505 of file rcore.c.

+ Here is the caller graph for this function:

◆ IsKeyPressed()

bool IsKeyPressed ( int  key)

Definition at line 3495 of file rcore.c.

◆ IsKeyReleased()

bool IsKeyReleased ( int  key)

Definition at line 3512 of file rcore.c.

◆ IsKeyUp()

bool IsKeyUp ( int  key)

Definition at line 3522 of file rcore.c.

◆ IsMouseButtonDown()

bool IsMouseButtonDown ( int  button)

Definition at line 3709 of file rcore.c.

+ Here is the caller graph for this function:

◆ IsMouseButtonPressed()

bool IsMouseButtonPressed ( int  button)

Definition at line 3696 of file rcore.c.

+ Here is the caller graph for this function:

◆ IsMouseButtonReleased()

bool IsMouseButtonReleased ( int  button)

Definition at line 3722 of file rcore.c.

◆ IsMouseButtonUp()

bool IsMouseButtonUp ( int  button)

Definition at line 3735 of file rcore.c.

+ Here is the call graph for this function:

◆ IsWindowFocused()

bool IsWindowFocused ( void  )

Definition at line 1150 of file rcore.c.

◆ IsWindowFullscreen()

bool IsWindowFullscreen ( void  )

Definition at line 1115 of file rcore.c.

+ Here is the caller graph for this function:

◆ IsWindowHidden()

bool IsWindowHidden ( void  )

Definition at line 1121 of file rcore.c.

◆ IsWindowMaximized()

bool IsWindowMaximized ( void  )

Definition at line 1140 of file rcore.c.

◆ IsWindowMinimized()

bool IsWindowMinimized ( void  )

Definition at line 1130 of file rcore.c.

◆ IsWindowReady()

bool IsWindowReady ( void  )

Definition at line 1109 of file rcore.c.

◆ IsWindowResized()

bool IsWindowResized ( void  )

Definition at line 1160 of file rcore.c.

◆ IsWindowState()

bool IsWindowState ( unsigned int  flag)

Definition at line 1170 of file rcore.c.

+ Here is the caller graph for this function:

◆ LoadFontDefault()

void LoadFontDefault ( void  )

Definition at line 130 of file rtext.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadShader()

Shader LoadShader ( const char *  vsFileName,
const char *  fsFileName 
)

Definition at line 2396 of file rcore.c.

+ Here is the call graph for this function:

◆ LoadShaderFromMemory()

RLAPI Shader LoadShaderFromMemory ( const char *  vsCode,
const char *  fsCode 
)

Definition at line 2415 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadStorageValue()

int LoadStorageValue ( unsigned int  position)

Definition at line 3404 of file rcore.c.

+ Here is the call graph for this function:

◆ LoadVrStereoConfig()

VrStereoConfig LoadVrStereoConfig ( VrDeviceInfo  device)

Definition at line 2315 of file rcore.c.

+ Here is the call graph for this function:

◆ MaximizeWindow()

void MaximizeWindow ( void  )

Definition at line 1295 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ MinimizeWindow()

void MinimizeWindow ( void  )

Definition at line 1307 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ OpenURL()

void OpenURL ( const char *  url)

Definition at line 3437 of file rcore.c.

+ Here is the call graph for this function:

◆ PollInputEvents()

void PollInputEvents ( void  )

Definition at line 4890 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RestoreWindow()

void RestoreWindow ( void  )

Definition at line 1316 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SaveStorageValue()

bool SaveStorageValue ( unsigned int  position,
int  value 
)

Definition at line 3330 of file rcore.c.

+ Here is the call graph for this function:

◆ SetClipboardText()

void SetClipboardText ( const char *  text)

Definition at line 1916 of file rcore.c.

+ Here is the call graph for this function:

◆ SetConfigFlags()

void SetConfigFlags ( unsigned int  flags)

Definition at line 2744 of file rcore.c.

◆ SetExitKey()

void SetExitKey ( int  key)

Definition at line 3574 of file rcore.c.

◆ SetGamepadMappings()

int SetGamepadMappings ( const char *  mappings)

Definition at line 3684 of file rcore.c.

+ Here is the call graph for this function:

◆ SetMouseCursor()

void SetMouseCursor ( int  cursor)

Definition at line 3825 of file rcore.c.

+ Here is the call graph for this function:

◆ SetMouseOffset()

void SetMouseOffset ( int  offsetX,
int  offsetY 
)

Definition at line 3798 of file rcore.c.

◆ SetMousePosition()

void SetMousePosition ( int  x,
int  y 
)

Definition at line 3787 of file rcore.c.

+ Here is the call graph for this function:

◆ SetMouseScale()

void SetMouseScale ( float  scaleX,
float  scaleY 
)

Definition at line 3805 of file rcore.c.

◆ SetRandomSeed()

void SetRandomSeed ( unsigned int  seed)

Definition at line 2792 of file rcore.c.

◆ SetShaderValue()

void SetShaderValue ( Shader  shader,
int  locIndex,
const void *  value,
int  uniformType 
)

Definition at line 2486 of file rcore.c.

+ Here is the call graph for this function:

◆ SetShaderValueMatrix()

void SetShaderValueMatrix ( Shader  shader,
int  locIndex,
Matrix  mat 
)

Definition at line 2500 of file rcore.c.

+ Here is the call graph for this function:

◆ SetShaderValueTexture()

void SetShaderValueTexture ( Shader  shader,
int  locIndex,
Texture2D  texture 
)

Definition at line 2508 of file rcore.c.

+ Here is the call graph for this function:

◆ SetShaderValueV()

void SetShaderValueV ( Shader  shader,
int  locIndex,
const void *  value,
int  uniformType,
int  count 
)

Definition at line 2492 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetTargetFPS()

void SetTargetFPS ( int  fps)

Definition at line 2675 of file rcore.c.

+ Here is the caller graph for this function:

◆ SetWindowIcon()

void SetWindowIcon ( Image  image)

Definition at line 1535 of file rcore.c.

+ Here is the call graph for this function:

◆ SetWindowMinSize()

void SetWindowMinSize ( int  width,
int  height 
)

Definition at line 1590 of file rcore.c.

+ Here is the call graph for this function:

◆ SetWindowMonitor()

void SetWindowMonitor ( int  monitor)

Definition at line 1572 of file rcore.c.

+ Here is the call graph for this function:

◆ SetWindowOpacity()

void SetWindowOpacity ( float  opacity)

Definition at line 1607 of file rcore.c.

+ Here is the call graph for this function:

◆ SetWindowPosition()

void SetWindowPosition ( int  x,
int  y 
)

Definition at line 1564 of file rcore.c.

+ Here is the call graph for this function:

◆ SetWindowSize()

void SetWindowSize ( int  width,
int  height 
)

Definition at line 1599 of file rcore.c.

+ Here is the call graph for this function:

◆ SetWindowState()

void SetWindowState ( unsigned int  flags)

Definition at line 1330 of file rcore.c.

+ Here is the call graph for this function:

◆ SetWindowTitle()

void SetWindowTitle ( const char *  title)

Definition at line 1555 of file rcore.c.

+ Here is the call graph for this function:

◆ ShowCursor()

void ShowCursor ( void  )

Definition at line 1927 of file rcore.c.

+ Here is the call graph for this function:

◆ SwapScreenBuffer()

void SwapScreenBuffer ( void  )

Definition at line 4850 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ TakeScreenshot()

void TakeScreenshot ( const char *  fileName)

Definition at line 2754 of file rcore.c.

+ Here is the call graph for this function:

◆ ToggleFullscreen()

void ToggleFullscreen ( void  )

Definition at line 1176 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UnloadFontDefault()

void UnloadFontDefault ( void  )

Definition at line 279 of file rtext.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UnloadShader()

void UnloadShader ( Shader  shader)

Definition at line 2464 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UnloadVrStereoConfig()

void UnloadVrStereoConfig ( VrStereoConfig  config)

Definition at line 2389 of file rcore.c.

◆ WaitTime()

void WaitTime ( float  ms)

Definition at line 4807 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ WindowShouldClose()

bool WindowShouldClose ( void  )

Definition at line 1074 of file rcore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ raylibVersion

const char* raylibVersion = RAYLIB_VERSION

Definition at line 508 of file rcore.c.