summaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)Author
2020-04-01Review shared library buildingraysan5
2020-03-30Update project version for releaseRay
2020-03-30Get icons back on shell.htmlraysan5
It seems there is some related issue on emscripten side... but I'll keep the icons here despite not displayed properly for the moment.
2020-03-30Update config.h, enable some file-formats by defaultraysan5
2020-03-30Update textures.craysan5
2020-03-30Update raylib.hraysan5
2020-03-30[cppcheck] Fix minor warnings in models.c and raudio.c (#1162)Dani Martin
Errores fixes: models.c,2843 Either the condition 'fileData!=NULL' is redundant or there is possible null pointer dereference: fileData. raudio.c,805, 806, 807, 808, %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'.
2020-03-30Review formating and signegness issuesraysan5
2020-03-30[cppcheck] Improvements in SaveStorageValue() in core.c (#1160)Dani Martin
* [cppcheck] Improvements in SaveStorageValue() in core.c in file core.c cppcheck shows errors only in function SaveStorageValue(): * Common realloc mistake: 'fileData' nulled but not freed upon failure * Memory pointed to by 'fileData' is freed twice. Validation: * Tested examples/core/core_storage_values.c * Launched Unit Test for this function * Rerun CPPCHECK afer fix * [cppcheck] Change functions header to accept only positive position in files Changes: * Functions SaveStorageValue(), LoadStorageValue() (core.c) * Functions LoadFileData(), SaveFileData() (utils.c) * Headers in raylib.h Validation: * Tested examples/core/core_storage_values.c * Launched Unit Test for these functions * Rerun CPPCHECK afer fix
2020-03-29Fix "variable is reassigned before use" linter warning on raymath.h (#1158)Valentin Lemière
2020-03-29Reorganize image functionsraysan5
2020-03-29Reorganize image/texture functions for consistencyraysan5
2020-03-29Update ImageDraw*() functions to match arguments of Draw*() (#1156)Rob Loach
* Update ImageDraw*() functions to match arguments of Draw*() Updated draw functions: ImageDrawPixel() ImageDrawPixelV() ImageDrawCircle() ImageDrawCircleV() ImageDrawLine() ImageDrawLineV() ImageDrawRectangle() ImageDrawRectangleV() ImageDrawRectangleRec() * [nodepadpp] Update Notepad++ ImageDraw defintions This updates the Notepad++ definitions with the updated ImageDraw methods. * [examples] Add ImageDraw calls to textures_image_drawing * Update ImageDraw*() methods
2020-03-28Revert "Update compilation warning flags (#1151)"raysan5
This reverts commit 2528854664b78a7db24cbe97b5b4e8bd52e1f18c.
2020-03-28Update window rcraysan5
2020-03-27Review TRACELOG() messagesraysan5
2020-03-27Review TRACELOG() categoriesraysan5
2020-03-27[rlgl] Review TRACELOG() messages, categorizedraysan5
2020-03-27Corrected missing semicolonraysan5
2020-03-27[core] Review TRACELOG() messages, categorizedraysan5
2020-03-27[models] Review TRACELOG() messages, categorizedraysan5
2020-03-27[textures] Review TRACELOG() messagesraysan5
2020-03-27[raudio] Review TRACELOG() messages, categorizedraysan5
2020-03-27[raudio] Review TRACELOG() messages, categorizedraysan5
2020-03-27[text] Review TRACELOG() messages, categorizedraysan5
2020-03-27[textures] Review TRACELOG() messages, categorizedraysan5
2020-03-27[utils] Review TRACELOG() messages, categorizedraysan5
2020-03-26Update compilation warning flags (#1151)Dani Martin
* Update compilation warning flags Removed the -Wall flag that allow many warnings and added manually all the warning flags that don't generate warnings in the src/external folder. Specifically, these are some of the flags reporting errors in src/external: -Wmissing-prototypes -Wunused-variable -Wunused-value -Wunused-parameter -Wunused-function * Uptade compilation flags in examples with missing -std=c99
2020-03-25Remove trail spacesraysan5
2020-03-25Minor tweaksraysan5
2020-03-25ADDED: IsWindowFullscreen()raysan5
2020-03-25Enable IQM models support on config.hraysan5
2020-03-25Update config.hraysan5
2020-03-25Fixed DrawTextRecEx() selection when wordwrap is ON (again) (#1149)Random
2020-03-24Support mtl loading by tinyobj_parse_obj() #1134raysan5
I don't like this solution but well... let's use it for the moment...
2020-03-24GenMeshHeightmap flat shading normals (#1140)Ádám Dóda
2020-03-24Remove define not requiredraysan5
2020-03-24Android: Better track touch input returned from IsMouse*() (#1144)Doyle
* Android: Better track touch input returned from IsMouse*() Switch to actually tracking touch input to use for "mouse" input rather than the gestures system. The gesture system as an abstraction ontop of raw touch input loses some information needed to map to "mouse" input. Before, - IsMouseButtonReleased() triggers immediately after the initial touch (because GESTURE_TAP activates immediately on touch) instead of waiting for the touch to be released. - IsMouseButtonUp() returns false, when it should just be the opposite of IsMouseButtonDown(). - IsMouseButtonDown() returns true only after GESTURE_HOLD (which activates after some period of time after GESTURE_TAP), when instead it should just be true whenever there is touch input i.e. gesture != GESTURE_NONE or alternatively when any input is received on the screen. After this PR, touches map closer to mouse input. - IsMouseButtonReleased() triggers when touch is released (last frame was touched, this frame not touched). - IsMouseButtonUp() returns the opposite of IsMouseButtonDown() - IsMouseButtonDown() is true when (AMOTION_EVENT_ACTION_DOWN || AMOTION_EVENT_ACTION_MOVE) and false when (AMOTION_EVENT_ACTION_UP) * RPI: Include index check for RPI in GetTouchPosition()
2020-03-24CMakeLists.txt: report generated CMAKE_CONFIGURATION_TYPESAhmad Fatoum
We might want to customize this in feature for multi-config builds (e.g. a Visual studio build with both Debug and Release configurations). Output the variable value for user awareness.
2020-03-23Comment tweaksraysan5
2020-03-23Comment tweaksraysan5
2020-03-21Review formating from PR #1138raysan5
2020-03-21Added draw functions to ImageDraw*() (#1138)Sourav Gupta
Added draw functions: ImageClearBackground() ImageDrawPixel() ImageDrawLineEx() ImageDrawCircle()
2020-03-19Android: Track touch motion across screen (#1137)Doyle
This was working in 2.6 but no longer does in current git tree. It appears touch position is only tracked on AMOTION_EVENT_ACTION_[DOWN|UP], which only registers the initial touch on the screen. Subsequent movement is not tracked into CORE. Touch position and the Gesture System appears to be updated twice in AndroidInputCallback in what looks like perhaps a copy paste error (code is identical) with the exception of tracking AMOTION_EVENT_ACTION_UP in the 2nd copy of the code (but this is not necessary to track). If you need to track the first touch or release touch position, you can do so with checking IsMouseButton[Pressed|Released] on the same frame. This patch makes it so the touch position is always updated, and merges the duplicated code into 1 singular code path.
2020-03-17Added security check in case init fails #1135raysan5
2020-03-17Replace external libraries custom allocators by raylib ones #1074raysan5
NOTE: Two libraries still use custom allocators: glfw and stb_vorbis
2020-03-15Corrected typoraysan5
2020-03-15REVIEWED: ImageTextEx() to support line breaks #1131raysan5
NOTE: This functionality has an important issue, line space is fixed to 1.5 font.baseSize pixels, depending on the font and how it has been generated that spacing could be too wide or too narrow...
2020-03-15Android: Set display.[width, height] before screen size check (#1132)Doyle
In `InitGraphicsDevice(...)`, the Android section has a screen security check like other platforms- but CORE.display.width, CORE.display.height are not set yet, so the security check sets it to 0. So ensure we query the device's screen width and height before the screen size security check. This also gives you the ability to run a proper full-screen application on Android without any scaling and guess work on the target device by setting screen width and height to 0 in `InitWindow(...)` and using `GetScreen[Width|Height]()` to get the actual values.
2020-03-12Added note on transparent framebuffer w/o X11 on RPIRay