summaryrefslogtreecommitdiffhomepage
path: root/examples/core
AgeCommit message (Collapse)Author
2024-06-24[Build] Fix warnings when building in VS 2022 (#4095)Jeffery Myers
* Update raylib_api.* by CI * Fix warnings when building examples in MSVC 2022 * fix auto-format that sneaked in there. --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-07The example always showed a xbox controller, never a ps3 controller (#4040)Konrad Gutvik Grande
2024-05-30Fix typos in markdowns and comments, Fix invalid links in HISTORY.md (#4017)vaezim
2024-05-15REVIEWED: 2d camera zoom, add alternative method #3977Ray
2024-05-15Use logarithmic scaling for a 2d example with zoom functionality (#3977)Mike Will
2024-03-07Screen space related functions consistency (#3830)aiafrasinei
* Screen/world-space related functions rename * Update raylib_api.* by CI --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-29Add an example that generates a random sequence. (#3846)Dalton Overmyer
2024-01-24Update core_2d_camera_platformer.cRay
2024-01-02Update copyright to 2024Ray
2023-12-23Review UnloadAutomationEventList (#3658)Antonis Geralis
* Review UnloadAutomationEventList * Update raylib.h * Update rcore.c * Update core_automation_events.c * Fix mistake
2023-12-13[rcore] Remove unused vScreenCenter (#3632)Matthew Oros
2023-11-10Update core_automation_events.cRay
2023-11-10Reviewing automation events on web...Ray
2023-11-10Changed keybinds for the automation example to avoid conflict with browser ↵Miloslav Milenkov
shortcuts (#3519)
2023-11-08Update core_2d_camera_platformer.cRay
2023-11-08Examples reviewsRay
2023-11-08Reviewed some examples and warningsRay
2023-11-08REVIEWED: Added new examples to VS2022 solutionRay
2023-11-06Fix warnings in visual studio (#3512)Jeffery Myers
2023-11-01REVIEWED: Potential code issues reported by CodeQL #3476Ray
2023-10-31Fix example core_3d_camera_free (#3488)ubkp
2023-10-27ADDED: `SetAutomationEventBaseFrame(int frame)`Ray
2023-10-27Update core_automation_events.cRay
2023-10-27Update core_automation_events.cRay
2023-10-26ADDED: Automation Events System, exposed to usersRay
Added new API to record and play events Added examples illustrating functionality
2023-10-14[core] Change axisCount to be an array (#3421)MichaelFiber
* Update `PLATFORM_DRM` implementation of `GetGamepadAxisCount` * Update * Update `PLATFORM_DRM` implementation of `GetGamepadName` * Add example to test gamepad info functions Fix typo * Update new gamepad info example * Move axis count update out of GamepadThread - race condition * Remove pointless if statement * Start integrating stuff from the mikesinput lib * Add more logging * Add semicolon * Add forgotten static * More fixes * Update axisCount to be array * More debugging * Add forgotten index to ready check * Add path logging * Missing parenthesis * Add missing slash * Fix axis count being reset to 0 * Fix missing paren * Test polling joystick button events * Major updates * Fix missing array index * Fix another missing array index * Update example * dumb logging * Wrong constant for ev.code handling * More dumb logging * Remove some logging * Add FPS to gamepad info example and try for max FPS * tweak * Revert example * Add fps back * Clean up after merge * Switch axisCount to be an array
2023-10-11Split drm update input (#3397)MichaelFiber
* Update `PLATFORM_DRM` implementation of `GetGamepadAxisCount` * Update * Update `PLATFORM_DRM` implementation of `GetGamepadName` * Add example to test gamepad info functions Fix typo * Update new gamepad info example * Move axis count update out of GamepadThread - race condition * Remove pointless if statement
2023-10-08WARNING: `rcore` module split per-platform **BIG CHANGE** (#3388)Ray
* Submodules (#3311) * Check in current state * Add submodules to Makefile and clean up some imports * Start moving InitGraphicsDeivce * Move android_main and CloseWindow() out of rcore * Move WindowShouldClose out of rcore * Move IsWindowHidden out of rcore * Move IsWindowMinimized out of rcore * Move IsWindowMaximized, IsWindowFocused and IsWindowResized out of rcore * Move ToggleFullscreen out of rcore * Move MaximizeWindow, MinimizeWindow and RestoreWindow out of rcore * Move 13 functions out of rcore: ToggleBorderlessWindowed SetWindowState ClearWindowState SetWindowIcon SetWindowIcons SetWindowTitle SetWindowPosition SetWindowMonitor SetWindowMinSize SetWindowMaxSize SetWindowSize SetWindowOpacity SetWindowFocused * Minor clean up, revert makefile change, include submodules directly in rcore * Fix makefile comment * Remove rcore.h from Makefile * Remove debug include * Move 18 functions from rcore to submodules GetWindowHandle GetMonitorCount GetCurrentMonitor GetMonitorPosition GetMonitorWidth GetMonitorHeight GetMonitorPhysicalHeight GetMonitorRefreshRate GetWindowPosition GetWindowScaleDPI GetMonitorName SetClipboardText GetClipboardText ShowCursor HideCursor EnableCursor DisableCursor GetTime * Move TakeScreenshot, OpenURL, GetGamepadName out of rcore into submodules * remove debugging #defines * Move GetMonitorPhysicalWidth from rcore to submodule * Move GetGamepadAxisCount from rcore * Move SetGamepadMappings out of rcore * Move GetMouseX, GetMouseY, GetMousePosition out of rcore * Move SetMousePosition out of rcore * Move GetMouseWheelMove out of rcore * Move the last functions out of rcore * Move shared function defs and some global var to rcore.h * Clean up rcore.c and rcore.h a little more * Remove unnecessary #define --------- Co-authored-by: MichaelFiber <[email protected]> * REVIEWED: `PLATFORM_DESKTOP` Windows building * Revert "REVIEWED: `PLATFORM_DESKTOP` Windows building" This reverts commit 71a12171f768eb25053ef908732b4ce8fdf802f7. * Reviewed Windows building * [split] Fix compilation for web (and desktop) (#3329) * Fix compilation for web * Remove EM_ASM_INT from core_input_gestures_web example * Fix raymath undefined symbols for desktop and web * Remove raylib_opengl_interop from examples Makefile * Revert previous commit (8651c78) * Fix TraceLog for web and desktop * [split] `rcore`, `rcore_web` and `rcore_desktop` changes (batch 2) (#3334) * Fix formatting * Reapply commit 9d230d7 (#3305) that was missing * Reapplies commits 719365f (#3309) and 8a1779b (#3312) that were missing * Reapply commit 5c9cc3f (#3323) that was missing * Reapply commit a2b3b1e that was missing * Revert commit cef25c6 to fix macro redefined warning * Move rcore.h #include to after config.h to fix macro redefinitions warnings * [split] `rcore`, `web`, `desktop`, `android` changes (batch 3) (#3338) * First pass to remove unneeded platform macros for web * Second pass to remove unneeded platform macros for web * Move GetTouchX, GetTouchY, GetTouchPosition from rcore to web, desktop, android * Move SetMouseCursor from rcore to android, desktop, web * [split] `rcore`, `web`, `desktop`, `android` changes (batch 4) (#3343) * Fix ToggleBorderlessWindowed duplicated glfwSetWindowSize calls * First pass to remove unneeded platform macros for android * Second pass to remove unneeded platform macros for android * Remove unneeded platform macros for desktop * Relocate GetGamepadName and update SetGamepadMappings on android, desktop, web * Add missing comment to web * [split] `rcore`, `web`, `desktop`, `android` changes (batch 5) (#3345) * Move SetExitKey from core to android, desktop, web * Move some callbacks from core to desktop and web * Relocate emscripten callbacks on web * Relocate android callbacks on android * Revert "Relocate android callbacks on android" This reverts commit bbdbecc01ea7f871dae56019724386e73611c69c. * Updates UnloadVrStereoConfig on rcore * Update SetClipboardText on android * Fix screenMin/Max default values for android * [split] `rcore`, `drm` changes (#3347) * Tweak makefiles for PLATFORM_DRM and move rcore_drm's dependencies to rcore.h * Move drm functions to rcore_drm.c * Fix a typo in rcore.c * Add SetExitKey to rcore_drm.c --------- Co-authored-by: MichaelFiber <[email protected]> * Fix compilation for android (#3360) * Fix android include (#3364) * Reviewed platform split #3313 - Added file headers info - Added TRACELOG message for unimplemented functions - Reviewed code formatting and organization - Several code tweaks * REVIEWED: `GetDirectoryPath()` --------- Co-authored-by: MichaelFiber <[email protected]> Co-authored-by: MichaelFiber <[email protected]> Co-authored-by: ubkp <[email protected]>
2023-09-08Reviewed examples for consistencyRay
2023-09-08examples: core: adds 2D camera two player split screen (#3298)Gabriel dos Santos Sanches
2023-09-07Remove PLATFORM_RPI (#3232)MichaelFiber
* Remove PLATFORM_RPI * remove build artifacts --------- Co-authored-by: MichaelFiber <[email protected]> Co-authored-by: Ray <[email protected]>
2023-08-30Remove a duplicated screenshot and add missing one (#3275)Asdqwe
2023-07-16Reviewed C compilation issues and formattingRay
2023-07-16[example] Core Input Gestures for Web (#3172)ubkp
* [example] Core Input Gestures for Web * Fix Doubletap for web * Changes TAP_TIMEOUT and rgGetCurrentTime to seconds
2023-06-14Better examples/core_input_gamepad (#3110)iacore
* examples/core_input_gamepad: Add visuals for LT,RT * examples/core_input_gamepad: arrows left/right to choose gamepad * Style change
2023-03-21add missing space in one of the cameraDescriptions (#2977)Mansour Quddus
2023-03-19Update core_loading_thread.cRay
2023-03-12REVIEWED: `UpdateCameraPro()` to use `Vector3`Ray
2023-03-12ADDED: `UpdateCameraPro()` -Experimental-Ray
REVIEWED: rcamera module formating REVIEWED: `core_3d_camera_example`
2023-03-06Remove trailing spacesRay
2023-03-03REVIEWED: `core_drop_files` #2943Ray
2023-02-14REVIEWED: Camera redesign PRRay
2023-02-14WIP rcamera redesign vector (#2563)Crydsch Cube
* core functionality CAMERA_FREE * fix example * add remaining camera modes * add view bobbing * view bobbing * catch curser in SetCameraMode * adjust examples * fix compilation on linux * fix example text_draw_3d * actually fix text_draw_3d * Updated camera API * Improve Vector3RotateByAxisAngle() function * remove camera.mode dependency from low-level functions * remove camera.mode from struct * fixes after rebase * adjust examples for new UpdateCamera function * adjust example models_loading_m3d --------- Co-authored-by: Ray <[email protected]>
2023-02-01Update core_input_gamepad.c (#2903)Antonis Geralis
2023-01-27Fix warnings and bad project settings for 4.5 release (#2894)Jeffery Myers
2023-01-14Fixed bug : touches become sticky (#2857)Ghost
Touches became sticky and didn't disappear after using more than 2 fingers, fixed by getting the touch count of how many fingers are on the screen, and only looping through the available/pressed down touch points instead of looping through the maximum touch points. Tested with more than 10 touch points, and with different MAX points value, working perfectly.
2023-01-02Use explicit atomics (#2849)Antonis Geralis
* Use explicit atomics * missed one * use relaced ordering
2023-01-01Update year to 2023Ray
2023-01-01Update year to 2023Ray
2022-12-31core_loading_thread example join thread on completion (#2845)Antonis Geralis
* core_loading_thread example join thread on completion * error checking