summaryrefslogtreecommitdiffhomepage
path: root/examples
AgeCommit message (Collapse)Author
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
2020-12-12Reviewed SetAudioBufferPitch() #1450Ray
2020-12-03Corrected minor windows flags issuesRay
2020-12-03Update core_basic_window.cRay
2020-12-03Update user nameRay
2020-12-03Update core_window_flags.cRay
2020-11-29Added GLFW_OPENGL_FORWARD_COMPAT for Apple Support (#1445)Seth Archambault
Without GLFW_OPENGL_FORWARD_COMPAT, running this as a standalone will yield the error: ``` NSGL: The targeted version of macOS only supports forward-compatible core profile contexts for OpenGL 3.2 and above ```
2020-11-29Added Apple Compilation Instructions (#1444)Seth Archambault
Stumbled on this example and I love this! Adding instructions that work for me on MacOS.. Note that glfw3 will need to be statically built locally and copied to this external/libs directory on mac. I can upload my static version, but it probably makes sense to do this only if there's some general naming convention for adding platform specific folders. Like "external_osx/lib" or "external/lib_osx". Then I'll drop my static libs in there.
2020-11-23REVIEWED: Window state flags -WIP-Ray
WARNING: Several functions removed, replaced by SetWindowState() / ClearWindowState() equivalents, only for advance users. ADDED: ClearWindowState() to reset window state REMOVED: HideWindow() / UnhideWindow() REMOVED: DecorateWindow() / UndecorateWindow()
2020-11-23REDESIGNED: Window state config #1367 -WIP-Ray
Some flags not working properly yet...
2020-11-01Review contributed examplesRay
2020-10-31Update shaders_multi_sample2d.cRay
2020-10-31REDESIGNED: Multiple sampler2D usage on batch systemRay
New implementation allow enabling additional textures per batch only.
2020-10-29Support multiple sample2D on batch drawing #1333Ray
2020-10-29Updated assetsRay
Reduce size and better license CC0
2020-10-28Simplified example and resources sizesRay
2020-10-21Reviewed PR #1407Ray
2020-10-21Added desktop cursor getter and setter functions (#1407)Chance Snow
* [core] Added desktop cursor getter and setter functions * Example: Set mouse cursor in text input box * Setup standard cursors _after_ GLFW window initialization * Remove old `int GetMouseWheelMove` declaration
2020-10-10Review undesired changesraysan5
2020-10-10Updated miniaudio #1402raysan5
2020-10-05Replace 0.f by 0.0fRay
2020-10-05Review "aggregate initializations" #1403Ray
2020-09-27[wip] rlDrawMeshInstanced (#1318)seanpringle
* rlDrawMeshInstanced first attempt * rlDrawMeshInstanced OpenGL 3.3 and VAO checks * rlDrawMeshInstanced GetShaderAttribLocation; comments * example instanced shader * RLGL_STANDALONE RAYMATH_STANDALONE Vector4 * apply suggested naming changes; add instanced mesh example * remove orphan variables
2020-09-27Platform DRM (#1388)kernelkinetic
* updated README.md * fixed CMakeLists.txt to allow building and debugging with Visual Studio Code and CMAKE Tools extension * added PLATFORM_DRM contains mouse pointer code from https://github.com/chriscamacho * removed redundant cleanup in InitGraphicsDevice * fixed DRM connector mode selection * added choosen DRM connected mode to log output * added respecting TargetFPS on DRM mode selection, default to 60 * added support for GetMonitorRefreshRate * changed SUPPORT_MOUSE_CURSOR_RPI to SUPPORT_MOUSE_CURSOR_NATIVE * changed avoidProgressive to allowInterlaced * cleanup, function extraction and improved mode selection * README reverted to original for PR * line endings fixed for core.c * removed old code * mouse pointer reverted to small square * replaced SetGraphicDeviceName() by DEFAULT_GRAPHIC_DEVICE_DRM Co-authored-by: kernelkinetic <[email protected]>
2020-09-23REVIEW: example: models_cubicmap_pbr #1384raysan5
It does not work properly yet but it compiles correctly
2020-09-23Update models_skybox.craysan5
2020-09-21REVIEWED: GenTextureCubemap()raysan5
Added some tracelog messages