Watch
2
0
Fork
You've already forked raylib-cs
0
Commit graph raylib-cs/Examples
Author SHA1 Message Date
tiger tiger tiger
c06874f14a
chore: run dotnet format scoped default (was previously scoped to just 'style') 2026-07-30 15:07:59 +02:00
tiger tiger tiger
8799edf99b
feat: replaced the J/K navigation with good old HTML buttons 2026-07-30 15:05:45 +02:00
tiger tiger tiger
6287298e57
chore: readme mentions the property to use nuget vs. the local project reference 2026-07-29 20:33:08 +02:00
tiger tiger tiger
77244ee648
feat: html harness focuses the example and allows quick navigation with J/K instead. 2026-07-29 20:23:36 +02:00
tiger tiger tiger
dfc34997bc
chore: clean up linter warnings 2026-07-29 19:58:47 +02:00
tiger tiger tiger
ec620e5d17
Merge branch 'main' into examples-backport 2026-07-20 21:53:07 +02:00
tiger tiger tiger
565f0912ea
WASM support, using official binaries (#341)
* chg: New build system that uses the officially distributed binaries, bumped version to 8.0.0, simplified git workflow, removed deprecated OpenGL 1.1 functionality.

* chg: Modernize CI workflow, enable SourceLink

- Bump workflow actions to latest majors (Node 24); drop deprecated softprops/action-gh-release@v1
- Trigger push builds on main instead of master
- Create local nuget feed dir before pack (fixes NU1301)
- Enable Microsoft.SourceLink.GitHub for debugging symbols (ref PR #340)

* fix: centralized version data in Directory.build.props, and fixed various interop details that had incorrect function signatures

* chore: updated readme

* fix: version the native extract marker and chain download via DependsOnTargets

The .extracted marker now includes the raylib package name, so bumping
TargetRaylibTag re-extracts the new archive instead of silently keeping
(and packing/copying) the previous version's files.

_PrepareNativeLibrary and _StageWasmNative now depend directly on
_DownloadAndExtractInternal instead of CallTarget-ing it; dependency
targets run in the same project instance, so the resolved properties
(RaylibPackageName etc.) propagate naturally.

* fix: let the binding build for browser-wasm on both net8.0 and net10.0

The net8-era wasm workload (Microsoft.NET.Runtime.WebAssembly.Sdk 8.0.x,
auto-imported for RID browser-wasm) treats every browser-wasm project as
a wasm app: it forces OutputType=Exe after project evaluation (CS5001
for a classlib) and hooks its app-bundle build after Build, which errors
because a library has no assemblies to bundle. Opt Raylib-cs out via
DisableAutoWasmBuildApp (props time, before the workload defaults its
trigger) and pin OutputType back to Library in Directory.Build.targets
(evaluated after the workload props, so the assignment wins). net10's
wasm SDK needs neither workaround.

* chore: readme updated

* chg: simplifying build logic - a simple line in the documentation should save us the code here

* fix: Wrong signature of FrameBufferComplete

* chore: readme update

* feat: samples default to local project reference, and can optionally use the nuget package

* fix: Examples.csproj runs the download task when building locally
2026-07-20 18:39:19 +01:00
tiger tiger tiger
732b7aa346 feat: backporting existing raylib-cs examples and new official raylib examples to WASM, adopting raylib's original code style 2026-07-17 08:22:54 +02:00
tiger tiger tiger
768fa93c41 feat: samples default to local project reference, and can optionally use the nuget package 2026-07-17 07:41:12 +02:00
tiger tiger tiger
4cfb534b74 fix: Wrong signature of FrameBufferComplete 2026-07-07 22:03:13 +02:00
Dennis Steffen
8daf812930
Raylib 6.0 bugs after tests (#338)
* Sync of all the shaders from upstream + LoadFontData did not match anymore with C and crashed on MacOS

* Updated JuliaSet demo. Did not work with the new shader version.

* Removed unused `pause` variable from JuliaSet example.

---------

Co-authored-by: Meatcorps <info@meatcorps.nl>
2026-05-24 14:43:17 +01:00
Dennis Steffen
21d83c60a9
Upgrade Raylib to 6.0 (#337)
* Updated target to Raylib 6 + synced invoke called with the changes in C. [WARNING: Breaking changes!]

* Added severial examples. Corrected towards the correct return type and add utilities to prevent working with pointers

* Additional resources from the Raylib repo.

* Fixed additional pinvokes to match with the new raylib bindings. [Warning breaking changes!]

* Fixing the QOL utils

* Fixing the Mesh struct

* Applying changes after review. Merged resources.LICENSE + raylib-cs.Native.csproj only targets dotnet8

* Updated README to reflect .NET 10 and Raylib 6 compatibility changes.

* Updated shader colors, adjusted car model scale, disabled HDR in SkyboxDemo, and fixed camera mode assignment. Removed unused `Capacity` field in FilePathList struct.

* Improved XML comments for consistency, fixed spacing and formatting across examples, added new resources to `resources.LICENSE`.

* Updated XML comment for `GetDirectoryFileCountEx` to clarify behavior and filtering options.

* Updated and clarified XML comments for methods and parameters, improved naming consistency, and refined shader-related functions. Renamed enums in `Shader.cs` for so it is inline with the upstream.

* Improved XML comments for clarity and consistency in `Model.cs` and `Mesh.cs`, updated method and variable names for better readability, and adjusted logic in span creation methods.

* Corrected XML comment capitalization in `Model.cs`.

---------

Co-authored-by: Meatcorps <info@meatcorps.nl>
2026-05-24 07:21:12 +01:00
1b890169c5 Update Examples to use separate processes 2026-05-19 20:43:12 +01:00
a657bb6367
Update tests and dll resolver (#336) 2026-05-17 19:24:49 +01:00
d49c0f8474
Update version and bindings (#332) 2026-04-15 20:53:16 +01:00
942306d916
Remove net6.0 support (#328) 2026-03-28 20:05:58 +00:00
Tiger Jove
ccb74af7cd chg: New build system that uses the officially distributed binaries, bumped version to 8.0.0, simplified git workflow, removed deprecated OpenGL 1.1 functionality. 2026-01-04 15:35:55 +01:00
Quentin
ca4e760d60
Update InputMultitouch.cs (#310)
Fix typo
2025-08-19 19:33:49 +01:00
Ben Parsons
f9787a8342
Enable Targeting .Net 8 (#297)
Fixes #295
2025-05-07 08:16:47 +01:00
JupiterRider
a3dfd57b5a
Update to raylib 5.5 (#279) 2024-12-21 15:00:13 +00:00
Nicky McDonald
377a32a9db
Safe UpdateMeshBuffer Method (#262) 2024-08-23 06:54:38 +00:00
d652823abb
Release 6.1.0 (#253) 2024-06-20 19:00:06 +01:00
6169614c11
Fix shader models (#252) 2024-06-18 21:50:29 +01:00
39b6302733
Add missing model resources (#251) 2024-06-18 21:25:29 +01:00
tiger tiger tiger
5cfb0f3b5b
Bunnymark refactored and cleaned up. (#249) 2024-06-16 19:08:14 +01:00
383ec91e95
Fix usage of uint in bindings (#246) 2024-05-25 10:34:38 +01:00
Ben Parsons
47877ee2e7
Update Language Version to C# 12 (#242) 2024-05-21 16:40:05 +10:00
MrScautHD
818b52cbeb
Add PBR Shader Example. (#229) 2024-02-09 18:19:57 +00:00
Danil
70d86837d4
Update enum/color names to match C# naming convention (#224) 2024-01-18 19:00:57 +00:00
MrScautHD
43f1924faa
Port to Raylib-5.0.0 (#210)
Co-authored-by: ChrisDill <chris.rj.dill@gmail.com>
2023-12-27 12:17:57 +00:00
863c1da25d Fix AnimationDemo and improve build 2023-11-03 10:32:54 +00:00
368938cfe5 Fix audio example fileName 2023-10-08 19:53:46 +01:00
3bbfcfc0a7 Review resources/licensing usage 2023-10-05 19:59:31 +01:00
b3cab69ae9 Update MeshGeneration example 2023-09-19 08:03:48 +01:00
e9220c14df Unload panorama texture in SkyboxDemo 2023-09-17 13:31:10 +01:00
49871bcd8b Fix issues with the SkyboxDemo example 2023-09-17 13:26:12 +01:00
f1dcfe1294 Add MeshDemo example using the new Mesh utils 2023-09-09 20:12:37 +01:00
WraithGlade
730e0136b5
Fixed problem where Xbox controller wouldn't appear for InputGamepad. (#198)
* Fix problems associated with this file which are detailed in issue #195
2023-09-09 13:26:16 +01:00
e6efae119b Add option to run a specific example at runtime 2023-09-09 07:37:45 +01:00
d1f0b9fd91 Group example utils into folder 2023-08-27 14:01:35 +01:00
5640e290e7 Update Examples to use Raylib-cs.Native 2023-08-25 09:36:01 +01:00
bcdf8cec5b
Update/merge examples back into main repo (#192) 2023-08-25 08:08:32 +01:00
38ae234d34 Examples have been moved to https://github.com/ChrisDill/Raylib-cs-Examples.
- Examples were getting large and to make it easier for submodules and commit history I decided to seperate the two. Preparing to merge changes from dev branch. Made sense
to do this change directly first.
2020-03-06 23:14:27 +00:00
0911c3ab88 Reviewed Tests project
- Removed example browsing test. Focusing on examples being built on their own instead.
- Removed old .projitems/.shproj from bindings and examples.
- Simplified NetCore, NetCoreRT, NetFX tests into one that uses multitarget instead.
2019-10-27 14:06:15 +00:00
f43c79ee55 Moved tests into their own folder. 2019-03-08 11:32:25 +00:00
a01efa4a09 Initial example update
- Updating examples with new changes.
2019-02-11 11:30:02 +00:00
a0b5be8df5 Fixing physac issues
- Trying to fix marshall issues withh physac. Comparing struct size compared to c etc.
2018-11-30 10:12:55 +00:00
2e6a583193 Fixed VR issue
- Fixed werid graphical bug with VR. Issue was with the struct for VrDeviceInfo.
2018-11-22 15:00:25 +00:00
e6c3d8532f Merge branch 'master' of https://github.com/ChrisDill/Raylib-cs 2018-10-26 18:39:19 +01:00
e8ca589e6f Update Examples/text/text_input_box.cs
- Changed to char array.
- Fixed backspace out of bounds issue.
2018-10-26 18:39:13 +01:00