2
0
mirror of https://github.com/raylib-cs/raylib-cs synced 2025-04-05 11:19:39 -04:00

90 Commits

Author SHA1 Message Date
5a41d48706 Fix outdated comment 2022-02-14 19:04:42 +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
6140872094 3.7.0.1 2021-10-02 13:44:55 +01:00
Ben Parsons
5d9198acd2
XmlDoc: Convert some comments to <summary> tags (#96)
* Fixed-up comments on first ~500 lines

* Update Comments to xmldoc till around line  ~1700

I might have used regex.
2021-10-02 22:17:15 +10:00
cbfaf28c90 Fix typo 2021-10-02 13:12:10 +01:00
bec7ecc77b Fixes to enums and GetGestureDetected
- Fix enum order for MaterialMapIndex
- Return Gestures instead of int from GetGestureDetected
- Update naming of CubemapLayout
2021-10-02 12:46:18 +01:00
Ben Parsons
0460d2c2db
Github Actions for Nuget Releases (#95)
* Add Raylib target tag to app.config

* Enable GitHub Actions on all PRs

* Create and upload NuGet package

Co-authored-by: ChrisDill <chris.rj.dill@gmail.com>
2021-10-02 21:21:11 +10:00
Jarrod Doyle
0821d9d5f9 Fixes #93 2021-09-26 21:55:32 +01:00
d0318795e1 Remove GetMouseCursor 2021-09-25 07:49:14 +01:00
4ebb829423 Fix missing argument in GetMonitorPosition 2021-09-24 21:55:32 +01:00
bbb425b5bb Fix ShaderLocationIndex order and add missing normal location 2021-07-02 22:47:33 +01:00
65d1ca11fe Remove linux-x86 folder from runtimes
- Dropping support for 32 bit on linux.
2021-05-19 15:46:34 +01:00
4f4296adaf Merge pull request #82 from ChrisDill/3.7-dev
3.7 dev
2021-05-12 10:22:22 +01:00
207ba0ab1a Review minor project details
- Disable warning for missing doc comments for now.
- Specify specific version or System.Numerics.Vectors.
- Format fixes.
2021-05-12 09:38:37 +01:00
3c2f2b4064 Fix enum naming
- Add missing prefixes to enums to match raylib.
- Add aliases for a few enum types
2021-05-11 08:23:29 +01:00
d342e5427f Add summary tags to improve documentation
- Helps with intelisense and documentation generators. More details can
be added in the future as needed.
- Include documentation in package
2021-05-11 08:23:29 +01:00
094c4e7789 Update project details and experimental libs
- Unsure on experimental lib at the moment. Need to test pinvoke
overhead. Might move to examples repo.
- Update README.md.
- Update Raylib-cs.csproj.
- Remove GenMeshDefault.
2021-05-11 08:19:46 +01:00
3224a58371 Initial 3.7 update
- Many breaking changes in this update. This is a work in
progress and needs testing.
2021-04-25 11:36:02 +01:00
b6cf094a34 Minor bugfixes
- Fix issue with github actions randomly failing on windows.
- Remove default arguments from Camera3D constructor.
- GetGamepadName was using Ansi when it should of been UTF8.
- Fix issue where charsPadding was not public.
2021-04-22 10:45:04 +01:00
Lázaro Blanc
b2ef3c1bab
Update Raylib.cs 2021-03-26 16:00:51 +01:00
e49ca5b92c Review bindings
- All raylib structs are now blittable.
- Fixing some incorrect functions(types, naming etc).
- Remove netfx.props.
2021-03-25 20:43:39 +00:00
Ben Beshara
aa940e3d48 Fixed capitalisation on Framebuffer externs 2021-02-09 09:53:07 +11:00
17be194afc Add UnloadFileData
- Add missing UnloadFileData function. Frees memory allocated by LoadFileData.
2021-01-25 12:24:01 +00:00
05a1133e4a Fix bug with LoadFileData and LoadFontData
- Changed return of LoadFileData from byte[] to IntPtr as it cannot Marshal as a byte[].
- Adding missing dataSize argument to LoadFontData.
2021-01-25 12:05:21 +00:00
c1f25cc135 Initial set of UTF8 fixes
- Working on issue #69. Testing the MarshalAs fix with window and text drawing functions.
2021-01-22 13:31:59 +00:00
7351c663fa Update GetMonitorName and GetClipboardText to return UTF8 2021-01-15 10:09:51 +00:00
8fa8d74156 Update TraceLogCallback and INTERNAL_GetGamepadName
- Change TraceLogCallback calling convention to Cdecl.
- Change INTERNAL_GetGamePadName to private.
2021-01-15 09:08:56 +00:00
79e326da27 Remove Raylib-cs.targets 2021-01-06 10:47:25 +00:00
12c9887788 Review Raylib-cs.csproj
- Updated version to 3.5.0. Plan to keep this in sync with future raylib releases to reduce confusion about versioning.
- Since netstandard2.1 includes System.Numerics, we no longer need to reference it here.
- Testing possible fixes for packing/using runtimes.
2021-01-05 12:09:41 +00:00
4f0fdc3880 Removed unused tags from project files
- Don't need to specify Platforms and Configurations for libraries or tests.
2021-01-02 11:26:56 +00:00
b1f46d3307 Fix pinvoke crashes when returning strings for GetMonitorName, GetClipboardText and GetGamepadName
- These functions return native memory to strings. However it was trying to free the native memory.
- I changed it so they return IntPtr internally and the public versions use Marshal.PtrToStringAnsi to copy it into a
string which fixes this issue.
2020-12-29 18:34:04 +00:00
701434ef99 Remove file management functions in favour of System.IO alternatives
- These functions have a similar api to System.IO functions in C#.
For example 'DirectoryExists' can be replaced with 'Directory.Exists'.
- I considered wrapping them to use `System.IO` internally however that is less flexible than using it
directly.
2020-12-29 16:26:35 +00:00
60973394ad Add Fade function for compatibility with previous versions
- Recommended you use ColorAlpha instead but this makes it easier
for users to update to 3.5.0. Fixes #68.
2020-12-28 19:02:24 +00:00
1279502344 Minor improvements and formatting
- Replaced Rlgl format usage with PixelFormat enum and update constants.
- Added new enums used with framebuffers.
- Added missing functions and fixed function naming.
2020-12-28 09:20:03 +00:00
1e362c5e64 Add GetShaderLocationAttrib function
- Used by the example shaders_rlgl_mesh_instanced.
2020-12-27 15:47:10 +00:00
5d266806eb Add missing ConfigFlag flag argument to ClearWindowState 2020-12-27 15:31:43 +00:00
71610bc8e5 Add missing format argument to GenTetxureCubemap 2020-12-27 12:49:13 +00:00
75a4d9bf27 Update Rlgl.cs to 3.5.0 and rename GetExtension to GetFileExtension 2020-12-26 15:45:40 +00:00
2e0b2d93eb Update Raylib.cs audio functions to 3.5.0 2020-12-26 15:20:54 +00:00
cfde708bd8 Update Raylib.cs model functions to 3.5.0 2020-12-26 15:18:53 +00:00
010db71473 Update Raylib.cs image, texture and font functions to 3.5.0 2020-12-26 15:02:45 +00:00
75050deeed Update Raylib.cs drawing functions to 3.5.0
- Update Image drawing functions
- Update Texture drawing functions
- Update shape drawing functions
2020-12-26 13:46:42 +00:00
29fca9725f Update Raylib.cs input related functions to 3.5.0 2020-12-26 13:24:48 +00:00
7be227a115 Replace Image/Texture section with Color/Pixel and update those functions to 3.5.0 2020-12-26 13:11:47 +00:00
592bd9e0d2 Update Raylib.cs window and cursor related functions to 3.5.0 2020-12-26 12:27:24 +00:00
61e842ecfd Update Raylib.cs enums to 3.5.0 2020-12-26 11:15:37 +00:00
bb4b9c38c6 Update Raylib.cs structs to 3.5.0
- Doing the update in stages to make it easier to manage.
2020-12-26 10:50:32 +00:00
Spec-Chum
1e3d0252f8 Convert all Math calls to MathF to avoid conversions 2020-12-23 15:58:08 +00:00
8d9201c341 Dropping experimental netfx support
- Set libraries to target netstandard2.1 and updated tests to net5.0. Still learning about the new features. Libraries may also change to net5.0
later if the newer features are useful enough to include directly in the library.
- Removing Platform.cs which was only used by netfx.
2020-11-12 11:17:03 +00:00
ddadcf01f7 Remove unused string management functions
- Removing common string functions in Raylib that can easily be replaced with built in string functions from C#. Keeping a few
such as TextFormat for now as I am unsure if they will be useful later.
2020-11-06 11:49:16 +00:00