Watch
2
0
Fork
You've already forked raylib-cs
0
Commit graph

451 commits

Author SHA1 Message Date
tiger tiger tiger
3939abda18 chore: readme, gitignore, and targets backport. 2026-07-19 09:40:27 +02:00
tiger tiger tiger
f804ab7773 feat: backporting existing raylib-cs examples and new official raylib examples to WASM, adopting raylib's original code style 2026-07-19 09:40:27 +02:00
tiger tiger tiger
6aa91e3097 fix: Examples.csproj runs the download task when building locally 2026-07-19 09:38:31 +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
6bb62d9932 chore: readme update 2026-07-07 23:06:25 +02:00
tiger tiger tiger
4cfb534b74 fix: Wrong signature of FrameBufferComplete 2026-07-07 22:03:13 +02:00
tiger tiger tiger
6c496b67b8 chg: simplifying build logic - a simple line in the documentation should save us the code here 2026-07-07 21:52:01 +02:00
tiger tiger tiger
409454a455 chore: readme updated 2026-07-06 16:36:32 +02:00
tiger tiger tiger
3c08139d91 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.
2026-07-06 15:53:53 +02:00
tiger tiger tiger
99cfdae6ed 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.
2026-07-06 15:33:30 +02:00
tiger tiger tiger
f6d3961828 chore: updated readme 2026-07-04 15:53:40 +02:00
tiger tiger tiger
3b305013a1 fix: centralized version data in Directory.build.props, and fixed various interop details that had incorrect function signatures 2026-06-30 17:12:15 +02:00
tiger tiger tiger
c99ce8edea 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)
2026-06-24 11:00:17 +02: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
Oosaka
ef98ca456a
Fix LoadModel incorrect summary (#339) 2026-06-05 07:35:09 +01:00
4e5ee08da8
Update README.md 2026-05-31 08:47:14 +01:00
1f07b4b4a4 Review Raylib.Utils v8.0.0 2026-05-25 08:46:28 +01: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
73e3428ca0
Update README.md 2026-05-17 20:31:39 +01:00
a657bb6367
Update tests and dll resolver (#336) 2026-05-17 19:24:49 +01:00
709a0c1c3d
Add custom DllImportResolver (#335) 2026-05-11 21:46:17 +01:00
a1cde79294
Switch from DllImport to LibraryImport (#334) 2026-04-24 12:32:09 +01:00
d49c0f8474
Update version and bindings (#332) 2026-04-15 20:53:16 +01:00
723ef1b4b9
Update workflow (#331) 2026-04-08 08:24:14 +01:00
dd1297e46b
Add docfx support (#330) 2026-04-04 10:35:47 +01:00
942306d916
Remove net6.0 support (#328) 2026-03-28 20:05:58 +00:00
Samuel Gido
a31a4eb3ca
Update structure types to record structs (#326) 2026-02-17 21:09:17 +00:00
Guillaume
7db9848fb2
Fix Color.Lerp (#323)
Resolves incorrect tweening behavior where G/B/A interpolated from origin.R
2026-02-04 17:25:35 +00:00
95d1e9cc56
Update release version to 7.0.2 (#315) v7.0.2 2025-10-18 16:06:12 +01:00
Matorio
75aabd1cc0
Explicit core types and autonomous types. (#304)
* All the "var" variables were changed to explicit types on the raylib class
* "MakeDirectory" overload, and string version of "GetApplicationDirectory" and "GetWorkingDirectory" methods
* Added "Dimensions" property to "Texture2D"
* New overloads for the "LoadFileData" and "SaveFileData" methods
* Raymath's const "NativeLibName" is now referencing to "Raylib.NativeLibName"
* Color constructors are more readable
* Added "Dimensions" property to "Image"
* Changed all the "var" for explicit types on the "Logging" class
* Changed "Int64" for "long" on CBool, and using constructor on the operators instead setting the value manually
* Added indexer to "FilePathLists"
* Changed all "var" for explicit types on "Utf8Buffer"
* New "GetRandomSequence" method overloads in "Raylib.Utils" acepting "int" and "float"
* Added new extension "byte.Lerp"
* Added new extension "Log" for "TraceLogLevel"
* Constructors on Color no longer just truncate the float value, but also round it (+ 0.5f)
* New static method on Color, "Color.Lerp"
* Added static method "FromHSV" to Color
* Added new getter method "GetHSV" on Color
* Added index security on the FilePathList indexer
* Added Rectangle extension
* Added "MoveTowards" extensions to RaylibExtensions
* Added "TranslateLocal" and "TranslateGlobal" to Transform
* Removed unnecessary "partial" declarations
* Updating calls and docs
* Moved the "AudioCallback" delegate into the "AudioMixed.cs" File
* Properties and structs marked as read-only on the "Model.cs" file
* Updated the "README.md" to mentions Raylib-cs targets net6.0 and net8.0 (and also explicitly added that the
"STAThread" attribute comes from the "System" namespace)
* Added a few sizing utils to "Rectangle"
* Added "GetScreenCenter" to "Raylib.Utils"
2025-09-21 09:09:38 +01:00
Quentin
ca4e760d60
Update InputMultitouch.cs (#310)
Fix typo
2025-08-19 19:33:49 +01:00
JupiterRider
8384e36054
Update docs of some FromMemory-functions #305 (#306) 2025-07-28 12:27:06 +01:00
Markus Stephanides
e09d6a4daa
Add STAThread notice to README (#302) 2025-05-22 18:07:30 +01:00
Ben Parsons
f9787a8342
Enable Targeting .Net 8 (#297)
Fixes #295
2025-05-07 08:16:47 +01:00
ee10f5fa7b
Add MatrixDecompose (#299) 2025-04-27 17:12:42 +01:00
91cfbeaf5e
Update to ubuntu 22.04 (#294) 2025-02-12 07:16:21 +00:00
27b259a6c6
Update README.md 2025-01-31 20:15:05 +00:00
0ba5226729 Update project links v7.0.1 2025-01-31 19:55:05 +00:00
f64e12dbc0
Update release version to 7.0.1 (#293) 2025-01-30 21:51:19 +00:00
6ab7bec764
Update PixelFormat (#292) 2025-01-30 18:39:23 +00:00
86439d0eda
Update to reflect organization change (#291) 2025-01-30 08:09:01 +00:00
Chadderbox
ecb5528fb2
Fix typo in Transform struct summary (#289) 2025-01-18 08:35:11 +00:00
JupiterRider
7026f28766
Remove package System.Numerics.Vector (#284) v7.0.0
This package is no longer required, because it's part of the standard library now.
2024-12-23 18:00:50 +00:00
JupiterRider
a3dfd57b5a
Update to raylib 5.5 (#279) 2024-12-21 15:00:13 +00:00
JupiterRider
7b5b322a5b
Update Raylib-cs.Native.csproj #281 (#282)
This fixes #281
2024-12-14 09:32:28 +00:00
54d02588b9 Update build.yml 2024-09-13 21:15:57 +01:00
Alexander Baggett
8f2902aca0
Implement Managed Code Friendly version of CheckCollisionPointPoly (#268) 2024-09-13 19:56:45 +00:00
dependabot[bot]
b26e4f73d1
Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows (#266)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4.1.7.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v3...v4.1.7)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-04 17:14:28 +01:00