Watch
2
0
Fork
You've already forked raylib-cs
0
Commit graph raylib-cs/Raylib-cs/types
Author SHA1 Message Date
be91fe9120 Focus pr on explicit type and util changes 2025-09-17 19:16:39 +01:00
205e602080
Merge branch 'master' into master 2025-09-05 22:41:28 +01:00
Matorio
ef5519b8f7 Sizing and position
Added a few sizing utils to "Rectangle"
Added "GetScreenCenter" to "Raylib.Utils"
2025-08-17 00:35:38 -05:00
Matorio
e2bbeee1b2 Removed extensions class
Removed the "RaylibExtensions.cs" file...
2025-08-10 15:58:41 -05:00
JupiterRider
8384e36054
Update docs of some FromMemory-functions #305 (#306) 2025-07-28 12:27:06 +01: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
6ab7bec764
Update PixelFormat (#292) 2025-01-30 18:39:23 +00:00
Chadderbox
ecb5528fb2
Fix typo in Transform struct summary (#289) 2025-01-18 08:35:11 +00:00
JupiterRider
a3dfd57b5a
Update to raylib 5.5 (#279) 2024-12-21 15:00:13 +00:00
Alexander Baggett
8f2902aca0
Implement Managed Code Friendly version of CheckCollisionPointPoly (#268) 2024-09-13 19:56:45 +00: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
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
Nicky McDonald
b049b4f88d
AttachAudioMixedProcessor Utils for easy callback (#215) 2024-02-24 08:44:13 +00:00
Danil
70d86837d4
Update enum/color names to match C# naming convention (#224) 2024-01-18 19:00:57 +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
4a58a07dcd Simplify LoadModelAnimations util 2023-10-29 09:45:02 +00:00
MrScautHD
6d9505653f
Added camera methods without pointers (#205) 2023-10-22 14:59:43 +01:00
dc20bc46ab Fix build 2023-09-28 18:54:49 +01:00
4597f6600f Add Span utils to RenderBatch/fix DrawCounter 2023-09-28 18:10:59 +01:00
ee1557aca5 Review and fix RenderBatch 2023-09-28 17:52:09 +01:00
be0fcded59 Split audio types into separate files 2023-09-23 10:36:51 +01:00
Nickolas McDonald
c642be6148
Improve utils for mesh generation and processing (#199)
* Add memory allocation to Raylib.Utils for memory allocation (#179)
* Add utils to Mesh for allocating and accessing mesh attributes (#179)
2023-09-09 18:01:59 +01:00
696955463f Add .editorconfig and apply formatting 2023-08-27 15:20:26 +01:00
23ed54cc24
BREAKING: Update names of methods, variables, and other elements (#181)
Breaking change to update naming across Raylib-cs to make it more consistent with C# naming conventions.

---------

Co-authored-by: MrScautHD <65916181+MrScautHD@users.noreply.github.com>
2023-08-14 21:33:48 +01:00
3f9cf16c93 Remove unused icon from tests 2023-08-12 23:04:49 +01:00
Nickolas McDonald
d067c6c0aa
[Fix #184] Seperate UTF8 from Ansi (#185) 2023-08-12 22:59:46 +01:00
MrScautHD
083a776aee
Adding a string method for OpenURL and SetGamepadMappings (#180) 2023-08-04 23:04:42 +01:00
Nickolas McDonald
28bca27917
Add managed methods for updating textures (#177) 2023-07-26 20:55:00 +01:00
Ben Parsons
e6ac656838
Use StringToHGlobalAnsi for UTF8Buffer (#173)
Rather then StringToCoTaskMemUTF8.
Tested on Windows 11 (x64) & Arch Linux (x64).
Should fix #172
2023-07-24 13:48:37 +01:00
MrScautHD
a545ce3506
Fix Transform.rotation use Vector4 instead of Quaternion (#158) 2023-06-29 18:17:02 +01:00
019b7f2ced Document/credit logging approach 2023-06-29 18:07:21 +01:00
ccf31c38e1 Update FromMemory utils to use fixed instead 2023-06-09 20:12:30 +01:00
b0cab0d257 Remove Text util methods 2023-06-04 18:00:18 +01:00
7cbb1bef64 Add additional LoadXFromMemory utility functions 2023-05-27 15:48:05 +01:00
99b121616a Fix typo in GetCodepoint util 2023-05-21 07:47:11 +01:00
af1c85ab04 Add ref util for ImageBlurGaussian 2023-05-21 07:32:40 +01:00
7e50d25e71 Review Camera3D functions and fix bool usage 2023-04-15 10:39:48 +01:00
d3e225a286
Update to raylib 4.5 (#149)
* Update bindings to raylib 4.5
* Review naming, comments and formatting
2023-03-30 20:01:55 +01:00
Fall
21c010438b
Created CBool's ctors, fixed casting issue (#142) 2022-12-27 17:26:32 +00:00
f13f278f88
Fix bug in AudioStream struct (#133) 2022-10-01 18:26:59 +01:00