diff --git a/src/Enums/AndroidButton.bf b/src/Enums/AndroidButton.bf index a2a3615..1b76c75 100644 --- a/src/Enums/AndroidButton.bf +++ b/src/Enums/AndroidButton.bf @@ -1,7 +1,7 @@ namespace raylib_beef.Enums { // Android buttons - public enum AndroidButton : int + public enum AndroidButton : int32 { KEY_BACK = 4, KEY_MENU = 82, diff --git a/src/Enums/BlendMode.bf b/src/Enums/BlendMode.bf index a4be2a2..cd86677 100644 --- a/src/Enums/BlendMode.bf +++ b/src/Enums/BlendMode.bf @@ -1,6 +1,6 @@ namespace raylib_beef.Enums { - public enum BlendMode : int + public enum BlendMode : int32 { BLEND_ALPHA = 0, // Blend textures considering alpha (default) BLEND_ADDITIVE, // Blend textures adding colors diff --git a/src/Enums/CameraMode.bf b/src/Enums/CameraMode.bf index 7c94c87..c77a1c2 100644 --- a/src/Enums/CameraMode.bf +++ b/src/Enums/CameraMode.bf @@ -1,7 +1,7 @@ namespace raylib_beef.Enums { // Camera system modes - public enum CameraMode : int + public enum CameraMode : int32 { CAMERA_CUSTOM = 0, CAMERA_FREE, diff --git a/src/Enums/CameraType.bf b/src/Enums/CameraType.bf index 17abfec..defb434 100644 --- a/src/Enums/CameraType.bf +++ b/src/Enums/CameraType.bf @@ -1,6 +1,6 @@ namespace raylib_beef.Enums { - public enum CameraType : int + public enum CameraType : int32 { CAMERA_PERSPECTIVE = 0, CAMERA_ORTHOGRAPHIC diff --git a/src/Enums/ConfigFlag.bf b/src/Enums/ConfigFlag.bf index 0e12cd2..5c05f91 100644 --- a/src/Enums/ConfigFlag.bf +++ b/src/Enums/ConfigFlag.bf @@ -1,6 +1,6 @@ namespace raylib_beef.Enums { - public enum ConfigFlag : int + public enum ConfigFlag : int32 { FLAG_RESERVED = 1, // Reserved FLAG_FULLSCREEN_MODE = 2, // Set to run program in fullscreen diff --git a/src/Enums/CubemapLayoutType.bf b/src/Enums/CubemapLayoutType.bf index 043f307..b6eeff9 100644 --- a/src/Enums/CubemapLayoutType.bf +++ b/src/Enums/CubemapLayoutType.bf @@ -1,7 +1,7 @@ namespace raylib_beef.Enums { // Cubemap layout type - public enum CubemapLayoutType : int + public enum CubemapLayoutType : int32 { CUBEMAP_AUTO_DETECT = 0, // Automatically detect layout type CUBEMAP_LINE_VERTICAL, // Layout is defined by a vertical line with faces diff --git a/src/Enums/FontType.bf b/src/Enums/FontType.bf index 28c4fbc..ba7fdbb 100644 --- a/src/Enums/FontType.bf +++ b/src/Enums/FontType.bf @@ -1,7 +1,7 @@ namespace raylib_beef.Enums { // Font type, defines generation method - public enum FontType : int + public enum FontType : int32 { FONT_DEFAULT = 0, // Default font generation, anti-aliased FONT_BITMAP, // Bitmap font generation, no anti-aliasing diff --git a/src/Enums/GamepadAxis.bf b/src/Enums/GamepadAxis.bf index 518dfe0..cd68254 100644 --- a/src/Enums/GamepadAxis.bf +++ b/src/Enums/GamepadAxis.bf @@ -1,6 +1,6 @@ namespace raylib_beef.Enums { - public enum GamepadAxis : int + public enum GamepadAxis : int32 { // This is here just for error checking GAMEPAD_AXIS_UNKNOWN = 0, diff --git a/src/Enums/GamepadButton.bf b/src/Enums/GamepadButton.bf index a16de1f..2d82d6b 100644 --- a/src/Enums/GamepadButton.bf +++ b/src/Enums/GamepadButton.bf @@ -1,7 +1,7 @@ namespace raylib_beef.Enums { // Gamepad Buttons - public enum GamepadButton : int + public enum GamepadButton : int32 { // This is here just for error checking GAMEPAD_BUTTON_UNKNOWN = 0, diff --git a/src/Enums/GamepadNumber.bf b/src/Enums/GamepadNumber.bf index 2958342..9b4c73f 100644 --- a/src/Enums/GamepadNumber.bf +++ b/src/Enums/GamepadNumber.bf @@ -1,7 +1,7 @@ namespace raylib_beef.Enums { // Gamepad number - public enum GamepadNumber : int + public enum GamepadNumber : int32 { GAMEPAD_PLAYER1 = 0, GAMEPAD_PLAYER2 = 1, diff --git a/src/Enums/GestureType.bf b/src/Enums/GestureType.bf index 6e5df78..7efe5ee 100644 --- a/src/Enums/GestureType.bf +++ b/src/Enums/GestureType.bf @@ -2,7 +2,7 @@ namespace raylib_beef.Enums { // Gestures type // NOTE: It could be used as flags to enable only some gestures - public enum GestureType : int + public enum GestureType : int32 { GESTURE_NONE = 0, GESTURE_TAP = 1, diff --git a/src/Enums/KeyboardKey.bf b/src/Enums/KeyboardKey.bf index 5751ed4..6b358b3 100644 --- a/src/Enums/KeyboardKey.bf +++ b/src/Enums/KeyboardKey.bf @@ -1,7 +1,7 @@ namespace raylib_beef.Enums { // Keyboard keys - public enum KeyboardKey : int + public enum KeyboardKey : int32 { // Alphanumeric keys KEY_APOSTROPHE = 39, diff --git a/src/Enums/MaterialMapType.bf b/src/Enums/MaterialMapType.bf index 388c8b7..d47a05c 100644 --- a/src/Enums/MaterialMapType.bf +++ b/src/Enums/MaterialMapType.bf @@ -1,7 +1,7 @@ namespace raylib_beef.Enums { // Material map type - public enum MaterialMapType : int + public enum MaterialMapType : int32 { MAP_ALBEDO = 0, // MAP_DIFFUSE MAP_METALNESS = 1, // MAP_SPECULAR diff --git a/src/Enums/MouseButton.bf b/src/Enums/MouseButton.bf index ec595ac..d16c33c 100644 --- a/src/Enums/MouseButton.bf +++ b/src/Enums/MouseButton.bf @@ -1,7 +1,7 @@ namespace raylib_beef.Enums { // Mouse buttons - public enum MouseButton : int + public enum MouseButton : int32 { MOUSE_LEFT_BUTTON = 0, MOUSE_RIGHT_BUTTON = 1, diff --git a/src/Enums/NPatchType.bf b/src/Enums/NPatchType.bf index 2780687..bc314c0 100644 --- a/src/Enums/NPatchType.bf +++ b/src/Enums/NPatchType.bf @@ -1,7 +1,7 @@ namespace raylib_beef.Enums { // Type of n-patch - public enum NPatchType : int + public enum NPatchType : int32 { NPT_9PATCH = 0, // Npatch defined by 3x3 tiles NPT_3PATCH_VERTICAL, // Npatch defined by 1x3 tiles diff --git a/src/Enums/PhysicsShapeType.bf b/src/Enums/PhysicsShapeType.bf index 0352233..399073d 100644 --- a/src/Enums/PhysicsShapeType.bf +++ b/src/Enums/PhysicsShapeType.bf @@ -1,6 +1,6 @@ namespace raylib_beef.Enums { - public enum PhysicsShapeType + public enum PhysicsShapeType : int32 { PHYSICS_CIRCLE, PHYSICS_POLYGON diff --git a/src/Enums/PixelFormat.bf b/src/Enums/PixelFormat.bf index 25e315f..b2cffb4 100644 --- a/src/Enums/PixelFormat.bf +++ b/src/Enums/PixelFormat.bf @@ -2,7 +2,7 @@ namespace raylib_beef.Enums { // Pixel formats // NOTE: Support depends on OpenGL version and platform - public enum PixelFormat : int + public enum PixelFormat : int32 { UNCOMPRESSED_GRAYSCALE = 1, // 8 bit per pixel (no alpha) UNCOMPRESSED_GRAY_ALPHA, // 8*2 bpp (2 channels) diff --git a/src/Enums/ShaderLocationIndex.bf b/src/Enums/ShaderLocationIndex.bf index 58af997..9c35e70 100644 --- a/src/Enums/ShaderLocationIndex.bf +++ b/src/Enums/ShaderLocationIndex.bf @@ -1,7 +1,7 @@ namespace raylib_beef.Enums { // Shader location point type - public enum ShaderLocationIndex : int + public enum ShaderLocationIndex : int32 { LOC_VERTEX_POSITION = 0, LOC_VERTEX_TEXCOORD01, diff --git a/src/Enums/ShaderUniformDataType.bf b/src/Enums/ShaderUniformDataType.bf index e62fa78..4550d5c 100644 --- a/src/Enums/ShaderUniformDataType.bf +++ b/src/Enums/ShaderUniformDataType.bf @@ -1,7 +1,7 @@ namespace raylib_beef.Enums { // Shader uniform data types - public enum ShaderUniformDataType : int + public enum ShaderUniformDataType : int32 { UNIFORM_FLOAT = 0, UNIFORM_VEC2, diff --git a/src/Enums/TextureFilterMode.bf b/src/Enums/TextureFilterMode.bf index 8c0bbe2..90fd35d 100644 --- a/src/Enums/TextureFilterMode.bf +++ b/src/Enums/TextureFilterMode.bf @@ -3,7 +3,7 @@ namespace raylib_beef.Enums // Texture parameters: filter mode // NOTE 1: Filtering considers mipmaps if available in the texture // NOTE 2: Filter is accordingly set for minification and magnification - public enum TextureFilterMode : int + public enum TextureFilterMode : int32 { FILTER_POINT = 0, // No filter, just pixel aproximation FILTER_BILINEAR, // Linear filtering diff --git a/src/Enums/TextureWrapMode.bf b/src/Enums/TextureWrapMode.bf index 9ca8f90..bfac105 100644 --- a/src/Enums/TextureWrapMode.bf +++ b/src/Enums/TextureWrapMode.bf @@ -1,7 +1,7 @@ namespace raylib_beef.Enums { // Texture parameters: wrap mode - public enum TextureWrapMode : int + public enum TextureWrapMode : int32 { WRAP_REPEAT = 0, // Repeats texture in tiled mode WRAP_CLAMP, // Clamps texture to edge pixel in tiled mode diff --git a/src/Enums/TraceLogType.bf b/src/Enums/TraceLogType.bf index 6a853b9..bf36416 100644 --- a/src/Enums/TraceLogType.bf +++ b/src/Enums/TraceLogType.bf @@ -1,7 +1,7 @@ namespace raylib_beef.Enums { // Trace log type - public enum TraceLogType : int + public enum TraceLogType : int32 { LOG_ALL = 0, // Display all logs LOG_TRACE, diff --git a/src/Extensions/SubText.bf b/src/Extensions/SubText.bf index 7c07ff6..4a0e586 100644 --- a/src/Extensions/SubText.bf +++ b/src/Extensions/SubText.bf @@ -1,11 +1,11 @@ -namespace System +/*namespace System { - /*extension String + extension String { public String SubText(String input, int position, int length) { return new String(input) .Substring(position, Math.Min(length, input.Length)).DecodedChars; } - }*/ -} \ No newline at end of file + } +}*/ \ No newline at end of file diff --git a/src/Types/AudioStream.bf b/src/Types/AudioStream.bf index bcb36c9..d846b45 100644 --- a/src/Types/AudioStream.bf +++ b/src/Types/AudioStream.bf @@ -4,9 +4,9 @@ namespace raylib_beef.Types [CRepr] public struct AudioStream { - public uint sampleRate; // Frequency (samples per second) - public uint sampleSize; // Bit depth (bits per sample): 8, 16, 32 (24 not supported) - public uint channels; // Number of channels (1-mono, 2-stereo) + public uint32 sampleRate; // Frequency (samples per second) + public uint32 sampleSize; // Bit depth (bits per sample): 8, 16, 32 (24 not supported) + public uint32 channels; // Number of channels (1-mono, 2-stereo) // audioBuffer refers to a rAudioBuffer * public void* audioBuffer; // Pointer to internal data used by the audio system diff --git a/src/Types/BoneInfo.bf b/src/Types/BoneInfo.bf index 51dacaa..e9f59b0 100644 --- a/src/Types/BoneInfo.bf +++ b/src/Types/BoneInfo.bf @@ -5,6 +5,6 @@ namespace raylib_beef.Types public struct BoneInfo { public char8[32] name; // Bone name - public int parent; // Bone parent + public int32 parent; // Bone parent } } diff --git a/src/Types/CharInfo.bf b/src/Types/CharInfo.bf index d59030f..0b9a9f8 100644 --- a/src/Types/CharInfo.bf +++ b/src/Types/CharInfo.bf @@ -4,10 +4,10 @@ namespace raylib_beef.Types [CRepr] public struct CharInfo { - public int value;// Character value (Unicode) - public int offsetX;// Character offset X when drawing - public int offsetY;// Character offset Y when drawing - public int advanceX;// Character advance position X + public int32 value;// Character value (Unicode) + public int32 offsetX;// Character offset X when drawing + public int32 offsetY;// Character offset Y when drawing + public int32 advanceX;// Character advance position X public Image image;// Character image data } } diff --git a/src/Types/Font.bf b/src/Types/Font.bf index 8269d41..19805c4 100644 --- a/src/Types/Font.bf +++ b/src/Types/Font.bf @@ -4,8 +4,8 @@ namespace raylib_beef.Types [CRepr] public struct Font { - public int baseSize;// Base size (default chars height) - public int charsCount;// Number of characters + public int32 baseSize;// Base size (default chars height) + public int32 charsCount;// Number of characters public Texture2D texture;// Font texture // recs refers to a Rectangle * diff --git a/src/Types/Image.bf b/src/Types/Image.bf index 68467b1..3bd8d69 100644 --- a/src/Types/Image.bf +++ b/src/Types/Image.bf @@ -6,9 +6,9 @@ namespace raylib_beef.Types { // data refers to a void * public void* data;// Image raw data - public int width;// Image base width - public int height;// Image base height - public int mipmaps;// Mipmap levels, 1 by default - public int format;// Data format (PixelFormat type) + public int32 width;// Image base width + public int32 height;// Image base height + public int32 mipmaps;// Mipmap levels, 1 by default + public int32 format;// Data format (PixelFormat type) } } diff --git a/src/Types/Mesh.bf b/src/Types/Mesh.bf index efc094a..0bae34a 100644 --- a/src/Types/Mesh.bf +++ b/src/Types/Mesh.bf @@ -4,8 +4,8 @@ namespace raylib_beef.Types [CRepr] public struct Mesh { - public int vertexCount;// Number of vertices stored in arrays - public int triangleCount;// Number of triangles stored (indexed or not) + public int32 vertexCount;// Number of vertices stored in arrays + public int32 triangleCount;// Number of triangles stored (indexed or not) // Default vertex data // vertices refers to a float * @@ -35,15 +35,15 @@ namespace raylib_beef.Types public float* animNormals;// Animated normals (after bones transformations) // vertices refers to a int * - public int* boneIds;// Vertex bone ids, up to 4 bones influence by vertex (skinning) + public int32* boneIds;// Vertex bone ids, up to 4 bones influence by vertex (skinning) // boneWeights refers to a float * public float* boneWeights;// Vertex bone weight, up to 4 bones influence by vertex (skinning) // OpenGL identifiers - public uint vaoId;// OpenGL Vertex Array Object id + public uint32 vaoId;// OpenGL Vertex Array Object id // vboId refers to a uint[] - public int* vboId;// OpenGL Vertex Buffer Objects id (default vertex data) + public int32* vboId;// OpenGL Vertex Buffer Objects id (default vertex data) } } diff --git a/src/Types/Model.bf b/src/Types/Model.bf index ff5b315..96f6f24 100644 --- a/src/Types/Model.bf +++ b/src/Types/Model.bf @@ -5,18 +5,18 @@ namespace raylib_beef.Types public struct Model { public Matrix transform;// Local transform matrix - public int meshCount;// Number of meshes + public int32 meshCount;// Number of meshes // meshes refers to a Mesh * public Mesh* meshes;// Meshes array - public int materialCount;// Number of materials + public int32 materialCount;// Number of materials // materials refers to a Material * public Material* materials;// Materials array refers to a Material * // meshMaterial refers to a int * - public int* meshMaterial;// Mesh material number - public int boneCount;// Number of bones + public int32* meshMaterial;// Mesh material number + public int32 boneCount;// Number of bones // bones refers to a BoneInfo * public BoneInfo* bones;// Bones information (skeleton) diff --git a/src/Types/ModelAnimation.bf b/src/Types/ModelAnimation.bf index f682ccd..65bb7b5 100644 --- a/src/Types/ModelAnimation.bf +++ b/src/Types/ModelAnimation.bf @@ -4,11 +4,11 @@ namespace raylib_beef.Types [CRepr] public struct ModelAnimation { - public int boneCount; // Number of bones + public int32 boneCount; // Number of bones // bones refers to a BoneInfo * public BoneInfo* bones; // Bones information (skeleton) - public int frameCount; // Number of animation frames + public int32 frameCount; // Number of animation frames // framePoses refers to a Transform ** public Transform** framePoses; // Poses array by frame diff --git a/src/Types/Music.bf b/src/Types/Music.bf index d7adb4e..fee7997 100644 --- a/src/Types/Music.bf +++ b/src/Types/Music.bf @@ -4,13 +4,13 @@ namespace raylib_beef.Types [CRepr] public struct Music { - public int ctxType;// Type of music context (audio filetype) + public int32 ctxType;// Type of music context (audio filetype) // ctxData refers to a void * public void* ctxData;// Audio context data, depends on type - public uint sampleCount;// Total number of samples - public uint loopCount;// Loops count (times music will play), 0 means infinite loop + public uint32 sampleCount;// Total number of samples + public uint32 loopCount;// Loops count (times music will play), 0 means infinite loop public AudioStream stream;// Audio stream } diff --git a/src/Types/NPatchInfo.bf b/src/Types/NPatchInfo.bf index 3d67eac..3ca4836 100644 --- a/src/Types/NPatchInfo.bf +++ b/src/Types/NPatchInfo.bf @@ -6,10 +6,10 @@ namespace raylib_beef.Types public struct NPatchInfo { public Rectangle sourceRec;// Region in the texture - public int left;// left border offset - public int top;// top border offset - public int right;// right border offset - public int bottom;// bottom border offset - public int type;// layout of the n-patch: 3x3, 1x3 or 3x1 + public int32 left;// left border offset + public int32 top;// top border offset + public int32 right;// right border offset + public int32 bottom;// bottom border offset + public int32 type;// layout of the n-patch: 3x3, 1x3 or 3x1 } } diff --git a/src/Types/PhysicsManifoldData.bf b/src/Types/PhysicsManifoldData.bf index d3b63c4..f1e9c2e 100644 --- a/src/Types/PhysicsManifoldData.bf +++ b/src/Types/PhysicsManifoldData.bf @@ -4,7 +4,7 @@ namespace raylib_beef.Types [CRepr] public struct PhysicsManifoldData { - public uint id;// Reference unique identifier + public uint32 id;// Reference unique identifier public PhysicsBodyData* bodyA;// Manifold first physics body reference public PhysicsBodyData* bodyB;// Manifold second physics body reference public float penetration;// Depth of penetration from collision diff --git a/src/Types/RayHitInfo.bf b/src/Types/RayHitInfo.bf index a03c27e..3329937 100644 --- a/src/Types/RayHitInfo.bf +++ b/src/Types/RayHitInfo.bf @@ -4,7 +4,7 @@ namespace raylib_beef.Types [CRepr] public struct RayHitInfo { - public bool hit;// Did the ray hit something? + public int32 hit;// Did the ray hit something? public float distance;// Distance to nearest hit public Vector3 position;// Position of nearest hit public Vector3 normal;// Surface normal of hit diff --git a/src/Types/Shader.bf b/src/Types/Shader.bf index 4a105ba..7bac85c 100644 --- a/src/Types/Shader.bf +++ b/src/Types/Shader.bf @@ -4,9 +4,9 @@ namespace raylib_beef.Types [CRepr] public struct Shader { - public uint id;// Shader program id + public uint32 id;// Shader program id // locs refers to a int * - public int* locs;// Shader locations array (MAX_SHADER_LOCATIONS) + public int32* locs;// Shader locations array (MAX_SHADER_LOCATIONS) } } diff --git a/src/Types/Sound.bf b/src/Types/Sound.bf index e078e8a..621d4d8 100644 --- a/src/Types/Sound.bf +++ b/src/Types/Sound.bf @@ -4,7 +4,7 @@ namespace raylib_beef.Types [CRepr] public struct Sound { - public uint sampleCount;// Total number of samples + public uint32 sampleCount;// Total number of samples public AudioStream stream;// Audio stream } } diff --git a/src/Types/Texture2D.bf b/src/Types/Texture2D.bf index 0b4c03b..5ee3105 100644 --- a/src/Types/Texture2D.bf +++ b/src/Types/Texture2D.bf @@ -1,13 +1,14 @@ using System; +using raylib_beef.Enums; namespace raylib_beef.Types { [CRepr] public struct Texture2D { - public uint id; // OpenGL texture id - public int width; // Texture base width - public int height; // Texture base height - public int mipmaps; // Mipmap levels, 1 by default - public int format; // Data format (PixelFormat type) + public uint32 id; // OpenGL texture id + public int32 width; // Texture base width + public int32 height; // Texture base height + public int32 mipmaps; // Mipmap levels, 1 by default + public uint32 format; // Data format (PixelFormat type) } } diff --git a/src/Types/VrDeviceInfo.bf b/src/Types/VrDeviceInfo.bf index 604beff..b93fa49 100644 --- a/src/Types/VrDeviceInfo.bf +++ b/src/Types/VrDeviceInfo.bf @@ -4,8 +4,8 @@ namespace raylib_beef.Types [CRepr] public struct VrDeviceInfo { - public int hResolution;// HMD horizontal resolution in pixels - public int vResolution;// HMD vertical resolution in pixels + public int32 hResolution;// HMD horizontal resolution in pixels + public int32 vResolution;// HMD vertical resolution in pixels public float hScreenSize;// HMD horizontal size in meters public float vScreenSize;// HMD vertical size in meters public float vScreenCenter;// HMD screen center in meters diff --git a/src/Types/Wave.bf b/src/Types/Wave.bf index 5ef42aa..fd300b8 100644 --- a/src/Types/Wave.bf +++ b/src/Types/Wave.bf @@ -4,10 +4,10 @@ namespace raylib_beef.Types [CRepr] public struct Wave { - public uint sampleCount;// Number of samples - public uint sampleRate;// Frequency (samples per second) - public uint sampleSize;// Bit depth (bits per sample): 8, 16, 32 (24 not supported) - public uint channels;// Number of channels (1-mono, 2-stereo) + public uint32 sampleCount;// Number of samples + public uint32 sampleRate;// Frequency (samples per second) + public uint32 sampleSize;// Bit depth (bits per sample): 8, 16, 32 (24 not supported) + public uint32 channels;// Number of channels (1-mono, 2-stereo) // data refers to a void * public void* data;// Buffer data pointer