summaryrefslogtreecommitdiffhomepage
path: root/examples
AgeCommit message (Collapse)Author
2021-03-14Improve gltf support (#1647)Hristo Stamenov
* Implement a load values from accessor function. Added some more value types for the different GLTF attributes. Fixed crash when loading animated triangle. * Split GLTF model loading into separate functions for readability. * Fixed the already working models that I broke when introducing GLTFReadValue. Improved the example for gltf models to be able to switch between a few models. * Removed license from screen. It is pu inside a license file anyway. * Small improvements on the naming of functions Removed (*model). and replaced it with model->
2021-03-14WARNING: VERY BREAKING CHANGE: Renamed some enum values for consistencyRay
Some enums values have been renamed to be more consistent and also provide a more detailed description: - ShaderLocationIndex: LOC_VERTEX_POSITION -> SHADER_SHADER_LOC_VERTEX_POSITION - ShaderUniformDataType: UNIFORM_VEC2 -> SHADER_UNIFORM_VEC2 - MaterialMapType: MAP_ALBEDO -> MATERIAL_MAP_ALBEDO - PixelFormat: UNCOMPRESSED_GRAYSCALE -> PIXELFORMAT_UNCOMPRESSED_GRAYSCALE
2021-03-12Renamed some functions to use latest raylib versionRay
2021-03-09Gltf model and animations exploring problems (#1635)Hristo Stamenov
* Added bone binding to whole mesh and not only set vertices. + Also added missed setting of the animation count. + Removed double ; on one line * Added more of the gltf sample models https://github.com/KhronosGroup/glTF-Sample-Models We need to make it working for all of them. * Binding to initial bind pose added. * Fix cube disappearing bug because lerpPercent could be Inf. * Fixed for rigged figure also
2021-03-08Update core_3d_picking.cRay
2021-03-04REVIEWED: Examples to new enum valuesRay
2021-03-03Update text_font_filters.cRay
2021-03-03WARNING: BREAKING: RENAMED enum valuesRay
RENAMED: CubemapLayoutType and NPatchType
2021-02-28Fixes gl state after HDR texture functions. (#1621)Jeffery Myers
Updates skybox demo to show how to do both HDR and non HDR skyboxes Co-authored-by: Jeffery Myers <[email protected]>
2021-02-21Update models_material_pbr.c #1571Ray
2021-02-20[Examples] Fix typecast warnings in examples. (#1601)Jeffery Myers
* Fixing typecast warnings generated by visual studio 2019 in examples. * Changes to fixes based on feedback Co-authored-by: Jeffery Myers <[email protected]>
2021-02-20Fixes to make rnet and it's examples build on Windows in visual studio 2019. ↵Jeffery Myers
(#1602) Mostly typecasts, and some int to unsigned short changes, and including the windsock 2 library in the examples. Co-authored-by: Jeffery Myers <[email protected]>
2021-02-20Code formatting tweaksRay
2021-02-20fixed the right and left button not working (#1595)Redcamellia
2021-02-18Fixed example doesn't show gamepad for Xbox 360 controllers with different ↵Rabia Alhaffar
drivers (#1597)
2021-02-15Fixed problem related to `IsKeyPressed` function! (#1589)Rabia Alhaffar
2021-02-09Review Makefile to support PLATFORM_RPI #1580raysan5
2021-02-09REDESIGNED: VS2019 build pathsraysan5
REMOVED: core_basic_window.cpp
2021-02-06REVIEWED: example: Replaced GetImageData()raysan5
2021-02-02Update loading of gltf animation. (#1561)hristo
This is to account for GLTF info being more like instructions on how to build your animation instead of verbose description of each pose.
2021-01-31out is a keyword in shaders and can't be used as a variable name. (#1558)Jeffery Myers
Co-authored-by: Jeffery Myers <[email protected]>
2021-01-31Update models_first_person_maze.craysan5
2021-01-28Gltf animation support (#1551)hristo
* Added example for gltf animation and split some functions for loading model animations into IQM and GLTF similar to how models are being loaded. * Removed wrongly duplicated function * Bone loading for gltf model (not working at this point) * Loading info about vertex to joint connection but animation is still not working * Skeleton and pose is correctly loaded. Need to communicate about interpolation in GLTF * The model almost looks like a real person on animation. * Fixed model loading with bones. Also updated license info on the model. * Cleaned up some code and updated examples. * Fix identation issues * Fix identation issues * Fix identation issues
2021-01-26Documentation cmake (#1549)hristo
* Documenting the compiler flags * Moved some android compiler flags and added documentation on them too. * Some more restructuring. Removed unnecessary comments that were self described by the code. Added some more explanations around certain parts of CMake and especially around compiler flags.
2021-01-25Replace tabs by 4 spacesraysan5
2021-01-20REVIEWED: physac module and examples #1525Ray
2021-01-13Big cmake changes (#1514)hristo
* Delete emscripten.cmake This file is not needed at this point. EMSDK provides a toolchain file that has a lot more things in it and is better supported. Project currently works fine with the documentation provided in Emscripten SDK on how to build projects. * First pass file separation. The main two files are cleaner now. Only important things can be seen. Major changes include: - raylib_static is now the alias instead of raylib - Repeating segments are removed and pulled into separate files into <root>/cmake - File is reordered to make more sense - Installs are better structured - Library is build into an output directory "raylib" instead of "src" - All public header files are now set as a public header file - Source files need to be listed (it is a bad practice to capture them using wildcards and file globs) - CMakeLists are better commented * Second pass on the example dirs. They are quite complex so I'm more hesitant to do major changes. Also it works pretty well. Noticed that I forgot one of the seperated files and added it into src/CMakeLists.txt. * Returned the header copy as it was convenient to have the public headers copied. * A better description to the variable RAYLIB_IS_MAIN Co-authored-by: Rob Loach <[email protected]> * Remove debug message Co-authored-by: Rob Loach <[email protected]> * Improvements based on review. * Simplify the install condition to not be platform specific as it was before. Co-authored-by: Alexander Neumann <[email protected]> * Remove some CMAKE variables as they don't affect the build in any way Co-authored-by: Alexander Neumann <[email protected]> Co-authored-by: Rob Loach <[email protected]> Co-authored-by: Alexander Neumann <[email protected]>
2021-01-02Update year to 2021raysan5
2020-12-30added missing constants (#1493)Artur Mustafin
Co-authored-by: funcelot <[email protected]>
2020-12-29Review rlights helper module #1489raysan5
2020-12-28Review comments formatingraysan5
2020-12-28providing and example on how to apply the screen scale (as done in the ↵Matheus Duarte
virtual mouse) to the real mouse, to work with raygui (#1481)
2020-12-26Fix use of GuiSliderBar in examples. (#1470)badlydrawnrod
2020-12-24Minor tweakraysan5
2020-12-24Replace TABS by 4 spacesraysan5
2020-12-24Update README.mdraysan5
2020-12-24Update README.mdraysan5
2020-12-24Updated several files while porting examples to webraysan5
2020-12-23Review example formatingraysan5
2020-12-23Review formattingraysan5
2020-12-23Remove dup exampleraysan5
2020-12-23Review Android Makefiles to required versionraysan5
2020-12-23Update Makefile(s)raysan5
2020-12-23Remove trailing spacesraysan5
2020-12-23Update raylib versionraysan5
2020-12-19Set version for raylib 3.5Ray
2020-12-18WARNING: GetKeyPressed() <-> GetCharPressed() #1336Ray
Previous GetKeyPressed() method was actually returning unicode codepoints equivalent values instead of the key-code of the pressed key. So, it has been replaced by GetCharPressed(), returning unicode codepoints and GetKeyPressed() now returns key-codes.
2020-12-18Support mouse input on example #1465Ray
2020-12-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-13Fixed #1455 (#1456)Alexander Buhl
* Fixed #1455 Fixed writing out of array bounds Adjusted FPS comment to match value Deleted unused function at the end, which has never been in use in the history of this file * Fixed #1455 Readded the function