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

423 commits

Author SHA1 Message Date
Matorio
e2bbeee1b2 Removed extensions class
Removed the "RaylibExtensions.cs" file...
2025-08-10 15:58:41 -05:00
Matorio
762641e296 Updating calls and docs
Moved the "AudioCallback" delegate into the "AudioMixed.cs" File.
Added a "Update" method to AudioStream.
Added "LoadAnim" static method to Image.
Added a "Update" method to Music.
Explicit constructors on the "Mesh.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).
Changed redundant calls on some "Draw" methods from Texture2D.
2025-07-18 14:02:01 -05:00
Matorio
b84a0d4f12 Merging
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.
Merged Rectangle extensions with the type itself as read-only methods.
Merged Image extensions with the type itself.
Merged Texture2D extensions with the type itself.
New file "Raymath.Utils" with some useful methods taken from Unity.
Added "MoveTowards" extensions to RaylibExtensions.
Added "TranslateLocal" and "TranslateGlobal" to Transform.
Added "Load", "Export", "ExportAsCode", "Format", "Crop", and "Unload" shortcut methods to Wave.
Added "IsValid" property to Wave, Texture2D, Sound, Shader, RenderTexture2D, Music, Image, Model, Material, Font, and AudioStream.
Added "IsPlaying" and "IsProcessed" properties to AudioStream.
Added "Load", "Play", "Stop", "Pause", "Resume", "SetBufferSizeDefault", "SetPan", "SetPitch", "SetVolume", and "Unload" shortcut methods to AudioStream.
Added "Load", "Export", and "Unload" methods to AutomationEventList.
Added "Default" property to Font.
Added "Load", "GetMaterial", "GetTexture", "SetTexture", "SetShader", and "Unload" methods to material.
Added "Draw", "DrawInstanced", "Export", "ExportAsCode", "Upload", and "Unload" methods to Mesh.
Added "Load", "LoadFromMesh", "Unload", and a lot of "Draw" overloads.
Added "Load", "Play", "Pause", "Stop", "SetPan", "SetPitch", "SetVolume", "Seek", and "Unload" methods to Music.
Added "Load" and "Unload" methods to RenderTexture2D.
Added "Load", "LoadFromMemory", "GetLocationAttrib", "SetValue", "SetTexture", "SetMatrix", and "Unload" methods to Shader.
Removed unnecessary "partial" declarations.
2025-07-17 03:14:57 -05:00
Matorio
9811c0d129 Ordering readings
Added "SaveFileData" overload to "Raylib.Utils"
Moved "SaveFileText" from "RaylibExtensions" to "Raylib.Utils"
Moved "LoadFileText" from "RaylibExtensions" to "Raylib.Utils"
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"
2025-07-15 17:17:41 -05:00
Matorio
c0a9549454 Preserve raylib types
Removed "Cricle" and "Line" structs (and their extension methods) to conserve only raylib types.

Added "Dimensions" property to "Texture2D"
Added another "Load" overload for the "Texture2D" extensions (load from memory)

New overloads for the "LoadFileData" and "SaveFileData" methods
2025-07-11 21:48:06 -05:00
Matorio
d723905f5c Extensions and explicit types
Added a new "RaylibExtensions" static class that gives overloaded extension methods to types so you can use them directly instead of calling the raylib class for everything.

Two new types: "Circle" and "Line"

All the "var" variables were changed to explicit types on the raylib class.

"MakeDirectory" overload, and string version of "GetApplicationDirectory" and "GetWorkingDirectory" methods.
2025-06-20 18:41:16 -05: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
Nicky McDonald
377a32a9db
Safe UpdateMeshBuffer Method (#262) 2024-08-23 06:54:38 +00:00
Nicky McDonald
51925dd42d
Additional Color Constructors (#261) 2024-08-10 08:19:43 +00:00
Chris Dill
93eef0f504
Update README.md 2024-07-12 18:11:36 +01:00
ab3faacd24
Update README.md and package details (#255) v6.1.1 2024-06-23 16:38:14 +01:00
daa124aee1
Fix build (#254) v6.1.0 2024-06-20 21:10:01 +01: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
f7fd66b7eb
Native build improvements (#235)
* Add Raylib-cs.Native to solution
* Update build.yml to use local build
* Remove experimental android setup
2024-06-08 07:27:01 +01:00
383ec91e95
Fix usage of uint in bindings (#246) 2024-05-25 10:34:38 +01:00
5949934932
Fix ExportImageToMemory and formatting issues (#245) 2024-05-25 08:53:30 +01:00
JupiterRider
502a583e07
UnloadMesh needs a value, not a pointer (#243) 2024-05-21 19:06:11 +01:00
Ben Parsons
47877ee2e7
Update Language Version to C# 12 (#242) 2024-05-21 16:40:05 +10:00
Nicky McDonald
b049b4f88d
AttachAudioMixedProcessor Utils for easy callback (#215) 2024-02-24 08:44:13 +00:00
MrScautHD
818b52cbeb
Add PBR Shader Example. (#229) 2024-02-09 18:19:57 +00:00
5d23b5ca71
Release 6.0.0 (#221) v6.0.0 2024-01-20 10:47:51 +00:00
Danil
70d86837d4
Update enum/color names to match C# naming convention (#224) 2024-01-18 19:00:57 +00:00
njlr
2a1889403d
Pin to Ubuntu 20.04 (#223) 2024-01-14 08:23:37 +00:00
a94a92afb6
Revert default graphics version change (#219) 2024-01-07 22:28:16 +00:00
German Hoyos
35f35bb4d5
Update README.md (#218)
Added an additional step for more clarity, this just explains that a .NET app should be created before running the add package command for Raylib-cs.
2024-01-07 11:43:58 +00:00
MrScautHD
269b6fe67f
Update Desktop to OpenGL 4.3 (#217)
Update Desktop to OpenGL 4.3 for linux and windows platforms
2024-01-06 12:52:18 +00:00
Yxure
56e9db7f20
Rectangle constructors and properties using Vector2 (#216) 2024-01-06 09:11:04 +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
ff85d9ae83 Fix utility typo 2023-12-26 10:10:18 +00:00
47956acdd4
Fix GenImageText bug/add utility method (#213) 2023-12-26 10:00:15 +00:00
2d1d558c2d Update README.md and Build.props v5.0.0 2023-11-05 13:14:38 +00:00
863c1da25d Fix AnimationDemo and improve build 2023-11-03 10:32:54 +00:00