summaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)Author
2020-12-31 Avoid dereferencing a null pointer in the 'LoadMaterials' function in the ↵Victor Gallet
models module (#1498)
2020-12-31 Avoid dereferencing a null pointer in the 'LoadSounsFromWave' function if ↵Victor Gallet
the audioBuffer is null (#1499)
2020-12-30Add a current monitor function for window mode windows. (#1492)Jeffery Myers
2020-12-30lookup the returned monitor in the list of monitors to get an index. (#1490)Jeffery Myers
2020-12-29Review code formattingraysan5
2020-12-29Faster version of ImageClearBackground and ImageDrawRectangleRec (#1487)Jeffery Myers
* Don't use DrawRect to clear an image, a pixel loop is an order of magnitude faster. * Update ImageDrawRectangle to be faster too.
2020-12-29Monitor utilites (#1485)hristo
* Added a new utility function to get the current monitor. Some of the other functions rely on passing on a monitor id but we only have a function for querying the count of monitors available. * Updated the comment to correctly reflect the function action
2020-12-29I noticed that toggle fullscreen always gets the primary monitor when its ↵hristo
more intuitive to use the monitor that the window is currently in. (#1486) This monitor should even probably be passed as an id instead to make it more consistent with the rest of the API but this would break existing applications so I am hesitant to change the function signature directly.
2020-12-26Review DrawLineBezierQuad(), formating and aprameters orderraysan5
2020-12-26Add Quadratic Bezier drawing (#1468)Violet White
* Add quadratic bezier to shapes.c * Add DrawLineBezierQuad to header
2020-12-24Replace TABS by 4 spacesraysan5
2020-12-24Review some RPI4 tracelogsraysan5
2020-12-24Update Makefileraysan5
2020-12-24Review tracelog messages for DRM platformraysan5
2020-12-23Review formattingraysan5
2020-12-23Review Android Makefiles to required versionraysan5
2020-12-23Review issues when compiling for Androidraysan5
2020-12-23Remove trailing spacesraysan5
2020-12-23Update resource fileraysan5
2020-12-23Remove unused variableraysan5
2020-12-23Corrected typoraysan5
2020-12-23Corrected small issueraysan5
2020-12-23ADDED: CheckCollisionLines()raysan5
Removed function from raymath
2020-12-21[Math Feature]: Add two functions for Vector2 to know if two lines intersect ↵Victor Gallet
and two segments intersect (#1466) * Add a function to know if two lines intersect each other and if yes, get the intersection point * Remove indents * Rework the declaration of the 'Vector2LineIntersect' function, and add the 'Vector2SegmentIntersect' function * Remove bad indents * Fix compilation issues * Fix compilation error * Fix compilation error * Replace keyword '_Bool' by 'bool'
2020-12-19Set version for raylib 3.5Ray
2020-12-19Camera funcs, review params namesRay
Just for a better consistency
2020-12-19REVIEW: CheckCollisionSpheres() params namingRay
2020-12-19Minor tweakRay
2020-12-19ADDED: MemAlloc() / MemFree() #1440Ray
Exposing internal memory allocator/free, useful for advance users when required
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-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-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-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