summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
AgeCommit message (Collapse)Author
2018-07-21Support examples with Emterpreterraysan5
Examples can be compiled for web with no code change at all! Usually examples need to be refactored for web... using emscripten code interpreter (emterpreter), it can manage synchronous while() loops internally... as a downside, execution is very slow...
2018-07-16Converted rlgl module in header-onlyRay
This change allows rlgl.h usage as independent single-file header-only module... still some tweaks required, like removing GLAD dependency... required extensions could be manually loaded! Also removed shader_distortion.h, embedded in rlgl.h
2018-07-07Reviewed latest commit for Android gamepad supportraysan5
2018-07-06Added SNES-style GAMEPAD SUPPORTSeth Archambault
2018-07-05Checking Android input functionalityraysan5
Joystick support is not implemented just yet, not difficult but it requires some work...
2018-06-23Added support OpenBSD, NetBSD, DragonFly[email protected]
2018-06-12Corrected issue, flag not supported...Ray San
...by emscripten glfw javascript implementation
2018-06-02Review window creation hintsRay
2018-05-17Some warnings reviewRay
2018-05-17Corrected issue on file extension checkRay
2018-05-04Avoid exposing native GLFW3 functionalityRay
Try to avoid types conflict with Font
2018-05-04Renamed some functionsRay San
- Renamed Begin3dMode() --> BeginMode3D() - Renamed Begin2dMode() --> BeginMode2D() - Renamed End3dMode() --> EndMode3D() - Renamed End2dMode() --> EndMode2D()
2018-04-29Replaced ColorToFloat() by ColorNormalize()raysan5
2018-04-29Expose file-dropping functions symbolsraysan5
2018-04-29Added compile flag: SUPPORT_SCREEN_CAPTUREraysan5
Allow compiling the library with support for automatic screen capture (KEY_F12)
2018-04-19Review spacing for cosistencyRay
2018-04-09Reviewed config.h formattingRay
Added raylib version to config
2018-04-09Init frame timming measure variablesRay
2018-04-07Refactor all #define SUPPORT_* into a config.hAhmad Fatoum
That way, a user needs only to touch a single file to configure what features raylib is built with. Include guards are left out intentionally, because config.h should only be included in source files, not headers. Later on, config.h can also define the raylib version (#461).
2018-04-03Removed old codeRay San
2018-04-02Review math usage to reduce temp variablesraysan5
2018-04-02Review InitWindow() to avoid void pointerraysan5
Reviewed for PLATFORM_ANDROID and PLATFORM_UWP
2018-04-02Merge pull request #508 from a3f/masterRay
Allow use of main instead of android_main
2018-04-01Merge pull request #513 from autious/masterRay
Add orthographic 3d rendering mode
2018-03-31Initialize the timer after the graphics device on desktop and web platforms. ↵Jacques Heunis
(#516) This is already the order that is used for Android. It doesn't appear to make a difference on desktop but on web using the timer before it's been initialized (by glfwInit, inside InitGraphicsDevice) causes the a long (and variable but often several seconds) sleep between the first and second frame. Fixes: 468309d ("Early-exit InitWindow if InitGraphicsDevice fails")
2018-03-27Move deduplicate aspect variable in begin render.Max Danielsson
Changes motivated by commentary in pull request 513
2018-03-25Add 3d orthographic projection modeMax Danielsson
2018-03-16Allow use of main instead of android_mainAhmad Fatoum
Inspired by #504. Instead of requiring the user to do PLATFORM_ANDROID #ifdefery, have the android_main entry point exported by raylib and call the user-defined main. This way many games could (in theory) run unmodified on Android and elsewhere. This is untested!
2018-03-16Complete review of raymath for API consistencyRay
2018-03-16Support case-insensitive extension checkRay San
2018-03-15Updated raylib dev versionRay
2018-03-15Merge pull request #482 from a3f/masterRay
raymath.h: Use C99 inline semantics
2018-03-09Added new functionsRay San
- SetWindowSize() to scale Windows in runtime - SetMouseScale() to scale mouse input, useful when rendering game to a RenderTexture2D that will be scaled to Window size (used on rFXGen tool)
2018-03-03Removed additional coderaysan5
GLFW has been updated to latest version, probably this code is not required any more due to already been integrated into library... but it needs to be tested...
2018-02-24raymath.h: Use C99 inline semanticsAhmad Fatoum
RAYMATH_EXTERN_INLINE was renamed to RAYMATH_HEADER_ONLY, which user code may define if they want to use it as header-only library. If multiple files in the same project define RAYMATH_HEADER_ONLY, they might each have duplicate out-of-line definitions of the same functions. By default, raymath.h exposes inline definitions, which instructs the compiler _not_ to generate out-of-line definitons, if out-of-line definitions are required, those of the file defined with RAYLIB_IMPLEMENTATION are used instead. There may be only one such file. In C++ mode, the compiler will select only one out-of-line definition automatically, so no need to define a RAYLIB_IMPLEMENTATION. Unfortunately, we have to remove raymath function declaration from raylib.h as those declarations would lead to duplicate out-of-line definitions which would yield linker errors. This problem didn't exist with GNU89 or C++, because there multiple defintions are ok, but in C99 they aren't.
2018-02-24Revert "raymath.h: Use C99 inline semantics"Ahmad Fatoum
This reverts commit 6ffc8cb7990fb4ff40f205cb53bec797b10e48a2. and commit e4d7bbec1ef08279495ac41f5f8c4be359c58cf0. which I pushed by mistake...
2018-02-24raymath.h: Use C99 inline semanticsAhmad Fatoum
RAYMATH_EXTERN_INLINE was renamed to RAYMATH_HEADER_ONLY, which user code may define if they want to use it as header-only library. If multiple files in the same project define RAYMATH_HEADER_ONLY, they might each have duplicate out-of-line definitions of the same functions. By default, raymath.h exposes inline definitions, which instructs the compiler _not_ to generate out-of-line definitons, if out-of-line definitions are required, those of the file defined with RAYLIB_IMPLEMENTATION are used instead. There may be only one such file. In C++ mode, the compiler will select only one out-of-line definition automatically, so no need to define a RAYLIB_IMPLEMENTATION. Unfortunately, we have to remove raymath function declaration from raylib.h as those declarations would lead to duplicate out-of-line definitions which would yield linker errors. This problem didn't exist with GNU89 or C++, because there multiple defintions are ok, but in C99 they aren't.
2018-02-22Corrected cursor issue for WaylandRay
2018-02-12BREAKING CHANGE: Renamed function for consistencyRay
Rename: GetHexValue() renamed to ColorToInt() Added: ColorToHSV()
2018-02-11Some reviews for Android compilationRay
2018-02-09Early-exit InitWindow if InitGraphicsDevice failsAhmad Fatoum
Otherwise we may run into LoadDefaultFont and crash in rlLoadTexture Also moves InitTimer() before InitGraphicsDevice(), to allow it to be tested even if InitWindow ultimately fails.
2018-02-08InitWindow: return false if no monitor foundAhmad Fatoum
Otherwise we run into an assertion failure inside GLFW's glfwGetVideoMode. Example: http://www.cpantesters.org/cpan/report/b4ba5894-0bdb-11e8-841e-2c60b04e1d2d This is related to #456.
2018-02-04Incremeted version to align with CMakeraysan5
2018-02-04Updated raylib versionraysan5
Note that this version is under development and could be buggy on some platforms...
2018-02-04Security check in case window initialization failsraysan5
2018-02-04Reviewed window initializationraysan5
In case graphic device could not be created it returns false instead of failing with an error tracelog (and consequently closing the program). Window initialization success could be checked with new function IsWindowReady()
2018-02-03Return false from InitWindow if glfwInit or glfwCreateWindow failsAhmad Fatoum
You can't do much with raylib if glfwInit or glfwCreateWindow fails, currently it just exits by means of TraceLog(LOG_ERROR. User code, however, might want to fall back to a text-only UI or display a warning if raylib can't be used.
2018-02-03exit(3), don't crash, when glfwCreateWindow failsAhmad Fatoum
glfwSetWindowPos was called on a NULL window, triggering an assert inside GLFW. Check for failure and exit cleanly by means of TraceLog(LOG_ERROR instead.
2018-01-26Clear fbo for drawingRay
Just in case ClearBackground() is not used after BeginTextureMode(), it clears fbo to color defined by previous ClearBackground()
2018-01-19Merge branch 'develop' into testing_uwpRay