Merge branch 'master' into event-recording-enhancements
This commit is contained in:
commit
f6b7dbc5df
45 changed files with 4313 additions and 6728 deletions
2
.github/workflows/webassembly.yml
vendored
2
.github/workflows/webassembly.yml
vendored
|
|
@ -29,7 +29,7 @@ jobs:
|
|||
- name: Setup emsdk
|
||||
uses: mymindstorm/setup-emsdk@v11
|
||||
with:
|
||||
version: 3.0.0
|
||||
version: 3.1.30
|
||||
actions-cache-folder: 'emsdk-cache'
|
||||
|
||||
- name: Setup Release Version
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ Some people ported raylib to other languages in form of bindings or wrappers to
|
|||
| raylib-go | **4.2** | [Go](https://golang.org/) | Zlib | https://github.com/gen2brain/raylib-go |
|
||||
| raylib-guile | auto | [Guile](https://www.gnu.org/software/guile/) | Zlib | https://github.com/petelliott/raylib-guile |
|
||||
| gforth-raylib | 3.5 | [Gforth](https://gforth.org/) | MIT | https://github.com/ArnautDaniel/gforth-raylib |
|
||||
| h-raylib | 4.5-dev | [Haskell](https://haskell.org/) | Apache-2.0 | https://github.com/Anut-py/h-raylib |
|
||||
| h-raylib | **4.5** | [Haskell](https://haskell.org/) | Apache-2.0 | https://github.com/Anut-py/h-raylib |
|
||||
| raylib-hx | **4.2** | [Haxe](https://haxe.org/) | Zlib | https://github.com/foreignsasquatch/raylib-hx |
|
||||
| hb-raylib | 3.5 | [Harbour](https://harbour.github.io) | MIT | https://github.com/MarcosLeonardoMendezGerencir/hb-raylib |
|
||||
| jaylib | **4.2** | [Java](https://en.wikipedia.org/wiki/Java_(programming_language)) | GPLv3+CE | https://github.com/electronstudio/jaylib/ |
|
||||
|
|
@ -68,9 +68,10 @@ Some people ported raylib to other languages in form of bindings or wrappers to
|
|||
| raylib-vapi | **4.2** | [Vala](https://vala.dev/) | Zlib | https://github.com/lxmcf/raylib-vapi |
|
||||
| raylib-wren | **4.0** | [Wren](http://wren.io/) | ISC | https://github.com/TSnake41/raylib-wren |
|
||||
| raylib-zig | **4.2** | [Zig](https://ziglang.org/) | MIT | https://github.com/Not-Nik/raylib-zig |
|
||||
| raylib.zig | **4.2** | [Zig](https://ziglang.org/) | MIT | https://github.com/ryupold/raylib.zig |
|
||||
| raylib.zig | **4.5** | [Zig](https://ziglang.org/) | MIT | https://github.com/ryupold/raylib.zig |
|
||||
| hare-raylib | auto | [Hare](https://harelang.org/) | Zlib | https://git.sr.ht/~evantj/hare-raylib |
|
||||
|
||||
| raylib-sunder | auto | [Sunder](https://github.com/ashn-dot-dev/sunder) | 0BSD | https://github.com/ashn-dot-dev/raylib-sunder |
|
||||
| rayed-bqn | auto | [BQN](https://mlochbaum.github.io/BQN/) | MIT | https://github.com/Brian-ED/rayed-bqn |
|
||||
|
||||
|
||||
### Utility Wrapers
|
||||
|
|
|
|||
56
CHANGELOG
56
CHANGELOG
|
|
@ -1,25 +1,26 @@
|
|||
changelog
|
||||
---------
|
||||
|
||||
Current Release: raylib 4.2.0 (11 August 2022)
|
||||
Current Release: raylib 4.5.0 (18 March 2023)
|
||||
|
||||
-------------------------------------------------------------------------
|
||||
Release: raylib 4.5 (xx February 2023) -WIP-
|
||||
Release: raylib 4.5 (18 March 2023)
|
||||
-------------------------------------------------------------------------
|
||||
KEY CHANGES:
|
||||
- ADDED: M3D model format support with animations
|
||||
- ADDED: GLTF animation support
|
||||
- ADDED: QOA audio format support (import/export) -WIP-
|
||||
- rlgl redesign to avoid render batch triangles limits pre-check: rlCheckRenderBatchLimit()
|
||||
- rshapes simplification to minimize the requirement of rlgl functionality, now it only depends on 6 functions
|
||||
- rl_gputex.h: Compressed textures loading, required by rtextures module, has been moved to a separate self-contained library
|
||||
- raygui 3.5: New version of the immediate-mode gui system for tools development with raylib
|
||||
- ADDED: Improved ANGLE support on Desktop platforms
|
||||
- ADDED: rcamera module, simpler and more extendable
|
||||
- ADDED: Support for M3D models and M3D/GLTF animations
|
||||
- ADDED: Support QOA audio format (import/export)
|
||||
- ADDED: rl_gputex module for compressed textures loading
|
||||
- REDESIGNED: rlgl module for automatic render-batch limits checking
|
||||
- REDESIGNED: rshapes module to minimize the rlgl dependency
|
||||
|
||||
Detailed changes:
|
||||
[core] ADDED: RAYLIB_VERSION_* values to raylib.h (#2856) by @RobLoach
|
||||
[core] ADDED: Basic gamepad support for Android (#2709) by @deniska
|
||||
[core] ADDED: Support CAPS/NUM lock keys registering if locked
|
||||
[core] ADDED: _GNU_SOURCE define on Linux (#2729)
|
||||
[core] ADDED: SetWindowIcons() to set multiple icon image sizes
|
||||
[core] `WARNING`: RENAMED: Exported raylib version symbol to raylib_version #2671
|
||||
[core] REMOVED: Touch points on touch up events on Android (#2711) by @deniska
|
||||
[core] REVIEWED: Window position setup on InitWindow() (#2732) by @RandomErrorMessage
|
||||
|
|
@ -37,19 +38,30 @@ Detailed changes:
|
|||
[core] REVIEWED: GetKeyPressed(), out of range issue (#2814) by @daipom
|
||||
[core] REVIEWED: GetTime(), renamed variable 'time' to 'nanoSeconds' (#2816) by @jtainer
|
||||
[core] REVIEWED: LoadShaderFromMemory(), issue with shader linkage
|
||||
[core] REVIEWED: Avoid possible gamepad index as -1 (#2839)
|
||||
[core] REVIEWED: Avoid possible gamepad index as -1 (#2839)
|
||||
[core] REVIEWED: SetShaderValue*(), avoid setup uniforms for invalid locations
|
||||
[core] REVIEWED: GetClipboardText() on PLATFORM_WEB, permissions issues
|
||||
[core] REVIEWED: Initial window position for display-sized fullscreen (#2742) by @daipom
|
||||
[core] REVIEWED: Sticky touches input (#2857) by @ImazighenGhost
|
||||
[core] REVIEWED: Enable GetWindowHandle() on macOS (#2915) by @Not-Nik
|
||||
[core] REVIEWED: Window position always inits centered in current monitor
|
||||
[core] REVIEWED: IsWindowFocused() to consider Android App state (#2935)
|
||||
[core] REVIEWED: GetMonitorWidth() and GetMonitorHeight() (#2934)
|
||||
[core] REVIEWED: GetWindowHandle() to return Linux window (#2938)
|
||||
[core] REVIEWED: WindowDropCallback(), additional security check (#2943)
|
||||
[core] REVIEWED: Security checks for emscripten_run_script() (#2954)
|
||||
[utils] REVIEWED: TraceLog() message size limit overflow
|
||||
[rcamera] REDESIGNED: New implementation from scratch (#2563) by @Crydsch
|
||||
[rcamera] REVIEWED: Make orbital camera work as expected (#2926) by @JeffM2501
|
||||
[rcamera] REVIEWED: Multiple reviews on the new implementation
|
||||
[rcamera] ADDED: UpdateCameraPro(), supporting custom user inputs
|
||||
[rlgl] ADDED: OpenGL ES 2.0 support on PLATFORM_DESKTOP (#2840) by @wtnbgo
|
||||
[rlgl] ADDED: Separate blending modes for color and alpha, BLEND_CUSTOM_SEPARATE (#2741)
|
||||
[rlgl] ADDED: rlSetBlendFactorsSeparate and custom blend mode modification checks (#2741) by @pure01fx
|
||||
[rlgl] ADDED: RL_TEXTURE_MIPMAP_BIAS_RATIO support to `rlTextureParameters()` for OpenGL 3.3 #2674
|
||||
[rlgl] ADDED: rlCubemapParameters() (#2862) by @GithubPrankster
|
||||
[rlgl] ADDED: rlSetCullFace() (#2797) by @jtainer
|
||||
[rlgl] REMOVED: Mipmaps software generation for OpenGL 1.1
|
||||
[rlgl] REMOVED: Mipmaps software generation for OpenGL 1.1
|
||||
[rlgl] REVIEWED: Check for extensions before enabling them (#2706) by @Not-Nik
|
||||
[rlgl] REVIEWED: SSBO usage to avoid long long data types
|
||||
[rlgl] REVIEWED: Enable DXT compression on __APPLE__ targets (#2694) by @Not-Nik
|
||||
|
|
@ -58,6 +70,7 @@ Detailed changes:
|
|||
[rlgl] REVIEWED: rlMultMatrixf(), use const pointer (#2807) by @planetis-m
|
||||
[rlgl] REVIEWED: Expose OpenGL blending mode factors and functions/equations
|
||||
[rlgl] REVIEWED: rLoadTextureDepth(), issue with depth textures on WebGL (#2824)
|
||||
[rlgl] REVIEWED: rlUnloadFramebuffer() (#2937)
|
||||
[raymath] ADDED: Vector2LineAngle() (#2887)
|
||||
[raymath] REVIEWED: Vector2Angle() (#2829, #2832) by @AlxHnr, @planetis-m
|
||||
[shapes] ADDED: CheckCollisionPointPoly() (#2685) by @acejacek
|
||||
|
|
@ -73,7 +86,7 @@ Detailed changes:
|
|||
[textures] ADDED: ImageBlurGaussian() (#2770) by @nobytesgiven
|
||||
[textures] REVIEWED: Image fileformat support: PIC, PNM
|
||||
[textures] REVIEWED: ImageTextEx() and ImageDrawTextEx() scaling (#2756) by @hatkidchan
|
||||
[textures] `WARNING`: REMOVED: DrawTextureQuad()
|
||||
[textures] `WARNING`: REMOVED: DrawTextureQuad()
|
||||
[textures] `WARNING`: REMOVED: DrawTexturePoly(), function moved to example: `textures_polygon`
|
||||
[textures] `WARNING`: REMOVED: DrawTextureTiled(),function implementation moved to the textures_tiled.c
|
||||
[text] ADDED: GetCodepointPrevious()
|
||||
|
|
@ -81,7 +94,6 @@ Detailed changes:
|
|||
[text] `WARNING`: RENAMED: TextCodepointsToUTF8() to LoadUTF8()
|
||||
[text] `WARNING`: RENAMED: GetCodepoint() -> GetCodepointNext()
|
||||
[text] REDESIGNED: GetCodepointNext()
|
||||
[text] REVIEWED text_codepoints_loading.c
|
||||
[text] REVIEWED: MeasureTextEx(), avoid crash on bad data
|
||||
[text] REVIEWED: UnloadFontData(), avoid crash on invalid font data
|
||||
[models] ADDED: Support M3D model file format (meshes and materials) (#2648) by @bztsrc
|
||||
|
|
@ -89,41 +101,53 @@ Detailed changes:
|
|||
[models] ADDED: GLTF animation support (#2844) by @charles-l
|
||||
[models] ADDED: DrawCapsule() and DrawCapsuleWires() (#2761) by @IanBand
|
||||
[models] ADDED: LoadMaterials(), MTL files loading, same code as OBJ loader (#2872) by @JeffM2501
|
||||
[models] `WARNING`: REMOVED: UnloadModelKeepMeshes()
|
||||
[models] `WARNING`: REMOVED: DrawCubeTexture(), DrawCubeTextureRec(), functions moved to new example: `models_draw_cube_texture`
|
||||
[models] REVIEWED: DrawMesh(), using SHADER_LOC_COLOR_SPECULAR as a material map (#2908) by @haved
|
||||
[models] REVIEWED: LoadM3D() vertex color support (#2878) by @GithubPrankster, @bztsrc
|
||||
[models] REVIEWED: GenMeshHeightmap() (#2716)
|
||||
[models] REVIEWED: LoadIQM() (#2676)
|
||||
[models] REVIEWED: Simplify .vox signature check (#2752) by @CrezyDud
|
||||
[models] REVIEWED: LoadIQM(), support bone names loading if available (#2882) by @PencilAmazing
|
||||
[models] `WARNING`: REMOVED: DrawCubeTexture(), DrawCubeTextureRec(), functions moved to new example: `models_draw_cube_texture`
|
||||
[models] REVIEWED: GenMeshTangents(), avoid crash on missing texcoords data (#2927)
|
||||
[audio] ADDED: Full support for QOA audio file format
|
||||
[audio] ADDED: Mixed audio processor (#2929) by @hatkidchan
|
||||
[audio] ADDED: IsWaveReady()`, IsSoundReady(), IsMusicReady() (#2892) by @RobLoach
|
||||
[audio] `WARNING`: REMOVED: Multichannel audio API: PlaySoundMulti(), StopSoundMulti()
|
||||
[audio] REVIEWED: Clear PCM buffer state when closing audio device (#2736) by @veins1
|
||||
[audio] REVIEWED: Android backend selected (#2118, #2875) by @planetis-m
|
||||
[audio] REVIEWED: Change default threading model for COM objects in miniaudio
|
||||
[multi] ADDED: IsShaderReady(), IsImageReady(), IsFontReady() (#2892) by @RobLoach
|
||||
[multi] ADDED: IsModelReady(), IsMaterialReady(), IsTextureReady(), IsRenderTextureReady() (#2895) by @RobLoach
|
||||
[multi] REVIEWED: Multiple code/comment typos by @sDos280
|
||||
[multi] REVIEWED: Grammar mistakes and typos (#2914) by @stickM4N
|
||||
[multi] REVIEWED: Use TRACELOG() macro instead of TraceLog() in internal modules (#2881) by @RobLoach
|
||||
[examples] ADDED: textures_textured_curve (#2821) by @JeffM2501
|
||||
[examples] ADDED: models_draw_cube_texture
|
||||
[examples] ADDED: models_loading_m3d (#2648) by @bztsrc
|
||||
[examples] ADDED: shaders_write_depth (#2836) by @BugraAlptekinSari
|
||||
[examples] ADDED: shaders_hybrid_render (#2919) by @BugraAlptekinSari
|
||||
[examples] REMOVED: audio_multichannel_sound
|
||||
[examples] RENAMED: Several shaders for naming consistency (#2707)
|
||||
[examples] RENAMED: lighting_instanced.fs to lighting_instancing.fs (glsl100) (#2805) by @gtrxAC
|
||||
[examples] REVIEWED: core_custom_logging.c (#2692) by @hartmannathan
|
||||
[examples] REVIEWED: core_camera_2d_platformer (#2687) by @skylar779
|
||||
[examples] REVIEWED: core_input_gamepad.c (#2903) by @planetis-m
|
||||
[examples] REVIEWED: core_custom_frame_control
|
||||
[examples] REVIEWED: core_drop_files (#2943)
|
||||
[examples] REVIEWED: text_rectangle_bounds (#2746) by @SzieberthAdam
|
||||
[examples] REVIEWED: textures_image_processing, added gaussian blurring (#2775) by @nobytesgiven
|
||||
[examples] REVIEWED: models_billboard, highlighting rotation and draw order (#2779) by @nobytesgiven
|
||||
[examples] REVIEWED: core_loading_thread, join thread on completion (#2845) by @planetis-m
|
||||
[examples] REVIEWED: models_loading_gltf
|
||||
[examples] REVIEWED: Shader lighting.fs for GLSL120 (#2651)
|
||||
[examples] REVIEWED: text_codepoints_loading.c
|
||||
[parser] REVIEWED: raylib-parser Makefile (#2765) by @Peter0x44
|
||||
[build] ADDED: Packaging for distros with deb-based and rpm-based packages (#2877) by @KOLANICH
|
||||
[build] ADDED: Linkage library -latomic on Linux (only required for ARM32)
|
||||
[build] ADDED: Required frameworks on macOS (#2793) by @SpexGuy
|
||||
[build] ADDED: WASM support for Zig build (#2901) by @Not-Nik
|
||||
[build] ADDED: New raylib examples as VS2022 project (to raylib solution)
|
||||
[build] REVIEWED: config.h format and inconsistencies
|
||||
[build] REVIEWED: Zig build to latest master, avoid deprecated functions (#2910) by @star-tek-mb
|
||||
[build] REVIEWED: CMake project template to easily target raylib version (#2700) by @RobLoach
|
||||
|
|
@ -137,6 +161,7 @@ Detailed changes:
|
|||
[build] REVIEWED: Several compilation warnings (for strict rules)
|
||||
[build] REVIEWED: All github workflows using deprecated actions
|
||||
[build] REVIEWED: CMake when compiling for web (#2820) by @object71
|
||||
[build] REVIEWED: DLL build on Windows (#2951) by @Skaytacium
|
||||
[build] REVIEWED: Avoid MSVC warnings in raylib project (#2871) by @JeffM2501
|
||||
[build] REVIEWED: Paths in .bat files to build examples (#2870) by @masoudd
|
||||
[build] REVIEWED: CMake, use GLVND for old cmake versions (#2826) by @simendsjo
|
||||
|
|
@ -153,6 +178,9 @@ Detailed changes:
|
|||
[bindings] ADDED: TurboRaylib (Object Pascal) by @turborium
|
||||
[bindings] ADDED: Kaylib (Kotlin/Native) by @Its-Kenta
|
||||
[bindings] ADDED: Raylib-Nelua (Nelua) by @Its-Kenta
|
||||
[bindings] ADDED: Cyber (Cyber) by @fubark
|
||||
[bindings] ADDED: raylib-sunder (Sunder) by @ashn-dot-dev
|
||||
[bindings] ADDED: raylib BQN (#2962) by @Brian-ED
|
||||
[misc] REVIEWED: Update external libraries to latest versions
|
||||
|
||||
-------------------------------------------------------------------------
|
||||
|
|
|
|||
37
HISTORY.md
37
HISTORY.md
|
|
@ -395,3 +395,40 @@ Highlights for `raylib 4.2`:
|
|||
As always, there are more improvements than the key features listed, make sure to check raylib [CHANGELOG](CHANGELOG) for the detailed list of changes; for this release a `WARNING` flag has been added to all the changes that could affect bindings or productivity code. **raylib keeps improving one more version** and a special focus on maintainability has been put on the library for the future. Specific/advance functionality will be provided through **raylib-extras** repos and raylib main repo devlelopment will be focused on what made raylib popular: being a simple and easy-to-use library to **enjoy videogames programming**.
|
||||
|
||||
**Enjoy gamedev/tools/graphics programming!** :)
|
||||
|
||||
notes on raylib 4.5
|
||||
-------------------
|
||||
|
||||
It's been **7 months** since latest raylib release. As usual, **many parts of the library have been reviewed and improved** along those months. Many issues have been closed, staying under 10 open issues at the moment of this writting and also many PRs from contributors have been received, reviewed and merged into raylib library. Some new functions have been added and some others have been removed to improve library coherence and avoid moving too high level, giving the users the tools to implement advance functionality themselfs over raylib. Again, this is a big release with a considerable amount of changes and improvements. Here it is a small summary highlighting this new **rayib 4.5**.
|
||||
|
||||
Some numbers for this release:
|
||||
|
||||
- **+100** closed issues (for a TOTAL of **+1340**!)
|
||||
- **+350** commits since previous RELEASE (for a TOTAL of **+6350**!)
|
||||
- **+25** functions ADDED to raylib API (for a TOTAL of **516**!)
|
||||
- **+40** functions REVIEWED/REDESIGNED
|
||||
- **+40** new contributors (for a TOTAL of **405**!)
|
||||
|
||||
Highlights for `raylib 4.5`:
|
||||
|
||||
- **`NEW` Improved ANGLE support on Desktop platforms**: Support for OpenGL ES 2.0 on Desktop platforms (Windows, Linux, macOS) has been reviewed by @wtnbgo GitHub user. Now raylib can be compiled on desktop for OpenGL ES 2.0 and linked against [`ANGLE`](https://github.com/google/angle). This _small_ addition open the door to building raylib for all **ANGLE supported backends: Direct3D 11, Vulkan and Metal**. Please note that this new feature is still experimental and requires further testing!
|
||||
|
||||
- **`NEW` Camera module**: A brand new implementation from scratch for `rcamera` module, contributed by @Crydsch GitHub user! **New camera system is simpler, more flexible, more granular and more extendable**. Specific camera math transformations (movement/rotation) have been moved to individual functions, exposing them to users if required. Global state has been removed from the module and standalone usage has been greatly improved; now `rcamera.h` single-file header-only library can be used externally, independently of raylib. A new `UpdateCameraPro()` function has been added to address input-dependency of `UpdateCamera()`, now advance users have **full control over camera inputs and movement/rotation speeds**!
|
||||
|
||||
- **`NEW` Support for M3D models and M3D/GLTF animations**: 3d models animations support has been a limited aspect of raylib for long time, some versions ago IQM animations were supported but raylib 4.5 also adds support for the brand new [M3D file format](https://bztsrc.gitlab.io/model3d/), including animations and the long expected support for **GLTF animations**! The new M3D file format is **simple, portable, feature complete, extensible and open source**. It also provides a complete set of tools to export/visualize M3D models from/to Blender! Now raylib supports up to **3 model file-formats with animations**: `IQM`, `GLTF` and `M3D`.
|
||||
|
||||
- **`NEW` Support QOA audio format (import/export)**: Just a couple of months ago the new [QOA file format](https://qoaformat.org/) was published, a very simple, portable and open source quite-ok-audio file format. raylib already supports it, added to `raudio` module and including audio loading from file, loading from memory, streaming from file, streaming from memory and **exporting to QOA** audio format. **Because simplicity really matters to raylib!**
|
||||
|
||||
- **`NEW` Module for compressed textures loading**: [`rl_gputex`](https://github.com/raysan5/raylib/blob/master/src/external/rl_gputex.h), a portable single-file header-only small library to load compressed texture file-formats (DDS, PKM, KTX, PVR, ASTC). Provided functionality is not new to raylib but it was part of the raylib `rtextures` module, now it has been moved into a separate self-contained library, **improving portability**. Note that this module is only intended to **load compressed data from files, ready to be uploaded to GPU**, no compression/decompression functionality is provided. This change is a first step towards a better modularization of raylib library.
|
||||
|
||||
- **Reviewed `rlgl` module for automatic limits checking**: Again, [`rlgl`](https://github.com/raysan5/raylib/blob/master/src/rlgl.h) has been reviewed to simplify usage. Now users do not need to worry about reaching the internal render-batch limits when they send their triangles to draw 2d/3d, `rlgl` manages it automatically! This change allows a **great simplification for other modules** like `rshapes`, `rtextures` and `rmodels` that do not need to worry about bufffer overflows and can just define as many vertex as desired!
|
||||
|
||||
- **Reviewed `rshapes` module to minimize the rlgl dependency**: Now `rshapes` 2d shapes drawing functions **only depend on 6 low-level functions**: `rlBegin()`, `rlEnd()`, `rlVertex3f()`, `rlTexCoord2f()`, `rlNormal3f()`, `rlSetTexture()`. With only those pseudo-OpenGl 1.1 minimal functionality, everything can be drawn! This improvement converts `rshapes` module in a **self-contained, portable shapes-drawing library that can be used independently of raylib**, as far as entry points for those 6 functions are provided by the user. It even allows to be used for software rendering, with the proper backend!
|
||||
|
||||
- **Added data structures validation functions**: Multiple functions have been added by @RobLoach GitHub user to ease the validation of raylib data structures: `IsImageReady()`, `IsTextureReady()`, `IsSoundReady()`... Now users have a simple mechanism to **make sure data has been correctly loaded**, instead of checking internal structure values by themselfs.
|
||||
|
||||
As usual, those are only some highlights but there is much more! New image generators, new color transformation functionality, improved blending support for color/alpha, etc... Make sure to check raylib [CHANGELOG]([CHANGELOG](https://github.com/raysan5/raylib/blob/master/CHANGELOG)) for a detailed list of changes! Please, note that all breaking changes have been flagged with a `WARNING` in the CHANGELOG, specially useful for binding creators!
|
||||
|
||||
**raylib keeps improving one more version** with a special focus on maintainability and sustainability. Always working towards making the library more **simple and easy-to-use**.
|
||||
|
||||
Let's keep **enjoying games/tools/graphics programming!** :)
|
||||
|
|
|
|||
|
|
@ -38,10 +38,10 @@ features
|
|||
--------
|
||||
- **NO external dependencies**, all required libraries are [bundled into raylib](https://github.com/raysan5/raylib/tree/master/src/external)
|
||||
- Multiple platforms supported: **Windows, Linux, MacOS, RPI, Android, HTML5... and more!**
|
||||
- Written in plain C code (C99) in PascalCase/camelCase notation
|
||||
- Written in plain C code (C99) using PascalCase/camelCase notation
|
||||
- Hardware accelerated with OpenGL (**1.1, 2.1, 3.3, 4.3 or ES 2.0**)
|
||||
- **Unique OpenGL abstraction layer** (usable as standalone module): [rlgl](https://github.com/raysan5/raylib/blob/master/src/rlgl.h)
|
||||
- Multiple **Fonts** formats supported (TTF, XNA fonts, AngelCode fonts)
|
||||
- Multiple **Fonts** formats supported (TTF, Image fonts, AngelCode fonts)
|
||||
- Multiple texture formats supported, including **compressed formats** (DXT, ETC, ASTC)
|
||||
- **Full 3D support**, including 3D Shapes, Models, Billboards, Heightmaps and more!
|
||||
- Flexible Materials system, supporting classic maps and **PBR maps**
|
||||
|
|
@ -51,7 +51,7 @@ features
|
|||
- Audio loading and playing with streaming support (WAV, OGG, MP3, FLAC, XM, MOD)
|
||||
- **VR stereo rendering** support with configurable HMD device parameters
|
||||
- Huge examples collection with [+120 code examples](https://github.com/raysan5/raylib/tree/master/examples)!
|
||||
- Bindings to [+50 programming languages](https://github.com/raysan5/raylib/blob/master/BINDINGS.md)!
|
||||
- Bindings to [+60 programming languages](https://github.com/raysan5/raylib/blob/master/BINDINGS.md)!
|
||||
- **Free and open source**.
|
||||
|
||||
basic example
|
||||
|
|
|
|||
25
ROADMAP.md
25
ROADMAP.md
|
|
@ -3,16 +3,21 @@
|
|||
Here it is a wishlist with features and ideas to improve the library. Note that features listed here are usually long term improvements or just describe a route to follow for the library. There are also some additional places to look for raylib improvements and ideas:
|
||||
|
||||
- [GitHub Issues](https://github.com/raysan5/raylib/issues) has several open issues for possible improvements or bugs to fix.
|
||||
- [raylib source code](https://github.com/raysan5/raylib/tree/master/src) has multiple *TODO* comments around code with pending things to review or improve.
|
||||
- raylib wishlists discussions (https://github.com/raysan5/raylib/discussions/1502, https://github.com/raysan5/raylib/discussions/2272) are open to everyone to ask for improvements, feel free to check and comment.
|
||||
- [raylib source code](https://github.com/raysan5/raylib/tree/master/src) has multiple *TODO* comments around code with pending things to review or improve.
|
||||
- raylib wishlists discussions are open to everyone to ask for improvements, feel free to check and comment:
|
||||
- [raylib wishlist 2021](https://github.com/raysan5/raylib/discussions/1502)
|
||||
- [raylib wishlist 2022](https://github.com/raysan5/raylib/discussions/2272)
|
||||
- [raylib 5.0 wishlist](https://github.com/raysan5/raylib/discussions/2952)
|
||||
|
||||
_Current version of raylib is complete and functional but there is always room for improvements._
|
||||
|
||||
**raylib 4.x**
|
||||
- [ ] Redesign camera module (more flexible) ([#1143](https://github.com/raysan5/raylib/issues/1143), https://github.com/raysan5/raylib/discussions/2507)
|
||||
- [ ] Split core module into separate platforms?
|
||||
- [ ] Basic 2d software renderer, using `Image` provided API
|
||||
- [ ] Redesign gestures system, improve touch inputs management
|
||||
- [ ] Redesign raudio module, implement miniaudio high-level provided features
|
||||
- [x] Better documentation and improved examples
|
||||
- [ ] Redesign audio module, implement miniaudio high-level provided features
|
||||
- [x] Redesign camera module (more flexible) ([#1143](https://github.com/raysan5/raylib/issues/1143), https://github.com/raysan5/raylib/discussions/2507)
|
||||
- [x] Better documentation and improved examples, reviewed webpage with examples complexity level
|
||||
- [x] Focus on HTML5 ([raylib 5k gamejam](https://itch.io/jam/raylib-5k-gamejam)) and embedded platforms (RPI and similar SOCs)
|
||||
- [x] Additional support libraries: [raygui](https://github.com/raysan5/raygui), [rres](https://github.com/raysan5/rres)
|
||||
|
||||
|
|
@ -23,23 +28,23 @@ _Current version of raylib is complete and functional but there is always room f
|
|||
- Basic CPU/GPU stats system (memory, draws, time...) ([#1295](https://github.com/raysan5/raylib/issues/1295)) - _DISCARDED_
|
||||
- Software rendering backend (avoiding OpenGL) ([#1370](https://github.com/raysan5/raylib/issues/1370)) - _DISCARDED_
|
||||
- Network module (UDP): `rnet` ([#753](https://github.com/raysan5/raylib/issues/753)) - _DISCARDED_ - Use [nbnet](https://github.com/nathhB/nbnet).
|
||||
|
||||
|
||||
**raylib 3.0**
|
||||
- [x] Custom memory allocators support
|
||||
- [x] Global variables moved to global context
|
||||
- [x] Optimize data structures for pass-by-value
|
||||
- [x] Trace log messages redesign ([#1065](https://github.com/raysan5/raylib/issues/1065))
|
||||
- [x] Continuous Integration using GitHub Actions
|
||||
|
||||
|
||||
**raylib 2.5**
|
||||
- [x] Support Animated models
|
||||
- [x] Support glTF models file format
|
||||
- [x] Unicode support on text drawing
|
||||
|
||||
|
||||
**raylib 2.0**
|
||||
- [x] Removed external dependencies (GLFW3 and OpenAL)
|
||||
- [x] Support TCC compiler (32bit and 64bit)
|
||||
|
||||
|
||||
**raylib 1.8**
|
||||
- [x] Improved Materials system with PBR support
|
||||
- [x] Procedural image generation functions (spot, gradient, noise...)
|
||||
|
|
@ -50,7 +55,7 @@ _Current version of raylib is complete and functional but there is always room f
|
|||
- [x] Support configuration flags
|
||||
- [x] Improved build system for Android
|
||||
- [x] Gamepad support on HTML5
|
||||
|
||||
|
||||
**raylib 1.6**
|
||||
- [x] Lua scripting support (raylib Lua wrapper)
|
||||
- [x] Redesigned audio module
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ PLATFORM ?= PLATFORM_DESKTOP
|
|||
|
||||
# Define required raylib variables
|
||||
PROJECT_NAME ?= raylib_examples
|
||||
RAYLIB_VERSION ?= 4.2.0
|
||||
RAYLIB_VERSION ?= 4.5.0
|
||||
RAYLIB_PATH ?= ..
|
||||
|
||||
# Locations of raylib.h and libraylib.a/libraylib.so
|
||||
|
|
@ -129,7 +129,7 @@ endif
|
|||
RAYLIB_RELEASE_PATH ?= $(RAYLIB_PATH)/src
|
||||
|
||||
ifeq ($(PLATFORM),PLATFORM_WEB)
|
||||
ifeq ($(PLATFORM_OS),WINDOWS)
|
||||
ifeq ($(PLATFORM_OS),WINDOWS)
|
||||
# Emscripten required variables
|
||||
EMSDK_PATH ?= C:/emsdk
|
||||
EMSCRIPTEN_PATH ?= $(EMSDK_PATH)/upstream/emscripten
|
||||
|
|
@ -137,7 +137,7 @@ ifeq ($(PLATFORM),PLATFORM_WEB)
|
|||
PYTHON_PATH = $(EMSDK_PATH)/python/3.9.2-1_64bit
|
||||
NODE_PATH = $(EMSDK_PATH)/node/14.15.5_64bit/bin
|
||||
export PATH = $(EMSDK_PATH);$(EMSCRIPTEN_PATH);$(CLANG_PATH);$(NODE_PATH);$(PYTHON_PATH):$$(PATH)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
# Define default C compiler: CC
|
||||
|
|
@ -210,7 +210,7 @@ else
|
|||
CFLAGS += -Os
|
||||
endif
|
||||
else
|
||||
CFLAGS += -s -O2
|
||||
CFLAGS += -O2
|
||||
endif
|
||||
endif
|
||||
|
||||
|
|
@ -489,6 +489,7 @@ MODELS = \
|
|||
models/models_billboard \
|
||||
models/models_box_collisions \
|
||||
models/models_cubicmap \
|
||||
models/models_draw_cube_texture \
|
||||
models/models_first_person_maze \
|
||||
models/models_geometric_shapes \
|
||||
models/models_mesh_generation \
|
||||
|
|
@ -531,8 +532,8 @@ AUDIO = \
|
|||
audio/audio_music_stream \
|
||||
audio/audio_raw_stream \
|
||||
audio/audio_sound_loading \
|
||||
audio/audio_multichannel_sound \
|
||||
audio/audio_stream_effects
|
||||
audio/audio_stream_effects \
|
||||
audio/audio_mixed_processor
|
||||
|
||||
CURRENT_MAKEFILE = $(lastword $(MAKEFILE_LIST))
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ PLATFORM ?= PLATFORM_WEB
|
|||
|
||||
# Define required raylib variables
|
||||
PROJECT_NAME ?= raylib_examples
|
||||
RAYLIB_VERSION ?= 4.2.0
|
||||
RAYLIB_VERSION ?= 4.5.0
|
||||
RAYLIB_PATH ?= ..
|
||||
|
||||
# Locations of raylib.h and libraylib.a/libraylib.so
|
||||
|
|
@ -60,8 +60,8 @@ ifeq ($(PLATFORM),PLATFORM_RPI)
|
|||
endif
|
||||
endif
|
||||
|
||||
# Determine PLATFORM_OS in case PLATFORM_DESKTOP selected
|
||||
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
||||
# Determine PLATFORM_OS in case PLATFORM_DESKTOP or PLATFORM_WEB selected
|
||||
ifeq ($(PLATFORM),$(filter $(PLATFORM),PLATFORM_DESKTOP PLATFORM_WEB))
|
||||
# No uname.exe on MinGW!, but OS=Windows_NT on Windows!
|
||||
# ifeq ($(UNAME),Msys) -> Windows
|
||||
ifeq ($(OS),Windows_NT)
|
||||
|
|
@ -119,16 +119,18 @@ ifeq ($(PLATFORM),PLATFORM_DRM)
|
|||
endif
|
||||
|
||||
# Define raylib release directory for compiled library
|
||||
RAYLIB_RELEASE_PATH ?= $(RAYLIB_PATH)/src
|
||||
RAYLIB_RELEASE_PATH ?= $(RAYLIB_PATH)/src
|
||||
|
||||
ifeq ($(PLATFORM),PLATFORM_WEB)
|
||||
# Emscripten required variables
|
||||
EMSDK_PATH ?= C:/emsdk
|
||||
EMSCRIPTEN_PATH ?= $(EMSDK_PATH)/upstream/emscripten
|
||||
CLANG_PATH = $(EMSDK_PATH)/upstream/bin
|
||||
PYTHON_PATH = $(EMSDK_PATH)/python/3.9.2-1_64bit
|
||||
NODE_PATH = $(EMSDK_PATH)/node/14.15.5_64bit/bin
|
||||
export PATH = $(EMSDK_PATH);$(EMSCRIPTEN_PATH);$(CLANG_PATH);$(NODE_PATH);$(PYTHON_PATH):$$(PATH)
|
||||
ifeq ($(PLATFORM_OS),WINDOWS)
|
||||
# Emscripten required variables
|
||||
EMSDK_PATH ?= C:/emsdk
|
||||
EMSCRIPTEN_PATH ?= $(EMSDK_PATH)/upstream/emscripten
|
||||
CLANG_PATH = $(EMSDK_PATH)/upstream/bin
|
||||
PYTHON_PATH = $(EMSDK_PATH)/python/3.9.2-1_64bit
|
||||
NODE_PATH = $(EMSDK_PATH)/node/14.15.5_64bit/bin
|
||||
export PATH = $(EMSDK_PATH);$(EMSCRIPTEN_PATH);$(CLANG_PATH);$(NODE_PATH);$(PYTHON_PATH):$$(PATH)
|
||||
endif
|
||||
endif
|
||||
|
||||
# Define default C compiler: CC
|
||||
|
|
@ -195,9 +197,13 @@ ifeq ($(BUILD_MODE),DEBUG)
|
|||
endif
|
||||
else
|
||||
ifeq ($(PLATFORM),PLATFORM_WEB)
|
||||
CFLAGS += -Os
|
||||
ifeq ($(BUILD_WEB_ASYNCIFY),TRUE)
|
||||
CFLAGS += -O3
|
||||
else
|
||||
CFLAGS += -Os
|
||||
endif
|
||||
else
|
||||
CFLAGS += -s -O1
|
||||
CFLAGS += -s -O2
|
||||
endif
|
||||
endif
|
||||
|
||||
|
|
@ -329,7 +335,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
|||
ifeq ($(RAYLIB_LIBTYPE),SHARED)
|
||||
LDLIBS += -lc
|
||||
endif
|
||||
|
||||
|
||||
# NOTE: On ARM 32bit arch, miniaudio requires atomics library
|
||||
LDLIBS += -latomic
|
||||
endif
|
||||
|
|
@ -394,13 +400,13 @@ CORE = \
|
|||
core/core_scissor_test \
|
||||
core/core_storage_values \
|
||||
core/core_vr_simulator \
|
||||
core/core_loading_thread \
|
||||
core/core_window_flags \
|
||||
core/core_window_letterbox \
|
||||
core/core_window_should_close \
|
||||
core/core_split_screen \
|
||||
core/core_smooth_pixelperfect \
|
||||
core/core_custom_frame_control
|
||||
core/core_custom_frame_control \
|
||||
core/core_loading_thread
|
||||
|
||||
SHAPES = \
|
||||
shapes/shapes_basic_shapes \
|
||||
|
|
@ -437,6 +443,7 @@ TEXTURES = \
|
|||
textures/textures_sprite_anim \
|
||||
textures/textures_sprite_button \
|
||||
textures/textures_sprite_explosion \
|
||||
textures/textures_textured_curve \
|
||||
textures/textures_bunnymark \
|
||||
textures/textures_blend_modes \
|
||||
textures/textures_draw_tiled \
|
||||
|
|
@ -463,6 +470,7 @@ MODELS = \
|
|||
models/models_billboard \
|
||||
models/models_box_collisions \
|
||||
models/models_cubicmap \
|
||||
models/models_draw_cube_texture \
|
||||
models/models_first_person_maze \
|
||||
models/models_geometric_shapes \
|
||||
models/models_mesh_generation \
|
||||
|
|
@ -496,15 +504,17 @@ SHADERS = \
|
|||
shaders/shaders_spotlight \
|
||||
shaders/shaders_hot_reloading \
|
||||
shaders/shaders_mesh_instancing \
|
||||
shaders/shaders_multi_sample2d
|
||||
shaders/shaders_multi_sample2d \
|
||||
shaders/shaders_write_depth \
|
||||
shaders/shaders_hybrid_render
|
||||
|
||||
AUDIO = \
|
||||
audio/audio_module_playing \
|
||||
audio/audio_music_stream \
|
||||
audio/audio_raw_stream \
|
||||
audio/audio_sound_loading \
|
||||
audio/audio_multichannel_sound \
|
||||
audio/audio_stream_effects
|
||||
audio/audio_stream_effects \
|
||||
audio/audio_mixed_processor
|
||||
|
||||
CURRENT_MAKEFILE = $(lastword $(MAKEFILE_LIST))
|
||||
|
||||
|
|
@ -594,13 +604,6 @@ core/core_vr_simulator: core/core_vr_simulator.c
|
|||
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
|
||||
--preload-file core/resources/distortion100.fs@resources/distortion100.fs
|
||||
|
||||
# NOTE: To use multi-threading raylib must be compiled with multi-theading support (-s USE_PTHREADS=1)
|
||||
# WARNING: For security reasons multi-threading is not supported on browsers, it requires cross-origin isolation (Oct.2021)
|
||||
# WARNING: It requires raylib to be compiled using -pthread, so atomic operations and thread-local data (if any)
|
||||
# in its source were transformed to non-atomic operations and non-thread-local data
|
||||
core/core_loading_thread: core/core_loading_thread.c
|
||||
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s USE_PTHREADS=1
|
||||
|
||||
core/core_window_flags: core/core_window_flags.c
|
||||
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
|
||||
|
||||
|
|
@ -615,6 +618,14 @@ core/core_custom_frame_control: core/core_custom_frame_control.c
|
|||
|
||||
core/core_window_should_close: core/core_window_should_close.c
|
||||
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
|
||||
|
||||
# NOTE: To use multi-threading raylib must be compiled with multi-theading support (-s USE_PTHREADS=1)
|
||||
# WARNING: For security reasons multi-threading is not supported on browsers, it requires cross-origin isolation (Oct.2021)
|
||||
# WARNING: It requires raylib to be compiled using -pthread, so atomic operations and thread-local data (if any)
|
||||
# in its source were transformed to non-atomic operations and non-thread-local data
|
||||
core/core_loading_thread: core/core_loading_thread.c
|
||||
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s USE_PTHREADS=1
|
||||
|
||||
|
||||
# Compile SHAPES examples
|
||||
shapes/shapes_basic_shapes: shapes/shapes_basic_shapes.c
|
||||
|
|
@ -734,6 +745,10 @@ textures/textures_sprite_explosion: textures/textures_sprite_explosion.c
|
|||
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
|
||||
--preload-file textures/resources/explosion.png@resources/explosion.png \
|
||||
--preload-file textures/resources/boom.wav@resources/boom.wav
|
||||
|
||||
textures/textures_textured_curve: textures/textures_textured_curve.c
|
||||
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
|
||||
--preload-file textures/resources/road.png@resources/road.png
|
||||
|
||||
textures/textures_bunnymark: textures/textures_bunnymark.c
|
||||
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
|
||||
|
|
@ -840,6 +855,10 @@ models/models_cubicmap: models/models_cubicmap.c
|
|||
--preload-file models/resources/cubicmap.png@resources/cubicmap.png \
|
||||
--preload-file models/resources/cubicmap_atlas.png@resources/cubicmap_atlas.png
|
||||
|
||||
models/models_draw_cube_texture: models/models_draw_cube_texture.c
|
||||
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
|
||||
--preload-file models/resources/cubicmap_atlas.png@resources/cubicmap_atlas.png
|
||||
|
||||
models/models_first_person_maze: models/models_first_person_maze.c
|
||||
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
|
||||
--preload-file models/resources/cubicmap.png@resources/cubicmap.png \
|
||||
|
|
@ -870,6 +889,10 @@ models/models_loading_vox: models/models_loading_vox.c
|
|||
models/models_loading_gltf: models/models_loading_gltf.c
|
||||
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s TOTAL_MEMORY=67108864 \
|
||||
--preload-file models/resources/models/gltf/robot.glb@resources/models/gltf/robot.glb
|
||||
|
||||
models/models_loading_m3d: models/models_loading_m3d.c
|
||||
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s TOTAL_MEMORY=67108864 \
|
||||
--preload-file models/resources/models/m3d/cesium_man.m3d@resources/models/m3d/cesium_man.m3d
|
||||
|
||||
models/models_orthographic_projection: models/models_orthographic_projection.c
|
||||
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
|
||||
|
|
@ -951,13 +974,13 @@ shaders/shaders_basic_lighting: shaders/shaders_basic_lighting.c
|
|||
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
|
||||
--preload-file shaders/resources/texel_checker.png@resources/texel_checker.png \
|
||||
--preload-file shaders/resources/shaders/glsl100/lighting.fs@resources/shaders/glsl100/lighting.fs \
|
||||
--preload-file shaders/resources/shaders/glsl100/base_lighting.vs@resources/shaders/glsl100/base_lighting.vs
|
||||
--preload-file shaders/resources/shaders/glsl100/lighting.vs@resources/shaders/glsl100/lighting.vs
|
||||
|
||||
shaders/shaders_fog: shaders/shaders_fog.c
|
||||
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
|
||||
--preload-file shaders/resources/texel_checker.png@resources/texel_checker.png \
|
||||
--preload-file shaders/resources/shaders/glsl100/fog.fs@resources/shaders/glsl100/fog.fs \
|
||||
--preload-file shaders/resources/shaders/glsl100/base_lighting.vs@resources/shaders/glsl100/base_lighting.vs
|
||||
--preload-file shaders/resources/shaders/glsl100/lighting.vs@resources/shaders/glsl100/lighting.vs
|
||||
|
||||
shaders/shaders_simple_mask: shaders/shaders_simple_mask.c
|
||||
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
|
||||
|
|
@ -976,10 +999,9 @@ shaders/shaders_hot_reloading: shaders/shaders_hot_reloading.c
|
|||
|
||||
shaders/shaders_mesh_instancing: shaders/shaders_mesh_instancing.c
|
||||
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
|
||||
--preload-file shaders/resources/shaders/glsl100/base_lighting_instanced.vs@resources/shaders/glsl100/base_lighting_instanced.vs \
|
||||
--preload-file shaders/resources/shaders/glsl100/lighting_instancing.vs@resources/shaders/glsl100/lighting_instancing.vs \
|
||||
--preload-file shaders/resources/shaders/glsl100/lighting.fs@resources/shaders/glsl100/lighting.fs
|
||||
|
||||
|
||||
shaders/shaders_multi_sample2d: shaders/shaders_multi_sample2d.c
|
||||
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
|
||||
--preload-file shaders/resources/shaders/glsl100/color_mix.fs@resources/shaders/glsl100/color_mix.fs
|
||||
|
|
@ -988,7 +1010,16 @@ shaders/shaders_texture_outline: shaders/shaders_texture_outline.c
|
|||
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
|
||||
--preload-file shaders/resources/shaders/glsl100/outline.fs@resources/shaders/glsl100/outline.fs \
|
||||
--preload-file shaders/resources/fudesumi.png@resources/fudesumi.png
|
||||
|
||||
|
||||
shaders/shaders_write_depth: shaders/shaders_write_depth.c
|
||||
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
|
||||
--preload-file shaders/resources/shaders/glsl100/write_depth.fs@resources/shaders/glsl100/write_depth.fs
|
||||
|
||||
shaders/shaders_hybrid_render: shaders/shaders_hybrid_render.c
|
||||
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
|
||||
--preload-file shaders/resources/shaders/glsl100/hybrid_raymarch.fs@resources/shaders/glsl100/hybrid_raymarch.fs \
|
||||
--preload-file shaders/resources/shaders/glsl100/hybrid_raster.fs@resources/shaders/glsl100/hybrid_raster.fs
|
||||
|
||||
# Compile AUDIO examples
|
||||
audio/audio_module_playing: audio/audio_module_playing.c
|
||||
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
|
||||
|
|
@ -1006,14 +1037,14 @@ audio/audio_sound_loading: audio/audio_sound_loading.c
|
|||
--preload-file audio/resources/sound.wav@resources/sound.wav \
|
||||
--preload-file audio/resources/target.ogg@resources/target.ogg
|
||||
|
||||
audio/audio_multichannel_sound: audio/audio_multichannel_sound.c
|
||||
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
|
||||
--preload-file audio/resources/sound.wav@resources/sound.wav \
|
||||
--preload-file audio/resources/target.ogg@resources/target.ogg
|
||||
|
||||
audio/audio_stream_effects: audio/audio_stream_effects.c
|
||||
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s TOTAL_MEMORY=67108864 \
|
||||
--preload-file audio/resources/country.mp3@resources/country.mp3
|
||||
|
||||
audio/audio_mixed_processor: audio/audio_mixed_processor.c
|
||||
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s TOTAL_MEMORY=67108864 \
|
||||
--preload-file audio/resources/country.mp3@resources/country.mp3 \
|
||||
--preload-file audio/resources/coin.wav@resources/coin.wav
|
||||
|
||||
# Clean everything
|
||||
clean:
|
||||
|
|
|
|||
|
|
@ -186,7 +186,6 @@ Examples using raylib audio functionality, including sound/music loading and pla
|
|||
| 118 | [audio_music_stream](audio/audio_music_stream.c) | <img src="audio/audio_music_stream.png" alt="audio_music_stream" width="80"> | ⭐️☆☆☆ | 1.3 | **4.2** | [Ray](https://github.com/raysan5) |
|
||||
| 119 | [audio_raw_stream](audio/audio_raw_stream.c) | <img src="audio/audio_raw_stream.png" alt="audio_raw_stream" width="80"> | ⭐️⭐️⭐️☆ | 1.6 | **4.2** | [Ray](https://github.com/raysan5) |
|
||||
| 120 | [audio_sound_loading](audio/audio_sound_loading.c) | <img src="audio/audio_sound_loading.png" alt="audio_sound_loading" width="80"> | ⭐️☆☆☆ | 1.1 | 3.5 | [Ray](https://github.com/raysan5) |
|
||||
| 121 | [audio_multichannel_sound](audio/audio_multichannel_sound.c) | <img src="audio/audio_multichannel_sound.png" alt="audio_multichannel_sound" width="80"> | ⭐️☆☆☆ | 3.0 | 3.5 | [Chris Camacho](https://github.com/codifies) |
|
||||
|
||||
### category: others
|
||||
|
||||
|
|
|
|||
|
|
@ -1,78 +0,0 @@
|
|||
/*******************************************************************************************
|
||||
*
|
||||
* raylib [audio] example - Multichannel sound playing
|
||||
*
|
||||
* Example originally created with raylib 3.0, last time updated with raylib 3.5
|
||||
*
|
||||
* Example contributed by Chris Camacho (@chriscamacho) and reviewed by Ramon Santamaria (@raysan5)
|
||||
*
|
||||
* Example licensed under an unmodified zlib/libpng license, which is an OSI-certified,
|
||||
* BSD-like license that allows static linking with closed source software
|
||||
*
|
||||
* Copyright (c) 2019-2023 Chris Camacho (@chriscamacho) and Ramon Santamaria (@raysan5)
|
||||
*
|
||||
********************************************************************************************/
|
||||
|
||||
#include "raylib.h"
|
||||
|
||||
//------------------------------------------------------------------------------------
|
||||
// Program main entry point
|
||||
//------------------------------------------------------------------------------------
|
||||
int main(void)
|
||||
{
|
||||
// Initialization
|
||||
//--------------------------------------------------------------------------------------
|
||||
const int screenWidth = 800;
|
||||
const int screenHeight = 450;
|
||||
|
||||
InitWindow(screenWidth, screenHeight, "raylib [audio] example - Multichannel sound playing");
|
||||
|
||||
InitAudioDevice(); // Initialize audio device
|
||||
|
||||
Sound fxWav = LoadSound("resources/sound.wav"); // Load WAV audio file
|
||||
Sound fxOgg = LoadSound("resources/target.ogg"); // Load OGG audio file
|
||||
|
||||
SetSoundVolume(fxWav, 0.2f);
|
||||
|
||||
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
|
||||
//--------------------------------------------------------------------------------------
|
||||
|
||||
// Main game loop
|
||||
while (!WindowShouldClose()) // Detect window close button or ESC key
|
||||
{
|
||||
// Update
|
||||
//----------------------------------------------------------------------------------
|
||||
if (IsKeyPressed(KEY_ENTER)) PlaySoundMulti(fxWav); // Play a new wav sound instance
|
||||
if (IsKeyPressed(KEY_SPACE)) PlaySoundMulti(fxOgg); // Play a new ogg sound instance
|
||||
//----------------------------------------------------------------------------------
|
||||
|
||||
// Draw
|
||||
//----------------------------------------------------------------------------------
|
||||
BeginDrawing();
|
||||
|
||||
ClearBackground(RAYWHITE);
|
||||
|
||||
DrawText("MULTICHANNEL SOUND PLAYING", 20, 20, 20, GRAY);
|
||||
DrawText("Press SPACE to play new ogg instance!", 200, 120, 20, LIGHTGRAY);
|
||||
DrawText("Press ENTER to play new wav instance!", 200, 180, 20, LIGHTGRAY);
|
||||
|
||||
DrawText(TextFormat("CONCURRENT SOUNDS PLAYING: %02i", GetSoundsPlaying()), 220, 280, 20, RED);
|
||||
|
||||
EndDrawing();
|
||||
//----------------------------------------------------------------------------------
|
||||
}
|
||||
|
||||
// De-Initialization
|
||||
//--------------------------------------------------------------------------------------
|
||||
StopSoundMulti(); // We must stop the buffer pool before unloading
|
||||
|
||||
UnloadSound(fxWav); // Unload sound data
|
||||
UnloadSound(fxOgg); // Unload sound data
|
||||
|
||||
CloseAudioDevice(); // Close audio device
|
||||
|
||||
CloseWindow(); // Close window and OpenGL context
|
||||
//--------------------------------------------------------------------------------------
|
||||
|
||||
return 0;
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 16 KiB |
|
|
@ -113,7 +113,30 @@ int main(void)
|
|||
}
|
||||
}
|
||||
|
||||
// Update camera computes movement internally depending on the camera mode
|
||||
// Some default standard keyboard/mouse inputs are hardcoded to simplify use
|
||||
// For advance camera controls, it's reecommended to compute camera movement manually
|
||||
UpdateCamera(&camera, cameraMode); // Update camera
|
||||
|
||||
/*
|
||||
// Camera PRO usage example (EXPERIMENTAL)
|
||||
// This new camera function allows custom movement/rotation values to be directly provided
|
||||
// as input parameters, with this approach, rcamera module is internally independent of raylib inputs
|
||||
UpdateCameraPro(&camera,
|
||||
(Vector3){
|
||||
(IsKeyDown(KEY_W) || IsKeyDown(KEY_UP))*0.1f - // Move forward-backward
|
||||
(IsKeyDown(KEY_S) || IsKeyDown(KEY_DOWN))*0.1f,
|
||||
(IsKeyDown(KEY_D) || IsKeyDown(KEY_RIGHT))*0.1f - // Move right-left
|
||||
(IsKeyDown(KEY_A) || IsKeyDown(KEY_LEFT))*0.1f,
|
||||
0.0f // Move up-down
|
||||
},
|
||||
(Vector3){
|
||||
GetMouseDelta().x*0.05f, // Rotation: yaw
|
||||
GetMouseDelta().y*0.05f, // Rotation: pitch
|
||||
0.0f // Rotation: roll
|
||||
},
|
||||
GetMouseWheelMove()*2.0f); // Move to target (zoom)
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
|
||||
// Draw
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
|
||||
#include "raylib.h"
|
||||
|
||||
// WARNING: This example does not build on Windows with MSVC compiler
|
||||
#include "pthread.h" // POSIX style threads management
|
||||
|
||||
#include <stdatomic.h> // C11 atomic data types
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
*
|
||||
* raylib [models] example - Load models M3D
|
||||
*
|
||||
* Example originally created with raylib 4.5-dev, last time updated with raylib 4.5-dev
|
||||
* Example originally created with raylib 4.5, last time updated with raylib 4.5
|
||||
*
|
||||
* Example contributed by bzt (@bztsrc) and reviewed by Ramon Santamaria (@raysan5)
|
||||
*
|
||||
|
|
@ -41,7 +41,7 @@ int main(void)
|
|||
|
||||
Vector3 position = { 0.0f, 0.0f, 0.0f }; // Set model position
|
||||
|
||||
char modelFileName[128] = "resources/models/m3d/CesiumMan.m3d";
|
||||
char modelFileName[128] = "resources/models/m3d/cesium_man.m3d";
|
||||
bool drawMesh = 1;
|
||||
bool drawSkeleton = 1;
|
||||
bool animPlaying = false; // Store anim state, what to draw
|
||||
|
|
|
|||
BIN
examples/models/resources/models/m3d/cesium_man.m3d
Normal file
BIN
examples/models/resources/models/m3d/cesium_man.m3d
Normal file
Binary file not shown.
|
|
@ -1,15 +1,20 @@
|
|||
#version 330
|
||||
|
||||
// Input vertex attributes (from vertex shader)
|
||||
in vec2 fragTexCoord;
|
||||
in vec4 fragColor;
|
||||
|
||||
// Input uniform values
|
||||
uniform sampler2D texture0;
|
||||
uniform vec4 colDiffuse;
|
||||
|
||||
// Output fragment color
|
||||
out vec4 finalColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec4 texelColor = texture2D(texture0, fragTexCoord);
|
||||
vec4 texelColor = texture(texture0, fragTexCoord);
|
||||
|
||||
gl_FragColor = texelColor*colDiffuse*fragColor;
|
||||
gl_FragDepth = 1.0 - gl_FragCoord.z;
|
||||
finalColor = texelColor*colDiffuse*fragColor;
|
||||
gl_FragDepth = 1.0 - finalColor.z;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
*
|
||||
* raylib [textures] example - Draw a texture along a segmented curve
|
||||
*
|
||||
* Example originally created with raylib 4.5-dev
|
||||
* Example originally created with raylib 4.5, last time updated with raylib 4.5
|
||||
*
|
||||
* Example contributed by Jeffery Myers and reviewed by Ramon Santamaria (@raysan5)
|
||||
*
|
||||
|
|
|
|||
|
|
@ -6,10 +6,28 @@
|
|||
"value": "",
|
||||
"description": ""
|
||||
},
|
||||
{
|
||||
"name": "RAYLIB_VERSION_MAJOR",
|
||||
"type": "INT",
|
||||
"value": 4,
|
||||
"description": ""
|
||||
},
|
||||
{
|
||||
"name": "RAYLIB_VERSION_MINOR",
|
||||
"type": "INT",
|
||||
"value": 5,
|
||||
"description": ""
|
||||
},
|
||||
{
|
||||
"name": "RAYLIB_VERSION_PATCH",
|
||||
"type": "INT",
|
||||
"value": 0,
|
||||
"description": ""
|
||||
},
|
||||
{
|
||||
"name": "RAYLIB_VERSION",
|
||||
"type": "STRING",
|
||||
"value": "4.5-dev",
|
||||
"value": "4.5",
|
||||
"description": ""
|
||||
},
|
||||
{
|
||||
|
|
@ -385,7 +403,7 @@
|
|||
},
|
||||
{
|
||||
"name": "Matrix",
|
||||
"description": "Matrix, 4x4 components, column major, OpenGL style, right handed",
|
||||
"description": "Matrix, 4x4 components, column major, OpenGL style, right-handed",
|
||||
"fields": [
|
||||
{
|
||||
"type": "float",
|
||||
|
|
@ -1045,12 +1063,12 @@
|
|||
{
|
||||
"type": "float",
|
||||
"name": "distance",
|
||||
"description": "Distance to nearest hit"
|
||||
"description": "Distance to the nearest hit"
|
||||
},
|
||||
{
|
||||
"type": "Vector3",
|
||||
"name": "point",
|
||||
"description": "Point of nearest hit"
|
||||
"description": "Point of the nearest hit"
|
||||
},
|
||||
{
|
||||
"type": "Vector3",
|
||||
|
|
@ -2112,7 +2130,7 @@
|
|||
{
|
||||
"name": "MOUSE_CURSOR_RESIZE_ALL",
|
||||
"value": 9,
|
||||
"description": "The omni-directional resize/move cursor shape"
|
||||
"description": "The omnidirectional resize/move cursor shape"
|
||||
},
|
||||
{
|
||||
"name": "MOUSE_CURSOR_NOT_ALLOWED",
|
||||
|
|
@ -2717,7 +2735,7 @@
|
|||
{
|
||||
"name": "CUBEMAP_LAYOUT_LINE_HORIZONTAL",
|
||||
"value": 2,
|
||||
"description": "Layout is defined by an horizontal line with faces"
|
||||
"description": "Layout is defined by a horizontal line with faces"
|
||||
},
|
||||
{
|
||||
"name": "CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR",
|
||||
|
|
@ -2732,7 +2750,7 @@
|
|||
{
|
||||
"name": "CUBEMAP_LAYOUT_PANORAMA",
|
||||
"value": 5,
|
||||
"description": "Layout is defined by a panorama image (equirectangular map)"
|
||||
"description": "Layout is defined by a panorama image (equirrectangular map)"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -2794,12 +2812,12 @@
|
|||
{
|
||||
"name": "BLEND_CUSTOM",
|
||||
"value": 6,
|
||||
"description": "Blend textures using custom src/dst factors (use rlSetBlendMode())"
|
||||
"description": "Blend textures using custom src/dst factors (use rlSetBlendFactors())"
|
||||
},
|
||||
{
|
||||
"name": "BLEND_CUSTOM_SEPARATE",
|
||||
"value": 7,
|
||||
"description": "Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendModeSeparate())"
|
||||
"description": "Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendFactorsSeparate())"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -3149,7 +3167,7 @@
|
|||
},
|
||||
{
|
||||
"name": "SetWindowIcon",
|
||||
"description": "Set icon for window (only PLATFORM_DESKTOP)",
|
||||
"description": "Set icon for window (single image, RGBA 32bit, only PLATFORM_DESKTOP)",
|
||||
"returnType": "void",
|
||||
"params": [
|
||||
{
|
||||
|
|
@ -3158,6 +3176,21 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SetWindowIcons",
|
||||
"description": "Set icon for window (multiple images, RGBA 32bit, only PLATFORM_DESKTOP)",
|
||||
"returnType": "void",
|
||||
"params": [
|
||||
{
|
||||
"type": "Image *",
|
||||
"name": "images"
|
||||
},
|
||||
{
|
||||
"type": "int",
|
||||
"name": "count"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SetWindowTitle",
|
||||
"description": "Set title for window (only PLATFORM_DESKTOP)",
|
||||
|
|
@ -3632,6 +3665,17 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "IsShaderReady",
|
||||
"description": "Check if a shader is ready",
|
||||
"returnType": "bool",
|
||||
"params": [
|
||||
{
|
||||
"type": "Shader",
|
||||
"name": "shader"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "GetShaderLocation",
|
||||
"description": "Get shader uniform location",
|
||||
|
|
@ -4124,7 +4168,7 @@
|
|||
"returnType": "bool",
|
||||
"params": [
|
||||
{
|
||||
"type": "const char *",
|
||||
"type": "const unsigned char *",
|
||||
"name": "data"
|
||||
},
|
||||
{
|
||||
|
|
@ -4863,12 +4907,12 @@
|
|||
"returnType": "float"
|
||||
},
|
||||
{
|
||||
"name": "SetCameraMode",
|
||||
"description": "Set camera mode (multiple camera modes available)",
|
||||
"name": "UpdateCamera",
|
||||
"description": "Update camera position for selected mode",
|
||||
"returnType": "void",
|
||||
"params": [
|
||||
{
|
||||
"type": "Camera",
|
||||
"type": "Camera *",
|
||||
"name": "camera"
|
||||
},
|
||||
{
|
||||
|
|
@ -4878,77 +4922,25 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"name": "UpdateCamera",
|
||||
"description": "Update camera position for selected mode",
|
||||
"name": "UpdateCameraPro",
|
||||
"description": "Update camera movement/rotation",
|
||||
"returnType": "void",
|
||||
"params": [
|
||||
{
|
||||
"type": "Camera *",
|
||||
"name": "camera"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SetCameraPanControl",
|
||||
"description": "Set camera pan key to combine with mouse movement (free camera)",
|
||||
"returnType": "void",
|
||||
"params": [
|
||||
{
|
||||
"type": "int",
|
||||
"name": "keyPan"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SetCameraAltControl",
|
||||
"description": "Set camera alt key to combine with mouse movement (free camera)",
|
||||
"returnType": "void",
|
||||
"params": [
|
||||
{
|
||||
"type": "int",
|
||||
"name": "keyAlt"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SetCameraSmoothZoomControl",
|
||||
"description": "Set camera smooth zoom key to combine with mouse (free camera)",
|
||||
"returnType": "void",
|
||||
"params": [
|
||||
{
|
||||
"type": "int",
|
||||
"name": "keySmoothZoom"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SetCameraMoveControls",
|
||||
"description": "Set camera move controls (1st person and 3rd person cameras)",
|
||||
"returnType": "void",
|
||||
"params": [
|
||||
{
|
||||
"type": "int",
|
||||
"name": "keyFront"
|
||||
},
|
||||
{
|
||||
"type": "int",
|
||||
"name": "keyBack"
|
||||
"type": "Vector3",
|
||||
"name": "movement"
|
||||
},
|
||||
{
|
||||
"type": "int",
|
||||
"name": "keyRight"
|
||||
"type": "Vector3",
|
||||
"name": "rotation"
|
||||
},
|
||||
{
|
||||
"type": "int",
|
||||
"name": "keyLeft"
|
||||
},
|
||||
{
|
||||
"type": "int",
|
||||
"name": "keyUp"
|
||||
},
|
||||
{
|
||||
"type": "int",
|
||||
"name": "keyDown"
|
||||
"type": "float",
|
||||
"name": "zoom"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -6172,6 +6164,17 @@
|
|||
"description": "Load image from screen buffer and (screenshot)",
|
||||
"returnType": "Image"
|
||||
},
|
||||
{
|
||||
"name": "IsImageReady",
|
||||
"description": "Check if an image is ready",
|
||||
"returnType": "bool",
|
||||
"params": [
|
||||
{
|
||||
"type": "Image",
|
||||
"name": "image"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "UnloadImage",
|
||||
"description": "Unload image from CPU memory (RAM)",
|
||||
|
|
@ -6401,6 +6404,25 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "GenImageText",
|
||||
"description": "Generate image: grayscale image from text data",
|
||||
"returnType": "Image",
|
||||
"params": [
|
||||
{
|
||||
"type": "int",
|
||||
"name": "width"
|
||||
},
|
||||
{
|
||||
"type": "int",
|
||||
"name": "height"
|
||||
},
|
||||
{
|
||||
"type": "const char *",
|
||||
"name": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "ImageCopy",
|
||||
"description": "Create an image duplicate (useful for transformations)",
|
||||
|
|
@ -6578,6 +6600,21 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "ImageBlurGaussian",
|
||||
"description": "Apply Gaussian blur using a box blur approximation",
|
||||
"returnType": "void",
|
||||
"params": [
|
||||
{
|
||||
"type": "Image *",
|
||||
"name": "image"
|
||||
},
|
||||
{
|
||||
"type": "int",
|
||||
"name": "blurSize"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "ImageResize",
|
||||
"description": "Resize image (Bicubic scaling algorithm)",
|
||||
|
|
@ -7353,6 +7390,17 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "IsTextureReady",
|
||||
"description": "Check if a texture is ready",
|
||||
"returnType": "bool",
|
||||
"params": [
|
||||
{
|
||||
"type": "Texture2D",
|
||||
"name": "texture"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "UnloadTexture",
|
||||
"description": "Unload texture from GPU memory (VRAM)",
|
||||
|
|
@ -7364,6 +7412,17 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "IsRenderTextureReady",
|
||||
"description": "Check if a render texture is ready",
|
||||
"returnType": "bool",
|
||||
"params": [
|
||||
{
|
||||
"type": "RenderTexture2D",
|
||||
"name": "target"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "UnloadRenderTexture",
|
||||
"description": "Unload render texture from GPU memory (VRAM)",
|
||||
|
|
@ -7542,68 +7601,6 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "DrawTextureQuad",
|
||||
"description": "Draw texture quad with tiling and offset parameters",
|
||||
"returnType": "void",
|
||||
"params": [
|
||||
{
|
||||
"type": "Texture2D",
|
||||
"name": "texture"
|
||||
},
|
||||
{
|
||||
"type": "Vector2",
|
||||
"name": "tiling"
|
||||
},
|
||||
{
|
||||
"type": "Vector2",
|
||||
"name": "offset"
|
||||
},
|
||||
{
|
||||
"type": "Rectangle",
|
||||
"name": "quad"
|
||||
},
|
||||
{
|
||||
"type": "Color",
|
||||
"name": "tint"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "DrawTextureTiled",
|
||||
"description": "Draw part of a texture (defined by a rectangle) with rotation and scale tiled into dest.",
|
||||
"returnType": "void",
|
||||
"params": [
|
||||
{
|
||||
"type": "Texture2D",
|
||||
"name": "texture"
|
||||
},
|
||||
{
|
||||
"type": "Rectangle",
|
||||
"name": "source"
|
||||
},
|
||||
{
|
||||
"type": "Rectangle",
|
||||
"name": "dest"
|
||||
},
|
||||
{
|
||||
"type": "Vector2",
|
||||
"name": "origin"
|
||||
},
|
||||
{
|
||||
"type": "float",
|
||||
"name": "rotation"
|
||||
},
|
||||
{
|
||||
"type": "float",
|
||||
"name": "scale"
|
||||
},
|
||||
{
|
||||
"type": "Color",
|
||||
"name": "tint"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "DrawTexturePro",
|
||||
"description": "Draw a part of a texture defined by a rectangle with 'pro' parameters",
|
||||
|
|
@ -7666,37 +7663,6 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "DrawTexturePoly",
|
||||
"description": "Draw a textured polygon",
|
||||
"returnType": "void",
|
||||
"params": [
|
||||
{
|
||||
"type": "Texture2D",
|
||||
"name": "texture"
|
||||
},
|
||||
{
|
||||
"type": "Vector2",
|
||||
"name": "center"
|
||||
},
|
||||
{
|
||||
"type": "Vector2 *",
|
||||
"name": "points"
|
||||
},
|
||||
{
|
||||
"type": "Vector2 *",
|
||||
"name": "texcoords"
|
||||
},
|
||||
{
|
||||
"type": "int",
|
||||
"name": "pointCount"
|
||||
},
|
||||
{
|
||||
"type": "Color",
|
||||
"name": "tint"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Fade",
|
||||
"description": "Get color with alpha applied, alpha goes from 0.0f to 1.0f",
|
||||
|
|
@ -7775,6 +7741,51 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "ColorTint",
|
||||
"description": "Get color multiplied with another color",
|
||||
"returnType": "Color",
|
||||
"params": [
|
||||
{
|
||||
"type": "Color",
|
||||
"name": "color"
|
||||
},
|
||||
{
|
||||
"type": "Color",
|
||||
"name": "tint"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "ColorBrightness",
|
||||
"description": "Get color with brightness correction, brightness factor goes from -1.0f to 1.0f",
|
||||
"returnType": "Color",
|
||||
"params": [
|
||||
{
|
||||
"type": "Color",
|
||||
"name": "color"
|
||||
},
|
||||
{
|
||||
"type": "float",
|
||||
"name": "factor"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "ColorContrast",
|
||||
"description": "Get color with contrast correction, contrast values between -1.0f and 1.0f",
|
||||
"returnType": "Color",
|
||||
"params": [
|
||||
{
|
||||
"type": "Color",
|
||||
"name": "color"
|
||||
},
|
||||
{
|
||||
"type": "float",
|
||||
"name": "contrast"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "ColorAlpha",
|
||||
"description": "Get color with alpha applied, alpha goes from 0.0f to 1.0f",
|
||||
|
|
@ -7962,6 +7973,17 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "IsFontReady",
|
||||
"description": "Check if a font is ready",
|
||||
"returnType": "bool",
|
||||
"params": [
|
||||
{
|
||||
"type": "Font",
|
||||
"name": "font"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "LoadFontData",
|
||||
"description": "Load font data for further use",
|
||||
|
|
@ -8869,72 +8891,6 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "DrawCubeTexture",
|
||||
"description": "Draw cube textured",
|
||||
"returnType": "void",
|
||||
"params": [
|
||||
{
|
||||
"type": "Texture2D",
|
||||
"name": "texture"
|
||||
},
|
||||
{
|
||||
"type": "Vector3",
|
||||
"name": "position"
|
||||
},
|
||||
{
|
||||
"type": "float",
|
||||
"name": "width"
|
||||
},
|
||||
{
|
||||
"type": "float",
|
||||
"name": "height"
|
||||
},
|
||||
{
|
||||
"type": "float",
|
||||
"name": "length"
|
||||
},
|
||||
{
|
||||
"type": "Color",
|
||||
"name": "color"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "DrawCubeTextureRec",
|
||||
"description": "Draw cube with a region of a texture",
|
||||
"returnType": "void",
|
||||
"params": [
|
||||
{
|
||||
"type": "Texture2D",
|
||||
"name": "texture"
|
||||
},
|
||||
{
|
||||
"type": "Rectangle",
|
||||
"name": "source"
|
||||
},
|
||||
{
|
||||
"type": "Vector3",
|
||||
"name": "position"
|
||||
},
|
||||
{
|
||||
"type": "float",
|
||||
"name": "width"
|
||||
},
|
||||
{
|
||||
"type": "float",
|
||||
"name": "height"
|
||||
},
|
||||
{
|
||||
"type": "float",
|
||||
"name": "length"
|
||||
},
|
||||
{
|
||||
"type": "Color",
|
||||
"name": "color"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "DrawSphere",
|
||||
"description": "Draw sphere",
|
||||
|
|
@ -9132,6 +9088,68 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "DrawCapsule",
|
||||
"description": "Draw a capsule with the center of its sphere caps at startPos and endPos",
|
||||
"returnType": "void",
|
||||
"params": [
|
||||
{
|
||||
"type": "Vector3",
|
||||
"name": "startPos"
|
||||
},
|
||||
{
|
||||
"type": "Vector3",
|
||||
"name": "endPos"
|
||||
},
|
||||
{
|
||||
"type": "float",
|
||||
"name": "radius"
|
||||
},
|
||||
{
|
||||
"type": "int",
|
||||
"name": "slices"
|
||||
},
|
||||
{
|
||||
"type": "int",
|
||||
"name": "rings"
|
||||
},
|
||||
{
|
||||
"type": "Color",
|
||||
"name": "color"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "DrawCapsuleWires",
|
||||
"description": "Draw capsule wireframe with the center of its sphere caps at startPos and endPos",
|
||||
"returnType": "void",
|
||||
"params": [
|
||||
{
|
||||
"type": "Vector3",
|
||||
"name": "startPos"
|
||||
},
|
||||
{
|
||||
"type": "Vector3",
|
||||
"name": "endPos"
|
||||
},
|
||||
{
|
||||
"type": "float",
|
||||
"name": "radius"
|
||||
},
|
||||
{
|
||||
"type": "int",
|
||||
"name": "slices"
|
||||
},
|
||||
{
|
||||
"type": "int",
|
||||
"name": "rings"
|
||||
},
|
||||
{
|
||||
"type": "Color",
|
||||
"name": "color"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "DrawPlane",
|
||||
"description": "Draw a plane XZ",
|
||||
|
|
@ -9204,9 +9222,9 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"name": "UnloadModel",
|
||||
"description": "Unload model (including meshes) from memory (RAM and/or VRAM)",
|
||||
"returnType": "void",
|
||||
"name": "IsModelReady",
|
||||
"description": "Check if a model is ready",
|
||||
"returnType": "bool",
|
||||
"params": [
|
||||
{
|
||||
"type": "Model",
|
||||
|
|
@ -9215,8 +9233,8 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"name": "UnloadModelKeepMeshes",
|
||||
"description": "Unload model (but not meshes) from memory (RAM and/or VRAM)",
|
||||
"name": "UnloadModel",
|
||||
"description": "Unload model (including meshes) from memory (RAM and/or VRAM)",
|
||||
"returnType": "void",
|
||||
"params": [
|
||||
{
|
||||
|
|
@ -9821,6 +9839,17 @@
|
|||
"description": "Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)",
|
||||
"returnType": "Material"
|
||||
},
|
||||
{
|
||||
"name": "IsMaterialReady",
|
||||
"description": "Check if a material is ready",
|
||||
"returnType": "bool",
|
||||
"params": [
|
||||
{
|
||||
"type": "Material",
|
||||
"name": "material"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "UnloadMaterial",
|
||||
"description": "Unload material from GPU memory (VRAM)",
|
||||
|
|
@ -10161,6 +10190,17 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "IsWaveReady",
|
||||
"description": "Checks if wave data is ready",
|
||||
"returnType": "bool",
|
||||
"params": [
|
||||
{
|
||||
"type": "Wave",
|
||||
"name": "wave"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "LoadSound",
|
||||
"description": "Load sound from file",
|
||||
|
|
@ -10183,6 +10223,17 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "IsSoundReady",
|
||||
"description": "Checks if a sound is ready",
|
||||
"returnType": "bool",
|
||||
"params": [
|
||||
{
|
||||
"type": "Sound",
|
||||
"name": "sound"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "UpdateSound",
|
||||
"description": "Update sound buffer with new data",
|
||||
|
|
@ -10298,27 +10349,6 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "PlaySoundMulti",
|
||||
"description": "Play a sound (using multichannel buffer pool)",
|
||||
"returnType": "void",
|
||||
"params": [
|
||||
{
|
||||
"type": "Sound",
|
||||
"name": "sound"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "StopSoundMulti",
|
||||
"description": "Stop any sound playing (using multichannel buffer pool)",
|
||||
"returnType": "void"
|
||||
},
|
||||
{
|
||||
"name": "GetSoundsPlaying",
|
||||
"description": "Get number of sounds playing in the multichannel",
|
||||
"returnType": "int"
|
||||
},
|
||||
{
|
||||
"name": "IsSoundPlaying",
|
||||
"description": "Check if a sound is currently playing",
|
||||
|
|
@ -10480,6 +10510,17 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "IsMusicReady",
|
||||
"description": "Checks if a music stream is ready",
|
||||
"returnType": "bool",
|
||||
"params": [
|
||||
{
|
||||
"type": "Music",
|
||||
"name": "music"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "UnloadMusicStream",
|
||||
"description": "Unload music stream",
|
||||
|
|
@ -10658,6 +10699,17 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "IsAudioStreamReady",
|
||||
"description": "Checks if an audio stream is ready",
|
||||
"returnType": "bool",
|
||||
"params": [
|
||||
{
|
||||
"type": "AudioStream",
|
||||
"name": "stream"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "UnloadAudioStream",
|
||||
"description": "Unload audio stream and free memory",
|
||||
|
|
@ -10854,6 +10906,28 @@
|
|||
"name": "processor"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "AttachAudioMixedProcessor",
|
||||
"description": "Attach audio stream processor to the entire audio pipeline",
|
||||
"returnType": "void",
|
||||
"params": [
|
||||
{
|
||||
"type": "AudioCallback",
|
||||
"name": "processor"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "DetachAudioMixedProcessor",
|
||||
"description": "Detach audio stream processor from the entire audio pipeline",
|
||||
"returnType": "void",
|
||||
"params": [
|
||||
{
|
||||
"type": "AudioCallback",
|
||||
"name": "processor"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,10 +6,28 @@ return {
|
|||
value = "",
|
||||
description = ""
|
||||
},
|
||||
{
|
||||
name = "RAYLIB_VERSION_MAJOR",
|
||||
type = "INT",
|
||||
value = 4,
|
||||
description = ""
|
||||
},
|
||||
{
|
||||
name = "RAYLIB_VERSION_MINOR",
|
||||
type = "INT",
|
||||
value = 5,
|
||||
description = ""
|
||||
},
|
||||
{
|
||||
name = "RAYLIB_VERSION_PATCH",
|
||||
type = "INT",
|
||||
value = 0,
|
||||
description = ""
|
||||
},
|
||||
{
|
||||
name = "RAYLIB_VERSION",
|
||||
type = "STRING",
|
||||
value = "4.5-dev",
|
||||
value = "4.5",
|
||||
description = ""
|
||||
},
|
||||
{
|
||||
|
|
@ -385,7 +403,7 @@ return {
|
|||
},
|
||||
{
|
||||
name = "Matrix",
|
||||
description = "Matrix, 4x4 components, column major, OpenGL style, right handed",
|
||||
description = "Matrix, 4x4 components, column major, OpenGL style, right-handed",
|
||||
fields = {
|
||||
{
|
||||
type = "float",
|
||||
|
|
@ -1045,12 +1063,12 @@ return {
|
|||
{
|
||||
type = "float",
|
||||
name = "distance",
|
||||
description = "Distance to nearest hit"
|
||||
description = "Distance to the nearest hit"
|
||||
},
|
||||
{
|
||||
type = "Vector3",
|
||||
name = "point",
|
||||
description = "Point of nearest hit"
|
||||
description = "Point of the nearest hit"
|
||||
},
|
||||
{
|
||||
type = "Vector3",
|
||||
|
|
@ -2112,7 +2130,7 @@ return {
|
|||
{
|
||||
name = "MOUSE_CURSOR_RESIZE_ALL",
|
||||
value = 9,
|
||||
description = "The omni-directional resize/move cursor shape"
|
||||
description = "The omnidirectional resize/move cursor shape"
|
||||
},
|
||||
{
|
||||
name = "MOUSE_CURSOR_NOT_ALLOWED",
|
||||
|
|
@ -2717,7 +2735,7 @@ return {
|
|||
{
|
||||
name = "CUBEMAP_LAYOUT_LINE_HORIZONTAL",
|
||||
value = 2,
|
||||
description = "Layout is defined by an horizontal line with faces"
|
||||
description = "Layout is defined by a horizontal line with faces"
|
||||
},
|
||||
{
|
||||
name = "CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR",
|
||||
|
|
@ -2732,7 +2750,7 @@ return {
|
|||
{
|
||||
name = "CUBEMAP_LAYOUT_PANORAMA",
|
||||
value = 5,
|
||||
description = "Layout is defined by a panorama image (equirectangular map)"
|
||||
description = "Layout is defined by a panorama image (equirrectangular map)"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -2794,12 +2812,12 @@ return {
|
|||
{
|
||||
name = "BLEND_CUSTOM",
|
||||
value = 6,
|
||||
description = "Blend textures using custom src/dst factors (use rlSetBlendMode())"
|
||||
description = "Blend textures using custom src/dst factors (use rlSetBlendFactors())"
|
||||
},
|
||||
{
|
||||
name = "BLEND_CUSTOM_SEPARATE",
|
||||
value = 7,
|
||||
description = "Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendModeSeparate())"
|
||||
description = "Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendFactorsSeparate())"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -3092,12 +3110,21 @@ return {
|
|||
},
|
||||
{
|
||||
name = "SetWindowIcon",
|
||||
description = "Set icon for window (only PLATFORM_DESKTOP)",
|
||||
description = "Set icon for window (single image, RGBA 32bit, only PLATFORM_DESKTOP)",
|
||||
returnType = "void",
|
||||
params = {
|
||||
{type = "Image", name = "image"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "SetWindowIcons",
|
||||
description = "Set icon for window (multiple images, RGBA 32bit, only PLATFORM_DESKTOP)",
|
||||
returnType = "void",
|
||||
params = {
|
||||
{type = "Image *", name = "images"},
|
||||
{type = "int", name = "count"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "SetWindowTitle",
|
||||
description = "Set title for window (only PLATFORM_DESKTOP)",
|
||||
|
|
@ -3467,6 +3494,14 @@ return {
|
|||
{type = "const char *", name = "fsCode"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "IsShaderReady",
|
||||
description = "Check if a shader is ready",
|
||||
returnType = "bool",
|
||||
params = {
|
||||
{type = "Shader", name = "shader"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "GetShaderLocation",
|
||||
description = "Get shader uniform location",
|
||||
|
|
@ -3778,7 +3813,7 @@ return {
|
|||
description = "Export data to code (.h), returns true on success",
|
||||
returnType = "bool",
|
||||
params = {
|
||||
{type = "const char *", name = "data"},
|
||||
{type = "const unsigned char *", name = "data"},
|
||||
{type = "unsigned int", name = "size"},
|
||||
{type = "const char *", name = "fileName"}
|
||||
}
|
||||
|
|
@ -4304,58 +4339,24 @@ return {
|
|||
description = "Get gesture pinch angle",
|
||||
returnType = "float"
|
||||
},
|
||||
{
|
||||
name = "SetCameraMode",
|
||||
description = "Set camera mode (multiple camera modes available)",
|
||||
returnType = "void",
|
||||
params = {
|
||||
{type = "Camera", name = "camera"},
|
||||
{type = "int", name = "mode"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "UpdateCamera",
|
||||
description = "Update camera position for selected mode",
|
||||
returnType = "void",
|
||||
params = {
|
||||
{type = "Camera *", name = "camera"}
|
||||
{type = "Camera *", name = "camera"},
|
||||
{type = "int", name = "mode"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "SetCameraPanControl",
|
||||
description = "Set camera pan key to combine with mouse movement (free camera)",
|
||||
name = "UpdateCameraPro",
|
||||
description = "Update camera movement/rotation",
|
||||
returnType = "void",
|
||||
params = {
|
||||
{type = "int", name = "keyPan"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "SetCameraAltControl",
|
||||
description = "Set camera alt key to combine with mouse movement (free camera)",
|
||||
returnType = "void",
|
||||
params = {
|
||||
{type = "int", name = "keyAlt"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "SetCameraSmoothZoomControl",
|
||||
description = "Set camera smooth zoom key to combine with mouse (free camera)",
|
||||
returnType = "void",
|
||||
params = {
|
||||
{type = "int", name = "keySmoothZoom"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "SetCameraMoveControls",
|
||||
description = "Set camera move controls (1st person and 3rd person cameras)",
|
||||
returnType = "void",
|
||||
params = {
|
||||
{type = "int", name = "keyFront"},
|
||||
{type = "int", name = "keyBack"},
|
||||
{type = "int", name = "keyRight"},
|
||||
{type = "int", name = "keyLeft"},
|
||||
{type = "int", name = "keyUp"},
|
||||
{type = "int", name = "keyDown"}
|
||||
{type = "Camera *", name = "camera"},
|
||||
{type = "Vector3", name = "movement"},
|
||||
{type = "Vector3", name = "rotation"},
|
||||
{type = "float", name = "zoom"}
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -4945,6 +4946,14 @@ return {
|
|||
description = "Load image from screen buffer and (screenshot)",
|
||||
returnType = "Image"
|
||||
},
|
||||
{
|
||||
name = "IsImageReady",
|
||||
description = "Check if an image is ready",
|
||||
returnType = "bool",
|
||||
params = {
|
||||
{type = "Image", name = "image"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "UnloadImage",
|
||||
description = "Unload image from CPU memory (RAM)",
|
||||
|
|
@ -5060,6 +5069,16 @@ return {
|
|||
{type = "int", name = "tileSize"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "GenImageText",
|
||||
description = "Generate image: grayscale image from text data",
|
||||
returnType = "Image",
|
||||
params = {
|
||||
{type = "int", name = "width"},
|
||||
{type = "int", name = "height"},
|
||||
{type = "const char *", name = "text"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "ImageCopy",
|
||||
description = "Create an image duplicate (useful for transformations)",
|
||||
|
|
@ -5162,6 +5181,15 @@ return {
|
|||
{type = "Image *", name = "image"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "ImageBlurGaussian",
|
||||
description = "Apply Gaussian blur using a box blur approximation",
|
||||
returnType = "void",
|
||||
params = {
|
||||
{type = "Image *", name = "image"},
|
||||
{type = "int", name = "blurSize"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "ImageResize",
|
||||
description = "Resize image (Bicubic scaling algorithm)",
|
||||
|
|
@ -5571,6 +5599,14 @@ return {
|
|||
{type = "int", name = "height"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "IsTextureReady",
|
||||
description = "Check if a texture is ready",
|
||||
returnType = "bool",
|
||||
params = {
|
||||
{type = "Texture2D", name = "texture"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "UnloadTexture",
|
||||
description = "Unload texture from GPU memory (VRAM)",
|
||||
|
|
@ -5579,6 +5615,14 @@ return {
|
|||
{type = "Texture2D", name = "texture"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "IsRenderTextureReady",
|
||||
description = "Check if a render texture is ready",
|
||||
returnType = "bool",
|
||||
params = {
|
||||
{type = "RenderTexture2D", name = "target"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "UnloadRenderTexture",
|
||||
description = "Unload render texture from GPU memory (VRAM)",
|
||||
|
|
@ -5676,32 +5720,6 @@ return {
|
|||
{type = "Color", name = "tint"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "DrawTextureQuad",
|
||||
description = "Draw texture quad with tiling and offset parameters",
|
||||
returnType = "void",
|
||||
params = {
|
||||
{type = "Texture2D", name = "texture"},
|
||||
{type = "Vector2", name = "tiling"},
|
||||
{type = "Vector2", name = "offset"},
|
||||
{type = "Rectangle", name = "quad"},
|
||||
{type = "Color", name = "tint"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "DrawTextureTiled",
|
||||
description = "Draw part of a texture (defined by a rectangle) with rotation and scale tiled into dest.",
|
||||
returnType = "void",
|
||||
params = {
|
||||
{type = "Texture2D", name = "texture"},
|
||||
{type = "Rectangle", name = "source"},
|
||||
{type = "Rectangle", name = "dest"},
|
||||
{type = "Vector2", name = "origin"},
|
||||
{type = "float", name = "rotation"},
|
||||
{type = "float", name = "scale"},
|
||||
{type = "Color", name = "tint"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "DrawTexturePro",
|
||||
description = "Draw a part of a texture defined by a rectangle with 'pro' parameters",
|
||||
|
|
@ -5728,19 +5746,6 @@ return {
|
|||
{type = "Color", name = "tint"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "DrawTexturePoly",
|
||||
description = "Draw a textured polygon",
|
||||
returnType = "void",
|
||||
params = {
|
||||
{type = "Texture2D", name = "texture"},
|
||||
{type = "Vector2", name = "center"},
|
||||
{type = "Vector2 *", name = "points"},
|
||||
{type = "Vector2 *", name = "texcoords"},
|
||||
{type = "int", name = "pointCount"},
|
||||
{type = "Color", name = "tint"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "Fade",
|
||||
description = "Get color with alpha applied, alpha goes from 0.0f to 1.0f",
|
||||
|
|
@ -5792,6 +5797,33 @@ return {
|
|||
{type = "float", name = "value"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "ColorTint",
|
||||
description = "Get color multiplied with another color",
|
||||
returnType = "Color",
|
||||
params = {
|
||||
{type = "Color", name = "color"},
|
||||
{type = "Color", name = "tint"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "ColorBrightness",
|
||||
description = "Get color with brightness correction, brightness factor goes from -1.0f to 1.0f",
|
||||
returnType = "Color",
|
||||
params = {
|
||||
{type = "Color", name = "color"},
|
||||
{type = "float", name = "factor"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "ColorContrast",
|
||||
description = "Get color with contrast correction, contrast values between -1.0f and 1.0f",
|
||||
returnType = "Color",
|
||||
params = {
|
||||
{type = "Color", name = "color"},
|
||||
{type = "float", name = "contrast"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "ColorAlpha",
|
||||
description = "Get color with alpha applied, alpha goes from 0.0f to 1.0f",
|
||||
|
|
@ -5895,6 +5927,14 @@ return {
|
|||
{type = "int", name = "glyphCount"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "IsFontReady",
|
||||
description = "Check if a font is ready",
|
||||
returnType = "bool",
|
||||
params = {
|
||||
{type = "Font", name = "font"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "LoadFontData",
|
||||
description = "Load font data for further use",
|
||||
|
|
@ -6379,33 +6419,6 @@ return {
|
|||
{type = "Color", name = "color"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "DrawCubeTexture",
|
||||
description = "Draw cube textured",
|
||||
returnType = "void",
|
||||
params = {
|
||||
{type = "Texture2D", name = "texture"},
|
||||
{type = "Vector3", name = "position"},
|
||||
{type = "float", name = "width"},
|
||||
{type = "float", name = "height"},
|
||||
{type = "float", name = "length"},
|
||||
{type = "Color", name = "color"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "DrawCubeTextureRec",
|
||||
description = "Draw cube with a region of a texture",
|
||||
returnType = "void",
|
||||
params = {
|
||||
{type = "Texture2D", name = "texture"},
|
||||
{type = "Rectangle", name = "source"},
|
||||
{type = "Vector3", name = "position"},
|
||||
{type = "float", name = "width"},
|
||||
{type = "float", name = "height"},
|
||||
{type = "float", name = "length"},
|
||||
{type = "Color", name = "color"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "DrawSphere",
|
||||
description = "Draw sphere",
|
||||
|
|
@ -6492,6 +6505,32 @@ return {
|
|||
{type = "Color", name = "color"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "DrawCapsule",
|
||||
description = "Draw a capsule with the center of its sphere caps at startPos and endPos",
|
||||
returnType = "void",
|
||||
params = {
|
||||
{type = "Vector3", name = "startPos"},
|
||||
{type = "Vector3", name = "endPos"},
|
||||
{type = "float", name = "radius"},
|
||||
{type = "int", name = "slices"},
|
||||
{type = "int", name = "rings"},
|
||||
{type = "Color", name = "color"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "DrawCapsuleWires",
|
||||
description = "Draw capsule wireframe with the center of its sphere caps at startPos and endPos",
|
||||
returnType = "void",
|
||||
params = {
|
||||
{type = "Vector3", name = "startPos"},
|
||||
{type = "Vector3", name = "endPos"},
|
||||
{type = "float", name = "radius"},
|
||||
{type = "int", name = "slices"},
|
||||
{type = "int", name = "rings"},
|
||||
{type = "Color", name = "color"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "DrawPlane",
|
||||
description = "Draw a plane XZ",
|
||||
|
|
@ -6537,16 +6576,16 @@ return {
|
|||
}
|
||||
},
|
||||
{
|
||||
name = "UnloadModel",
|
||||
description = "Unload model (including meshes) from memory (RAM and/or VRAM)",
|
||||
returnType = "void",
|
||||
name = "IsModelReady",
|
||||
description = "Check if a model is ready",
|
||||
returnType = "bool",
|
||||
params = {
|
||||
{type = "Model", name = "model"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "UnloadModelKeepMeshes",
|
||||
description = "Unload model (but not meshes) from memory (RAM and/or VRAM)",
|
||||
name = "UnloadModel",
|
||||
description = "Unload model (including meshes) from memory (RAM and/or VRAM)",
|
||||
returnType = "void",
|
||||
params = {
|
||||
{type = "Model", name = "model"}
|
||||
|
|
@ -6857,6 +6896,14 @@ return {
|
|||
description = "Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)",
|
||||
returnType = "Material"
|
||||
},
|
||||
{
|
||||
name = "IsMaterialReady",
|
||||
description = "Check if a material is ready",
|
||||
returnType = "bool",
|
||||
params = {
|
||||
{type = "Material", name = "material"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "UnloadMaterial",
|
||||
description = "Unload material from GPU memory (VRAM)",
|
||||
|
|
@ -7053,6 +7100,14 @@ return {
|
|||
{type = "int", name = "dataSize"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "IsWaveReady",
|
||||
description = "Checks if wave data is ready",
|
||||
returnType = "bool",
|
||||
params = {
|
||||
{type = "Wave", name = "wave"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "LoadSound",
|
||||
description = "Load sound from file",
|
||||
|
|
@ -7069,6 +7124,14 @@ return {
|
|||
{type = "Wave", name = "wave"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "IsSoundReady",
|
||||
description = "Checks if a sound is ready",
|
||||
returnType = "bool",
|
||||
params = {
|
||||
{type = "Sound", name = "sound"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "UpdateSound",
|
||||
description = "Update sound buffer with new data",
|
||||
|
|
@ -7145,24 +7208,6 @@ return {
|
|||
{type = "Sound", name = "sound"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "PlaySoundMulti",
|
||||
description = "Play a sound (using multichannel buffer pool)",
|
||||
returnType = "void",
|
||||
params = {
|
||||
{type = "Sound", name = "sound"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "StopSoundMulti",
|
||||
description = "Stop any sound playing (using multichannel buffer pool)",
|
||||
returnType = "void"
|
||||
},
|
||||
{
|
||||
name = "GetSoundsPlaying",
|
||||
description = "Get number of sounds playing in the multichannel",
|
||||
returnType = "int"
|
||||
},
|
||||
{
|
||||
name = "IsSoundPlaying",
|
||||
description = "Check if a sound is currently playing",
|
||||
|
|
@ -7261,6 +7306,14 @@ return {
|
|||
{type = "int", name = "dataSize"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "IsMusicReady",
|
||||
description = "Checks if a music stream is ready",
|
||||
returnType = "bool",
|
||||
params = {
|
||||
{type = "Music", name = "music"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "UnloadMusicStream",
|
||||
description = "Unload music stream",
|
||||
|
|
@ -7379,6 +7432,14 @@ return {
|
|||
{type = "unsigned int", name = "channels"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "IsAudioStreamReady",
|
||||
description = "Checks if an audio stream is ready",
|
||||
returnType = "bool",
|
||||
params = {
|
||||
{type = "AudioStream", name = "stream"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "UnloadAudioStream",
|
||||
description = "Unload audio stream and free memory",
|
||||
|
|
@ -7506,6 +7567,22 @@ return {
|
|||
{type = "AudioStream", name = "stream"},
|
||||
{type = "AudioCallback", name = "processor"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "AttachAudioMixedProcessor",
|
||||
description = "Attach audio stream processor to the entire audio pipeline",
|
||||
returnType = "void",
|
||||
params = {
|
||||
{type = "AudioCallback", name = "processor"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "DetachAudioMixedProcessor",
|
||||
description = "Detach audio stream processor from the entire audio pipeline",
|
||||
returnType = "void",
|
||||
params = {
|
||||
{type = "AudioCallback", name = "processor"}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue