2
0
mirror of https://github.com/raylib-cs/raylib-cs synced 2025-09-09 03:01:41 -04:00

Small fixes 1

This commit is contained in:
2021-10-28 20:48:37 +01:00
parent 26b0a0dac4
commit f655c1a9e6
8 changed files with 28 additions and 16 deletions

View File

@@ -7,7 +7,6 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<NoWarn>$(NoWarn);1591</NoWarn>
</PropertyGroup>
<PropertyGroup>

View File

@@ -11,7 +11,7 @@ namespace Raylib_cs
// Used by DllImport to load the native library.
public const string nativeLibName = "raylib";
public const string RAYLIB_VERSION = "3.7";
public const string RAYLIB_VERSION = "4.0";
public const float DEG2RAD = MathF.PI / 180.0f;
public const float RAD2DEG = 180.0f / MathF.PI;

View File

@@ -3,7 +3,9 @@ using System.Runtime.InteropServices;
namespace Raylib_cs
{
/// <summary>Wave type, defines audio wave data</summary>
/// <summary>
/// Wave type, defines audio wave data
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public struct Wave
{
@@ -33,8 +35,10 @@ namespace Raylib_cs
public IntPtr data;
}
/// <summary>Audio stream type
/// NOTE: Useful to create custom audio streams not bound to a specific file</summary>
/// <summary>
/// Audio stream type
/// NOTE: Useful to create custom audio streams not bound to a specific file
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public struct AudioStream
{
@@ -59,7 +63,9 @@ namespace Raylib_cs
public uint channels;
}
/// <summary>Sound source type</summary>
/// <summary>
/// Sound source type
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public struct Sound
{
@@ -74,8 +80,10 @@ namespace Raylib_cs
public uint frameCount;
}
/// <summary>Music stream type (audio file streaming from memory)
/// NOTE: Anything longer than ~10 seconds should be streamed</summary>
/// <summary>
/// Music stream type (audio file streaming from memory)
/// NOTE: Anything longer than ~10 seconds should be streamed
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public struct Music
{

View File

@@ -3,7 +3,9 @@ using System.Runtime.InteropServices;
namespace Raylib_cs
{
/// <summary>Camera2D, defines position/orientation in 2d space</summary>
/// <summary>
/// Camera2D, defines position/orientation in 2d space
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public struct Camera2D
{

View File

@@ -1,5 +1,4 @@
using System;
using System.Numerics;
using System.Runtime.InteropServices;
namespace Raylib_cs

View File

@@ -114,9 +114,7 @@ namespace Raylib_cs
}
/// <summary>
/// Image type, bpp always RGBA (32bit)
/// <br/>
/// NOTE: Data stored in CPU memory (RAM)
/// Image, pixel data stored in CPU memory (RAM)
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public struct Image

View File

@@ -73,7 +73,9 @@ namespace Raylib_cs
public IntPtr bindPose;
}
/// <summary>Model animation</summary>
/// <summary>
/// Model animation
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public struct ModelAnimation
{

View File

@@ -44,7 +44,9 @@ namespace Raylib_cs
}
}
/// <summary>Ray, ray for raycasting</summary>
/// <summary>
/// Ray, ray for raycasting
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public struct Ray
{
@@ -65,7 +67,9 @@ namespace Raylib_cs
}
}
/// <summary>Raycast hit information</summary>
/// <summary>
/// Raycast hit information
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public struct RayCollision
{