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:
@@ -7,7 +7,6 @@
|
|||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||||
<NoWarn>$(NoWarn);1591</NoWarn>
|
<NoWarn>$(NoWarn);1591</NoWarn>
|
||||||
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
@@ -11,7 +11,7 @@ namespace Raylib_cs
|
|||||||
// Used by DllImport to load the native library.
|
// Used by DllImport to load the native library.
|
||||||
public const string nativeLibName = "raylib";
|
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 DEG2RAD = MathF.PI / 180.0f;
|
||||||
public const float RAD2DEG = 180.0f / MathF.PI;
|
public const float RAD2DEG = 180.0f / MathF.PI;
|
||||||
|
@@ -3,7 +3,9 @@ using System.Runtime.InteropServices;
|
|||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs
|
||||||
{
|
{
|
||||||
/// <summary>Wave type, defines audio wave data</summary>
|
/// <summary>
|
||||||
|
/// Wave type, defines audio wave data
|
||||||
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct Wave
|
public struct Wave
|
||||||
{
|
{
|
||||||
@@ -33,8 +35,10 @@ namespace Raylib_cs
|
|||||||
public IntPtr data;
|
public IntPtr data;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Audio stream type
|
/// <summary>
|
||||||
/// NOTE: Useful to create custom audio streams not bound to a specific file</summary>
|
/// Audio stream type
|
||||||
|
/// NOTE: Useful to create custom audio streams not bound to a specific file
|
||||||
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct AudioStream
|
public struct AudioStream
|
||||||
{
|
{
|
||||||
@@ -59,7 +63,9 @@ namespace Raylib_cs
|
|||||||
public uint channels;
|
public uint channels;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Sound source type</summary>
|
/// <summary>
|
||||||
|
/// Sound source type
|
||||||
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct Sound
|
public struct Sound
|
||||||
{
|
{
|
||||||
@@ -74,8 +80,10 @@ namespace Raylib_cs
|
|||||||
public uint frameCount;
|
public uint frameCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Music stream type (audio file streaming from memory)
|
/// <summary>
|
||||||
/// NOTE: Anything longer than ~10 seconds should be streamed</summary>
|
/// Music stream type (audio file streaming from memory)
|
||||||
|
/// NOTE: Anything longer than ~10 seconds should be streamed
|
||||||
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct Music
|
public struct Music
|
||||||
{
|
{
|
||||||
|
@@ -3,7 +3,9 @@ using System.Runtime.InteropServices;
|
|||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs
|
||||||
{
|
{
|
||||||
/// <summary>Camera2D, defines position/orientation in 2d space</summary>
|
/// <summary>
|
||||||
|
/// Camera2D, defines position/orientation in 2d space
|
||||||
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct Camera2D
|
public struct Camera2D
|
||||||
{
|
{
|
||||||
|
@@ -1,5 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Numerics;
|
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs
|
||||||
|
@@ -114,9 +114,7 @@ namespace Raylib_cs
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Image type, bpp always RGBA (32bit)
|
/// Image, pixel data stored in CPU memory (RAM)
|
||||||
/// <br/>
|
|
||||||
/// NOTE: Data stored in CPU memory (RAM)
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct Image
|
public struct Image
|
||||||
|
@@ -73,7 +73,9 @@ namespace Raylib_cs
|
|||||||
public IntPtr bindPose;
|
public IntPtr bindPose;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Model animation</summary>
|
/// <summary>
|
||||||
|
/// Model animation
|
||||||
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct ModelAnimation
|
public struct ModelAnimation
|
||||||
{
|
{
|
||||||
|
@@ -44,7 +44,9 @@ namespace Raylib_cs
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Ray, ray for raycasting</summary>
|
/// <summary>
|
||||||
|
/// Ray, ray for raycasting
|
||||||
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct Ray
|
public struct Ray
|
||||||
{
|
{
|
||||||
@@ -65,7 +67,9 @@ namespace Raylib_cs
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Raycast hit information</summary>
|
/// <summary>
|
||||||
|
/// Raycast hit information
|
||||||
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct RayCollision
|
public struct RayCollision
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user