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

161 Commits

Author SHA1 Message Date
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
65b1a608eb Remove SubText extension method 2020-11-06 11:34:09 +00:00
be43e6c76c Fix bug with incorrect DrawTriangleStrip parameter
- It should take Vector2[] instead of a ref to Vector2 since it operates on multiple points.
2020-11-04 21:22:20 +00:00
b31b484564 Removed duplicate license comments from binding code. 2020-09-18 23:45:09 +01:00
34d069c7cc Updated Raylib-cs.Tests.
- Added binding tests for raylib.
- Updated Raylib-cs.Tests.csproj.
2020-09-18 23:44:01 +01:00
d3babfd891 Minor update.
- Renamed LICENSE.md to LICENSE.
- Removed Rlights.cs. It is a part of the examples now so there is no reason to keep it here.
2020-09-15 08:57:14 +01:00
7aea5f01ef Minor indent fix for Raylib-cs.csproj and Raylib-cs.targets. 2020-09-12 16:30:17 +01:00
5a45303b33
Merge pull request #51 from ChrisDill/platform
Runtime handling of native libraries
2020-09-12 16:22:32 +01:00
da3df6903a Fixed typo and updated enum usage in structs.
- Fixed typo in README.md.
- Changed Image format to use the PixelFormat enum.
- Changed Texture2D format to use the PixelFormat enum.
- Changed NPatchInfo type to use the NPatchType enum.
2020-08-08 09:54:28 +01:00
Ben Parsons
ff96c5f420 Added Platform.cs - to copy (correct) native library at runtime (for netfx)
Targets file now copies runtimes folder to output directory
minor bug fix in sln file.
2020-05-08 02:20:20 +10:00
Ben Parsons
cea720ba21 Improved Nuget native library handling 2020-05-06 04:07:09 +10:00
Ben Parsons
38675b0c4d Fix typo in targets file 2020-05-06 03:37:40 +10:00
fdc760f58e Merge branch 'master' of https://github.com/ChrisDill/Raylib-cs 2020-05-03 15:42:11 +01:00
5f034a99b2 Updated Raymath.cs.
- Added missing function Vector2Rotate.
- Removed Vector3Scale and renamed Vector3Multiply to Vector3Scale.
2020-05-03 15:41:48 +01:00
32320978ca Merge branch 'master' of github.com:ChrisDill/Raylib-cs 2020-05-04 00:37:05 +10:00
f6bcdb7b94 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	Raylib-cs/Raylib-cs.csproj
2020-05-04 00:28:56 +10:00
c0c1041e3a Version Bump (more changes to come until release)
Added targets file for .Net Framework NuGet support
Updated TargetFrameworks to netstandard2.1 rather than netcoreapp3.1
Updated packaging info
2020-05-04 00:27:44 +10:00
955ea5b886 Added Flags enum attribute to ConfigFlag and GestureType. 2020-05-03 15:27:02 +01:00
8b522882f6 Replacing Matrix with Matrix4x4.
- Matrix in raylib is column major whereas in numerics it is row major. The type marshals and works but it needs to be transposed before it can be used. At first I looked into keeping the matrix
type and converting between the 2 as that made sense but I think using just the on type and documenting the difference is a better tradeoff. It may be easy to create bugs by forgetting to transpose but with good documentation I think this is better than having to deal with the 2 types. I may be wrong about this so we will see how it goes.
2020-05-03 13:23:11 +01:00
51873f952b Added the System.Numerics.Vectors package so we can build without specifying netcoreapp3.1. 2020-05-02 15:17:49 +01:00
85c5585dec BREAKING CHANGE. Replaced Vector2, Vector3 and Vector4 with System.Numerics.
- Testing out a breaking change so we can use System.Numerics.
2020-05-02 15:13:57 +01:00
3b3bdc34c4 Fix incorrect native library path
Added support for x86 NuGet package
2020-05-02 17:48:40 +10:00
ca567a5594 Updated README.md
NuGet package and easier installation
Added `runtimes/{tfm}/native` folder to make it clearer where to put native libraries
2020-05-02 17:03:00 +10:00
8f40c04e6a Updated Nuget Package Properties
Includes adding logo to package
2020-05-02 05:19:50 +10:00
c8ddc440bb Updated Build platforms
For upcoming NuGet support
2020-05-02 04:27:16 +10:00
def2598e05 Moving Physac and Raygui into their own libraries and marking them as experimental.
- Both bindings have causes confusion and issues in project setup. Moving them into separate libraries should make things clearer and easier to maintain.
2020-04-28 20:53:45 +01:00
bbda84cafb Fixed error with IsWindowFullscreen.
- Changed IsWindowFullscreen return from void to bool.
2020-04-27 17:46:22 +01:00
81f7a984f6 Changed Raylib-cs.csproj to only target netstandard2.0.
- Changed Raylib-cs.proj to use just one target framework.
- Removed targets net47 and netcoreapp3.1 from Raylib-cs.csproj.
- Removed netcoreapp3.1 from dotnetcore.yml workflow.
2020-04-07 20:41:22 +01:00
55e6740539 Minor update to Raylib.cs.
- Added Camera2D constructor.
- Added missing Text functions.
2020-04-03 16:53:50 +01:00
be2acd3c9a Fixed DrawLineStrip issue from #44.
- Changed DrawLineStrip to take in a Vector2[] instead of ref Vector2 points.
2020-04-01 18:43:33 +01:00