Watch
2
0
Fork
You've already forked raylib-cs
0
Commit graph raylib-cs/Raylib-cs/types/Raylib.Utils.cs
Author SHA1 Message Date
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
JupiterRider
8384e36054
Update docs of some FromMemory-functions #305 (#306) 2025-07-28 12:27:06 +01: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
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
383ec91e95
Fix usage of uint in bindings (#246) 2024-05-25 10:34:38 +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
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
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
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
0d994b0992
Update to raylib 4.2 (#117)
Update bindings to use raylib 4.2.0. Review comments and utils.
2022-10-01 12:27:25 +01:00
f9284d4505
Point release 4.0.0.2 (#122) 2022-09-03 23:13:16 +10:00
Diogo Gomes
0ea640acaa
Fixed LoadImageAnim frames argument. (#119) 2022-08-24 17:50:30 +01:00
1db5428786 Review font functions 2022-02-15 19:59:26 +00:00
e5934b86ba 4.0 (#100)
* Fix formatting/update doc comments in Raylib.cs

* Update types in Raylib.cs to 4.0

* Remove app.config

* Update Raylib.cs functions

* Split Enums, Structs & Classes into own files

* Testing utils for Raylib.cs

* Update Raylib-cs.csproj

* Reorganize types
- Move into types folder
- Group types based on usage

* Fix parameter names

* Rename CloseAudioStream to UnloadAudioStream

* Remove ref SetShaderValue overloads

* Remove some constants from Raylib.cs

* Include README.md in package

* Replace old version of GetDroppedUtils

* Update README.md

* Remove Physac-cs and Raygui-cs
- Not actively maintained and a pain for users to setup...

* Update comments to xmldoc

* Rename Gestures enum to Gesture

* Minor fixes
- Rename Gestures enum to Gesture
- Update tests to net6.0

* Testing CBool type instead of bool

* Update XmlDoc comments

* Update build.yml to net6.0 for tests

* Remove Easings.cs
- Easings used to be part of raylib. It is now a separate extra library
so I am removing it from the main bindings.

* Update rlgl

* More XmlDoc comments

* Use CBool in structs

* Big unsafe update

* Fix typos and change refs to pointers in Rlgl

* Update LoggingUtils and Material

* Fix typo in Rlgl

* Update build.yml

* Rename RaylibUtils.cs to Raylib.Utils
now a partial class

* Convert some RLGL consts to Enums

Also added helper methods/overloads for related methods

* Make class Raylib partial

* Convert some text functions to not use ref

I dont think they will work. need testing

* Testing fixes for Text functions

* Create rlMultMatrixf safe overload

* Implement safe ModelAnimation

* Testing fix for ModelAnimation using wrapper struct

* Added TODOs

* Fix rlMultMatrixf
- Add missing ToFloatV functions to Raymath
- Fix rlMultMatrixf overload to use MatrixToFloatV

* Fix IsGestureDetected and formatting

* Add a few text tests

* Move wrapper functions into Raylib.Utils

* Remove ref from raylib bindings

* Multi-target net5.0

* Testing string approaches

* Fixing more util and unsafe functions

* Testing TraceLogCallback fix

Set lang version to C# 10

* Replace managed callbacks with unsafe delegates

* Update default LogConsole callback

* Setup unsafe/safe functions for math types in Raylib.cs

* Replace string in Rlgl with sbyte*

* Yet more string changes
- Use sbyte/byte correctly in Raylib.cs
- Using Marshal.StringToCoTaskMemUTF8
- Update utils string usage

* Fix typo bug and whitespace

* Fix DrawTextPro and more whitespace

* Remove unused ToString

* Add file functions back into Raylib

* Test paths filter for pull requests

* Change to paths-ignore filter

* Redo partial change

* Move binding functions into interop folder

Co-authored-by: Ben Parsons <9parsonsb@gmail.com>
2022-02-15 00:00:13 +11:00