summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2020-12-19Update raylib.hRay
2020-12-19Avoid *Rec suffix in some variablesRay
Pefixing/Suffixing some data type identifier in the variables is not a convention used in raylib, just reviewed it for consistency... Still, I kept the *Rec suffix in some functions.
2020-12-19Corrected DrawTextRecEx() bugRay
2020-12-19Support font chars padding on drawing #1432Ray
Previous implementation did not consider any padding while drawing the characters on screen (despite being available on the font atlas), so, only minimum character area was drawn. If some text effect shader was required (shadow, glow, outline...), there was no space in the drawn quad to draw that pixels effect. This commit corrects that issue.
2020-12-19Minimal tweakRay
2020-12-19Update textures.cRay
2020-12-18WARNING: RENAMED several functions for consistency #1440Ray
This is a BREAKING CHANGE! To address the linked issue, several functions have been renamed and couterpart functions have been created to free loaded memory: - RENAMED: GetImageData() -> LoadImageColors() - RENAMED: GetImagePalette() -> LoadImagePalette() - RENAMED: GetWaveData() -> LoadWaveSamples() - ADDED: UnloadImageColors() - ADDED: UnloadImagePalette() - ADDED: UnloadWaveSamples()
2020-12-18Added some Web checks for missing GLFW functionsRay
2020-12-18WARNING: GetKeyPressed() <-> GetCharPressed() #1336Ray
Previous GetKeyPressed() method was actually returning unicode codepoints equivalent values instead of the key-code of the pressed key. So, it has been replaced by GetCharPressed(), returning unicode codepoints and GetKeyPressed() now returns key-codes.
2020-12-18Support mouse input on example #1465Ray
2020-12-16Add headers to install cmake (#1462)hristo
* Changed extension for web from .bc to .a I did this to support vcpkg expectation. When using the library from vcpkg for web you would install it using vcpkg install raylib:wasm32-emscripten but also vcpkg expects the output lib to be with .a extension instead of .bc Doesn't make a difference for standalone builds or when raylib is used as a subdirectory dependency. * Added headers to install targets to fix vcpkg usage Currently vcpkg works by installing the cmake target into its packages directory. The problem is that install only copies the public header at this point so we need to add the others to the install targets.
2020-12-16Changing JPG compression (#1463)Andrea Fontana
Since I don't think the purpose of raylib is to save space compressing image, I think it could be a good idea to keep quality from 90 to 100.
2020-12-14Added additional charsPadding initialization #1432Ray
2020-12-14REVIEWED: Font struct, added charsPadding #1432 -WIP-Ray
Not implemented usage of this variable yet but already setup for the future... some functions require review to consider it on drawing...
2020-12-14REVIEWED: DrawGrid(), issue with buffer limits check #1417Ray
2020-12-14ADDED: UnloadFileData() / UnloadFileText() #1440Ray
2020-12-14Added some security checks on GenMesh*() #1454Ray
2020-12-14Add mesh collision function so we can check meshes directly instead of ↵Jeffery Myers
having to put them in a model. (#1459) Make model collision function call the mesh function.
2020-12-14Changed extension for web from .bc to .a (#1461)hristo
I did this to support vcpkg expectation. When using the library from vcpkg for web you would install it using vcpkg install raylib:wasm32-emscripten but also vcpkg expects the output lib to be with .a extension instead of .bc Doesn't make a difference for standalone builds or when raylib is used as a subdirectory dependency.
2020-12-14Building examples by default only if raylib is standalone. (#1460)hristo
This change only modifies the default value. In cmake you can have raylib as a subdirectory (dependency) and when you have it as dependency you wouldn't probably want to use the example by default. You can still use the option to enable them though.
2020-12-13Fixed the build for web using CMake. (#1452)hristo
* Fixed the build for web using CMake. I found that the build for me was failing and I added some if defined checks in the core.c file where the glfwSetWindowAttrib was used. (error: implicit declaration of function 'glfwSetWindowAttrib' is invalid in C99 [-Werror,-Wimplicit-function-declaration]) I also changed some values in the toolchain file so that it correctly uses the .bat files when on windows. * Cleaned up the additional variables (they are not important) * Added more improvements to cmakelists Added the option to use the system provided Emscripten toolchain to be more uniform with other libraries. Fixed and issue which prevented example being built from cmake and also building with html extensions properly. * Fixed ENUM to STRING because of a missed warning
2020-12-13Don't put the obj and temp files for all the projects in the same place, it ↵Jeffery Myers
causes conflicts (#1458)
2020-12-13Fixed #1455 (#1456)Alexander Buhl
* Fixed #1455 Fixed writing out of array bounds Adjusted FPS comment to match value Deleted unused function at the end, which has never been in use in the history of this file * Fixed #1455 Readded the function
2020-12-13Add options to set line width and aliasing to rlGL layer. (#1457)Jeffery Myers
* Add options to set line width and aliasing to rlGL layer. * Don't do line smoothing in OpenGLES
2020-12-12Added security check to pitch change #1450Ray
2020-12-12Reviewed SetAudioBufferPitch() #1450Ray
2020-12-05Add functions to enable/disable depth writes to go with functions for depth ↵Jeffery Myers
tests. (#1451)
2020-12-05Add function to get the position of a monitor (and fix some comments) (#1449)Jeffery Myers
2020-12-03Corrected minor windows flags issuesRay
2020-12-03Update VS2019 projectRay
2020-12-03Add VS2019 projectRay
2020-12-03Update core_basic_window.cRay
2020-12-03Update user nameRay
2020-12-03Update core_window_flags.cRay
2020-12-03Review commentRay
2020-12-03Review window flagsRay
2020-12-02Merge branch 'master' of https://github.com/raysan5/raylibRay
2020-12-02Update CMakeLists.txtRay
2020-12-02Two small quality of life changes to projects. (#1448)Jeffery Myers
1) use the latest windows SDK not a specific one. 2) use the project dir as the root for the include dir for raylib, to help if the project is ever included in some other solution.
2020-12-01ADDED: UnloadModelKeepMeshes() #1441Ray
2020-12-01Review for issue #1446Ray
2020-12-01Update CMakeLists.txtRay
2020-11-30Updated GLFW to latest 3.4 (github master - 16Nov2020)Ray
WARNING: Some CMake files not changed WARNING: glfw_native.h contains custom changes
2020-11-30Review some config optionsRay
2020-11-30Fix typecast warnings in raylib code as reported by visual studio 2019 (#1443)Jeffery Myers
2020-11-29Added GLFW_OPENGL_FORWARD_COMPAT for Apple Support (#1445)Seth Archambault
Without GLFW_OPENGL_FORWARD_COMPAT, running this as a standalone will yield the error: ``` NSGL: The targeted version of macOS only supports forward-compatible core profile contexts for OpenGL 3.2 and above ```
2020-11-29optimized MatrixLookAt (#1442)Random
2020-11-29Added Apple Compilation Instructions (#1444)Seth Archambault
Stumbled on this example and I love this! Adding instructions that work for me on MacOS.. Note that glfw3 will need to be statically built locally and copied to this external/libs directory on mac. I can upload my static version, but it probably makes sense to do this only if there's some general naming convention for adding platform specific folders. Like "external_osx/lib" or "external/lib_osx". Then I'll drop my static libs in there.
2020-11-28REMOVED: GetImageDataNormalized()raysan5
Let the advance users manage it as they want...
2020-11-28ADDED: UnloadFontData()raysan5