Update classes

This commit is contained in:
Braedon Lewis 2023-04-13 10:06:05 -04:00
parent e3dfde5531
commit f0b58b5d15
74 changed files with 77 additions and 77 deletions

View file

@ -17,7 +17,8 @@ BeefLang bindings for **Raylib 4.5**.
## Example ## Example
```cs ```cs
using System; using System;
using Raylib; using RaylibBeef;
using static RaylibBeef.Raylib;
namespace example; namespace example;
@ -25,7 +26,6 @@ class Program
{ {
public static int Main(String[] args) public static int Main(String[] args)
{ {
SetConfigFlags((int)ConfigFlags.FLAG_WINDOW_RESIZABLE);
InitWindow(800, 600, "Raylib Beef 4.5"); InitWindow(800, 600, "Raylib Beef 4.5");
var beefMain = Color(165, 47, 78, 255); var beefMain = Color(165, 47, 78, 255);

View file

@ -17,7 +17,7 @@ namespace RaylibBeefGenerator
private static Dictionary<string, FileDefinition> jsonFiles = new() private static Dictionary<string, FileDefinition> jsonFiles = new()
{ {
{ "raylib.json", new ("Raylib", "") }, { "raylib.json", new ("Raylib", "Raylib") },
{ "rlgl.json", new("Rlgl", "Rlgl") }, { "rlgl.json", new("Rlgl", "Rlgl") },
{ "raymath.json", new("Raymath", "Raymath") } { "raymath.json", new("Raymath", "Raymath") }
}; };
@ -36,7 +36,7 @@ namespace RaylibBeefGenerator
#region Output Defines #region Output Defines
private static string ImportLib = "raylib.dll"; private static string ImportLib = "raylib.dll";
private static string Namespace = "Raylib"; private static string Namespace = "RaylibBeef";
#endregion #endregion
public static void Main(string[] args) public static void Main(string[] args)

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct AudioStream public struct AudioStream

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// Color blending modes (pre-defined) /// Color blending modes (pre-defined)
public enum BlendMode : c_int public enum BlendMode : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct BoneInfo public struct BoneInfo

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct BoundingBox public struct BoundingBox

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct Camera2D public struct Camera2D

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
typealias Camera = Camera3D; typealias Camera = Camera3D;

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// Camera system modes /// Camera system modes
public enum CameraMode : c_int public enum CameraMode : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// Camera projection /// Camera projection
public enum CameraProjection : c_int public enum CameraProjection : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct Color public struct Color

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// System/Window config flags /// System/Window config flags
public enum ConfigFlags : c_int public enum ConfigFlags : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// Cubemap layouts /// Cubemap layouts
public enum CubemapLayout : c_int public enum CubemapLayout : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct FilePathList public struct FilePathList

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct Font public struct Font

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// Font type, defines generation method /// Font type, defines generation method
public enum FontType : c_int public enum FontType : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// Gamepad axis /// Gamepad axis
public enum GamepadAxis : c_int public enum GamepadAxis : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// Gamepad buttons /// Gamepad buttons
public enum GamepadButton : c_int public enum GamepadButton : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// Gesture /// Gesture
public enum Gesture : c_int public enum Gesture : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct GlyphInfo public struct GlyphInfo

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct Image public struct Image

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// Keyboard keys (US keyboard layout) /// Keyboard keys (US keyboard layout)
public enum KeyboardKey : c_int public enum KeyboardKey : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct Material public struct Material

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct MaterialMap public struct MaterialMap

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// Material map index /// Material map index
public enum MaterialMapIndex : c_int public enum MaterialMapIndex : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct Matrix public struct Matrix

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct Mesh public struct Mesh

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct Model public struct Model

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct ModelAnimation public struct ModelAnimation

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// Mouse buttons /// Mouse buttons
public enum MouseButton : c_int public enum MouseButton : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// Mouse cursor /// Mouse cursor
public enum MouseCursor : c_int public enum MouseCursor : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct Music public struct Music

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct NPatchInfo public struct NPatchInfo

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// N-patch layout /// N-patch layout
public enum NPatchLayout : c_int public enum NPatchLayout : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// Pixel formats /// Pixel formats
public enum PixelFormat : c_int public enum PixelFormat : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct Ray public struct Ray

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct RayCollision public struct RayCollision

View file

@ -1,9 +1,9 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
static public static class Raylib
{ {
public const int RAYLIB_VERSION_MAJOR = 4; public const int RAYLIB_VERSION_MAJOR = 4;

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
public static class Raymath public static class Raymath
{ {

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct Rectangle public struct Rectangle

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
typealias RenderTexture2D = RenderTexture; typealias RenderTexture2D = RenderTexture;

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
public static class Rlgl public static class Rlgl
{ {

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct Shader public struct Shader

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// Shader attribute data types /// Shader attribute data types
public enum ShaderAttributeDataType : c_int public enum ShaderAttributeDataType : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// Shader location index /// Shader location index
public enum ShaderLocationIndex : c_int public enum ShaderLocationIndex : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// Shader uniform data type /// Shader uniform data type
public enum ShaderUniformDataType : c_int public enum ShaderUniformDataType : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct Sound public struct Sound

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
typealias Texture2D = Texture; typealias Texture2D = Texture;
typealias TextureCubemap = Texture; typealias TextureCubemap = Texture;

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// Texture parameters: filter mode /// Texture parameters: filter mode
public enum TextureFilter : c_int public enum TextureFilter : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// Texture parameters: wrap mode /// Texture parameters: wrap mode
public enum TextureWrap : c_int public enum TextureWrap : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// Trace log level /// Trace log level
public enum TraceLogLevel : c_int public enum TraceLogLevel : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct Transform public struct Transform

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct Vector2 public struct Vector2

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct Vector3 public struct Vector3

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
typealias Quaternion = Vector4; typealias Quaternion = Vector4;

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct VrDeviceInfo public struct VrDeviceInfo

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct VrStereoConfig public struct VrStereoConfig

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct Wave public struct Wave

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct float16 public struct float16

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct float3 public struct float3

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// Color blending modes (pre-defined) /// Color blending modes (pre-defined)
public enum rlBlendMode : c_int public enum rlBlendMode : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// Face culling mode /// Face culling mode
public enum rlCullMode : c_int public enum rlCullMode : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct rlDrawCall public struct rlDrawCall

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// Framebuffer texture attachment type /// Framebuffer texture attachment type
public enum rlFramebufferAttachTextureType : c_int public enum rlFramebufferAttachTextureType : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// Framebuffer attachment type /// Framebuffer attachment type
public enum rlFramebufferAttachType : c_int public enum rlFramebufferAttachType : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// OpenGL version /// OpenGL version
public enum rlGlVersion : c_int public enum rlGlVersion : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// Texture pixel formats /// Texture pixel formats
public enum rlPixelFormat : c_int public enum rlPixelFormat : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct rlRenderBatch public struct rlRenderBatch

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// Shader attribute data types /// Shader attribute data types
public enum rlShaderAttributeDataType : c_int public enum rlShaderAttributeDataType : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// Shader location point type /// Shader location point type
public enum rlShaderLocationIndex : c_int public enum rlShaderLocationIndex : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// Shader uniform data type /// Shader uniform data type
public enum rlShaderUniformDataType : c_int public enum rlShaderUniformDataType : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// Texture parameters: filter mode /// Texture parameters: filter mode
public enum rlTextureFilter : c_int public enum rlTextureFilter : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
/// Trace log level /// Trace log level
public enum rlTraceLogLevel : c_int public enum rlTraceLogLevel : c_int

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Interop; using System.Interop;
namespace Raylib; namespace RaylibBeef;
[CRepr] [CRepr]
public struct rlVertexBuffer public struct rlVertexBuffer