From 524a8179c9629e3e4ff33bb95ea0506256545811 Mon Sep 17 00:00:00 2001 From: Braedon Lewis Date: Thu, 13 Apr 2023 10:45:59 -0400 Subject: [PATCH] Fix some types --- generator/Program.cs | 5 +- raylib-beef/src/AudioStream.bf | 8 +- raylib-beef/src/BoneInfo.bf | 4 +- raylib-beef/src/Camera3D.bf | 4 +- raylib-beef/src/FilePathList.bf | 6 +- raylib-beef/src/Font.bf | 8 +- raylib-beef/src/GlyphInfo.bf | 10 +- raylib-beef/src/Image.bf | 10 +- raylib-beef/src/Mesh.bf | 10 +- raylib-beef/src/Model.bf | 10 +- raylib-beef/src/ModelAnimation.bf | 6 +- raylib-beef/src/Music.bf | 6 +- raylib-beef/src/NPatchInfo.bf | 12 +- raylib-beef/src/Raylib.bf | 436 +++++++++++++++--------------- raylib-beef/src/Raymath.bf | 8 +- raylib-beef/src/RenderTexture.bf | 4 +- raylib-beef/src/Rlgl.bf | 172 ++++++------ raylib-beef/src/Shader.bf | 6 +- raylib-beef/src/Sound.bf | 4 +- raylib-beef/src/Texture.bf | 12 +- raylib-beef/src/VrDeviceInfo.bf | 6 +- raylib-beef/src/Wave.bf | 10 +- raylib-beef/src/rlDrawCall.bf | 10 +- raylib-beef/src/rlRenderBatch.bf | 8 +- raylib-beef/src/rlVertexBuffer.bf | 10 +- 25 files changed, 393 insertions(+), 392 deletions(-) diff --git a/generator/Program.cs b/generator/Program.cs index 492e201..66dd490 100644 --- a/generator/Program.cs +++ b/generator/Program.cs @@ -297,6 +297,7 @@ namespace RaylibBeefGenerator input = ReplaceWholeWord(input, "long", "int32"); input = ReplaceWholeWord(input, "va_list", "void*"); input = ReplaceWholeWord(input, "short", "uint16"); + input = ReplaceWholeWord(input, "int", "int32"); input = ReplaceWholeWord(input, "INT", "int"); input = ReplaceWholeWord(input, "STRING", "char8*"); input = ReplaceWholeWord(input, "FLOAT", "float"); @@ -306,13 +307,13 @@ namespace RaylibBeefGenerator if (input.StartsWith("const")) input = input.Remove(0, 6); - if (input.StartsWith("unsigned")) + if (input.StartsWith("unsigned") && !input.EndsWith("int")) input = input.Remove(0, 9); switch (input) { case "unsigned int": - return "c_uint"; + return "uint32"; default: return input; } diff --git a/raylib-beef/src/AudioStream.bf b/raylib-beef/src/AudioStream.bf index 4c3e3c0..7e16100 100644 --- a/raylib-beef/src/AudioStream.bf +++ b/raylib-beef/src/AudioStream.bf @@ -7,15 +7,15 @@ namespace RaylibBeef; public struct AudioStream { /// Frequency (samples per second) - public int sampleRate; + public int32 sampleRate; /// Bit depth (bits per sample): 8, 16, 32 (24 not supported) - public int sampleSize; + public int32 sampleSize; /// Number of channels (1-mono, 2-stereo, ...) - public int channels; + public int32 channels; - public this(int sampleRate, int sampleSize, int channels) + public this(int32 sampleRate, int32 sampleSize, int32 channels) { this.sampleRate = sampleRate; this.sampleSize = sampleSize; diff --git a/raylib-beef/src/BoneInfo.bf b/raylib-beef/src/BoneInfo.bf index 50a6d88..1252189 100644 --- a/raylib-beef/src/BoneInfo.bf +++ b/raylib-beef/src/BoneInfo.bf @@ -10,9 +10,9 @@ public struct BoneInfo public char8[32] name; /// Bone parent - public int parent; + public int32 parent; - public this(char8[32] name, int parent) + public this(char8[32] name, int32 parent) { this.name = name; this.parent = parent; diff --git a/raylib-beef/src/Camera3D.bf b/raylib-beef/src/Camera3D.bf index 2462741..c9bbac5 100644 --- a/raylib-beef/src/Camera3D.bf +++ b/raylib-beef/src/Camera3D.bf @@ -21,9 +21,9 @@ public struct Camera3D public float fovy; /// Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC - public int projection; + public int32 projection; - public this(Vector3 position, Vector3 target, Vector3 up, float fovy, int projection) + public this(Vector3 position, Vector3 target, Vector3 up, float fovy, int32 projection) { this.position = position; this.target = target; diff --git a/raylib-beef/src/FilePathList.bf b/raylib-beef/src/FilePathList.bf index b991d88..549be48 100644 --- a/raylib-beef/src/FilePathList.bf +++ b/raylib-beef/src/FilePathList.bf @@ -7,15 +7,15 @@ namespace RaylibBeef; public struct FilePathList { /// Filepaths max entries - public int capacity; + public int32 capacity; /// Filepaths entries count - public int count; + public int32 count; /// Filepaths entries public char8 ** paths; - public this(int capacity, int count, char8 ** paths) + public this(int32 capacity, int32 count, char8 ** paths) { this.capacity = capacity; this.count = count; diff --git a/raylib-beef/src/Font.bf b/raylib-beef/src/Font.bf index e2b1364..43b2def 100644 --- a/raylib-beef/src/Font.bf +++ b/raylib-beef/src/Font.bf @@ -7,13 +7,13 @@ namespace RaylibBeef; public struct Font { /// Base size (default chars height) - public int baseSize; + public int32 baseSize; /// Number of glyph characters - public int glyphCount; + public int32 glyphCount; /// Padding around the glyph characters - public int glyphPadding; + public int32 glyphPadding; /// Texture atlas containing the glyphs public Texture2D texture; @@ -24,7 +24,7 @@ public struct Font /// Glyphs info data public GlyphInfo * glyphs; - public this(int baseSize, int glyphCount, int glyphPadding, Texture2D texture, Rectangle * recs, GlyphInfo * glyphs) + public this(int32 baseSize, int32 glyphCount, int32 glyphPadding, Texture2D texture, Rectangle * recs, GlyphInfo * glyphs) { this.baseSize = baseSize; this.glyphCount = glyphCount; diff --git a/raylib-beef/src/GlyphInfo.bf b/raylib-beef/src/GlyphInfo.bf index 06e7955..c664bd7 100644 --- a/raylib-beef/src/GlyphInfo.bf +++ b/raylib-beef/src/GlyphInfo.bf @@ -7,21 +7,21 @@ namespace RaylibBeef; public struct GlyphInfo { /// Character value (Unicode) - public int value; + public int32 value; /// Character offset X when drawing - public int offsetX; + public int32 offsetX; /// Character offset Y when drawing - public int offsetY; + public int32 offsetY; /// Character advance position X - public int advanceX; + public int32 advanceX; /// Character image data public Image image; - public this(int value, int offsetX, int offsetY, int advanceX, Image image) + public this(int32 value, int32 offsetX, int32 offsetY, int32 advanceX, Image image) { this.value = value; this.offsetX = offsetX; diff --git a/raylib-beef/src/Image.bf b/raylib-beef/src/Image.bf index 4fd793c..459e09a 100644 --- a/raylib-beef/src/Image.bf +++ b/raylib-beef/src/Image.bf @@ -10,18 +10,18 @@ public struct Image public void * data; /// Image base width - public int width; + public int32 width; /// Image base height - public int height; + public int32 height; /// Mipmap levels, 1 by default - public int mipmaps; + public int32 mipmaps; /// Data format (PixelFormat type) - public int format; + public int32 format; - public this(void * data, int width, int height, int mipmaps, int format) + public this(void * data, int32 width, int32 height, int32 mipmaps, int32 format) { this.data = data; this.width = width; diff --git a/raylib-beef/src/Mesh.bf b/raylib-beef/src/Mesh.bf index bc8dfd9..fef0156 100644 --- a/raylib-beef/src/Mesh.bf +++ b/raylib-beef/src/Mesh.bf @@ -7,10 +7,10 @@ namespace RaylibBeef; public struct Mesh { /// Number of vertices stored in arrays - public int vertexCount; + public int32 vertexCount; /// Number of triangles stored (indexed or not) - public int triangleCount; + public int32 triangleCount; /// Vertex position (XYZ - 3 components per vertex) (shader-location = 0) public float * vertices; @@ -46,12 +46,12 @@ public struct Mesh public float * boneWeights; /// OpenGL Vertex Array Object id - public int vaoId; + public int32 vaoId; /// OpenGL Vertex Buffer Objects id (default vertex data) - public int * vboId; + public int32 * vboId; - public this(int vertexCount, int triangleCount, float * vertices, float * texcoords, float * texcoords2, float * normals, float * tangents, char8 * colors, uint16 * indices, float * animVertices, float * animNormals, char8 * boneIds, float * boneWeights, int vaoId, int * vboId) + public this(int32 vertexCount, int32 triangleCount, float * vertices, float * texcoords, float * texcoords2, float * normals, float * tangents, char8 * colors, uint16 * indices, float * animVertices, float * animNormals, char8 * boneIds, float * boneWeights, int32 vaoId, int32 * vboId) { this.vertexCount = vertexCount; this.triangleCount = triangleCount; diff --git a/raylib-beef/src/Model.bf b/raylib-beef/src/Model.bf index d47cb15..59bb979 100644 --- a/raylib-beef/src/Model.bf +++ b/raylib-beef/src/Model.bf @@ -10,10 +10,10 @@ public struct Model public Matrix transform; /// Number of meshes - public int meshCount; + public int32 meshCount; /// Number of materials - public int materialCount; + public int32 materialCount; /// Meshes array public Mesh * meshes; @@ -22,10 +22,10 @@ public struct Model public Material * materials; /// Mesh material number - public int * meshMaterial; + public int32 * meshMaterial; /// Number of bones - public int boneCount; + public int32 boneCount; /// Bones information (skeleton) public BoneInfo * bones; @@ -33,7 +33,7 @@ public struct Model /// Bones base transformation (pose) public Transform * bindPose; - public this(Matrix transform, int meshCount, int materialCount, Mesh * meshes, Material * materials, int * meshMaterial, int boneCount, BoneInfo * bones, Transform * bindPose) + public this(Matrix transform, int32 meshCount, int32 materialCount, Mesh * meshes, Material * materials, int32 * meshMaterial, int32 boneCount, BoneInfo * bones, Transform * bindPose) { this.transform = transform; this.meshCount = meshCount; diff --git a/raylib-beef/src/ModelAnimation.bf b/raylib-beef/src/ModelAnimation.bf index 4d1a67f..9ce671e 100644 --- a/raylib-beef/src/ModelAnimation.bf +++ b/raylib-beef/src/ModelAnimation.bf @@ -7,10 +7,10 @@ namespace RaylibBeef; public struct ModelAnimation { /// Number of bones - public int boneCount; + public int32 boneCount; /// Number of animation frames - public int frameCount; + public int32 frameCount; /// Bones information (skeleton) public BoneInfo * bones; @@ -18,7 +18,7 @@ public struct ModelAnimation /// Poses array by frame public Transform ** framePoses; - public this(int boneCount, int frameCount, BoneInfo * bones, Transform ** framePoses) + public this(int32 boneCount, int32 frameCount, BoneInfo * bones, Transform ** framePoses) { this.boneCount = boneCount; this.frameCount = frameCount; diff --git a/raylib-beef/src/Music.bf b/raylib-beef/src/Music.bf index 1c52ff7..0ed4b6d 100644 --- a/raylib-beef/src/Music.bf +++ b/raylib-beef/src/Music.bf @@ -10,18 +10,18 @@ public struct Music public AudioStream stream; /// Total number of frames (considering channels) - public int frameCount; + public int32 frameCount; /// Music looping enable public bool looping; /// Type of music context (audio filetype) - public int ctxType; + public int32 ctxType; /// Audio context data, depends on type public void * ctxData; - public this(AudioStream stream, int frameCount, bool looping, int ctxType, void * ctxData) + public this(AudioStream stream, int32 frameCount, bool looping, int32 ctxType, void * ctxData) { this.stream = stream; this.frameCount = frameCount; diff --git a/raylib-beef/src/NPatchInfo.bf b/raylib-beef/src/NPatchInfo.bf index c228f6a..6dadc66 100644 --- a/raylib-beef/src/NPatchInfo.bf +++ b/raylib-beef/src/NPatchInfo.bf @@ -10,21 +10,21 @@ public struct NPatchInfo public Rectangle source; /// Left border offset - public int left; + public int32 left; /// Top border offset - public int top; + public int32 top; /// Right border offset - public int right; + public int32 right; /// Bottom border offset - public int bottom; + public int32 bottom; /// Layout of the n-patch: 3x3, 1x3 or 3x1 - public int layout; + public int32 layout; - public this(Rectangle source, int left, int top, int right, int bottom, int layout) + public this(Rectangle source, int32 left, int32 top, int32 right, int32 bottom, int32 layout) { this.source = source; this.left = left; diff --git a/raylib-beef/src/Raylib.bf b/raylib-beef/src/Raylib.bf index 6f4a2b3..760c2c1 100644 --- a/raylib-beef/src/Raylib.bf +++ b/raylib-beef/src/Raylib.bf @@ -99,7 +99,7 @@ public static class Raylib /// Initialize window and OpenGL context [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("InitWindow")] - public static extern void InitWindow(int width, int height, char8 * title); + public static extern void InitWindow(int32 width, int32 height, char8 * title); /// Check if KEY_ESCAPE pressed or Close icon pressed [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("WindowShouldClose")] @@ -139,15 +139,15 @@ public static class Raylib /// Check if one specific window flag is enabled [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("IsWindowState")] - public static extern bool IsWindowState(int flag); + public static extern bool IsWindowState(int32 flag); /// Set window configuration state using flags (only PLATFORM_DESKTOP) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetWindowState")] - public static extern void SetWindowState(int flags); + public static extern void SetWindowState(int32 flags); /// Clear window configuration state flags [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ClearWindowState")] - public static extern void ClearWindowState(int flags); + public static extern void ClearWindowState(int32 flags); /// Toggle window state: fullscreen/windowed (only PLATFORM_DESKTOP) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ToggleFullscreen")] @@ -171,7 +171,7 @@ public static class Raylib /// Set icon for window (multiple images, RGBA 32bit, only PLATFORM_DESKTOP) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetWindowIcons")] - public static extern void SetWindowIcons(Image * images, int count); + public static extern void SetWindowIcons(Image * images, int32 count); /// Set title for window (only PLATFORM_DESKTOP) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetWindowTitle")] @@ -179,19 +179,19 @@ public static class Raylib /// Set window position on screen (only PLATFORM_DESKTOP) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetWindowPosition")] - public static extern void SetWindowPosition(int x, int y); + public static extern void SetWindowPosition(int32 x, int32 y); /// Set monitor for the current window (fullscreen mode) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetWindowMonitor")] - public static extern void SetWindowMonitor(int monitor); + public static extern void SetWindowMonitor(int32 monitor); /// Set window minimum dimensions (for FLAG_WINDOW_RESIZABLE) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetWindowMinSize")] - public static extern void SetWindowMinSize(int width, int height); + public static extern void SetWindowMinSize(int32 width, int32 height); /// Set window dimensions [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetWindowSize")] - public static extern void SetWindowSize(int width, int height); + public static extern void SetWindowSize(int32 width, int32 height); /// Set window opacity [0.0f..1.0f] (only PLATFORM_DESKTOP) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetWindowOpacity")] @@ -203,51 +203,51 @@ public static class Raylib /// Get current screen width [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetScreenWidth")] - public static extern int GetScreenWidth(); + public static extern int32 GetScreenWidth(); /// Get current screen height [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetScreenHeight")] - public static extern int GetScreenHeight(); + public static extern int32 GetScreenHeight(); /// Get current render width (it considers HiDPI) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetRenderWidth")] - public static extern int GetRenderWidth(); + public static extern int32 GetRenderWidth(); /// Get current render height (it considers HiDPI) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetRenderHeight")] - public static extern int GetRenderHeight(); + public static extern int32 GetRenderHeight(); /// Get number of connected monitors [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetMonitorCount")] - public static extern int GetMonitorCount(); + public static extern int32 GetMonitorCount(); /// Get current connected monitor [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetCurrentMonitor")] - public static extern int GetCurrentMonitor(); + public static extern int32 GetCurrentMonitor(); /// Get specified monitor position [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetMonitorPosition")] - public static extern Vector2 GetMonitorPosition(int monitor); + public static extern Vector2 GetMonitorPosition(int32 monitor); /// Get specified monitor width (current video mode used by monitor) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetMonitorWidth")] - public static extern int GetMonitorWidth(int monitor); + public static extern int32 GetMonitorWidth(int32 monitor); /// Get specified monitor height (current video mode used by monitor) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetMonitorHeight")] - public static extern int GetMonitorHeight(int monitor); + public static extern int32 GetMonitorHeight(int32 monitor); /// Get specified monitor physical width in millimetres [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetMonitorPhysicalWidth")] - public static extern int GetMonitorPhysicalWidth(int monitor); + public static extern int32 GetMonitorPhysicalWidth(int32 monitor); /// Get specified monitor physical height in millimetres [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetMonitorPhysicalHeight")] - public static extern int GetMonitorPhysicalHeight(int monitor); + public static extern int32 GetMonitorPhysicalHeight(int32 monitor); /// Get specified monitor refresh rate [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetMonitorRefreshRate")] - public static extern int GetMonitorRefreshRate(int monitor); + public static extern int32 GetMonitorRefreshRate(int32 monitor); /// Get window position XY on monitor [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetWindowPosition")] @@ -259,7 +259,7 @@ public static class Raylib /// Get the human-readable, UTF-8 encoded name of the primary monitor [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetMonitorName")] - public static extern char8 * GetMonitorName(int monitor); + public static extern char8 * GetMonitorName(int32 monitor); /// Set clipboard text content [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetClipboardText")] @@ -359,7 +359,7 @@ public static class Raylib /// Begin blending mode (alpha, additive, multiplied, subtract, custom) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("BeginBlendMode")] - public static extern void BeginBlendMode(int mode); + public static extern void BeginBlendMode(int32 mode); /// End blending mode (reset to default: alpha blending) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("EndBlendMode")] @@ -367,7 +367,7 @@ public static class Raylib /// Begin scissor mode (define screen area for following drawing) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("BeginScissorMode")] - public static extern void BeginScissorMode(int x, int y, int width, int height); + public static extern void BeginScissorMode(int32 x, int32 y, int32 width, int32 height); /// End scissor mode [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("EndScissorMode")] @@ -403,27 +403,27 @@ public static class Raylib /// Get shader uniform location [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetShaderLocation")] - public static extern int GetShaderLocation(Shader shader, char8 * uniformName); + public static extern int32 GetShaderLocation(Shader shader, char8 * uniformName); /// Get shader attribute location [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetShaderLocationAttrib")] - public static extern int GetShaderLocationAttrib(Shader shader, char8 * attribName); + public static extern int32 GetShaderLocationAttrib(Shader shader, char8 * attribName); /// Set shader uniform value [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetShaderValue")] - public static extern void SetShaderValue(Shader shader, int locIndex, void * value, int uniformType); + public static extern void SetShaderValue(Shader shader, int32 locIndex, void * value, int32 uniformType); /// Set shader uniform value vector [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetShaderValueV")] - public static extern void SetShaderValueV(Shader shader, int locIndex, void * value, int uniformType, int count); + public static extern void SetShaderValueV(Shader shader, int32 locIndex, void * value, int32 uniformType, int32 count); /// Set shader uniform value (matrix 4x4) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetShaderValueMatrix")] - public static extern void SetShaderValueMatrix(Shader shader, int locIndex, Matrix mat); + public static extern void SetShaderValueMatrix(Shader shader, int32 locIndex, Matrix mat); /// Set shader uniform value for texture (sampler2d) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetShaderValueTexture")] - public static extern void SetShaderValueTexture(Shader shader, int locIndex, Texture2D texture); + public static extern void SetShaderValueTexture(Shader shader, int32 locIndex, Texture2D texture); /// Unload shader from GPU memory (VRAM) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("UnloadShader")] @@ -451,7 +451,7 @@ public static class Raylib /// Get size position for a 3d world space position [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetWorldToScreenEx")] - public static extern Vector2 GetWorldToScreenEx(Vector3 position, Camera camera, int width, int height); + public static extern Vector2 GetWorldToScreenEx(Vector3 position, Camera camera, int32 width, int32 height); /// Get the screen space position for a 2d camera world space position [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetWorldToScreen2D")] @@ -459,11 +459,11 @@ public static class Raylib /// Set target FPS (maximum) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetTargetFPS")] - public static extern void SetTargetFPS(int fps); + public static extern void SetTargetFPS(int32 fps); /// Get current FPS [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetFPS")] - public static extern int GetFPS(); + public static extern int32 GetFPS(); /// Get time in seconds for last frame drawn (delta time) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetFrameTime")] @@ -475,11 +475,11 @@ public static class Raylib /// Get a random value between min and max (both included) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetRandomValue")] - public static extern int GetRandomValue(int min, int max); + public static extern int32 GetRandomValue(int32 min, int32 max); /// Set the seed for the random number generator [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetRandomSeed")] - public static extern void SetRandomSeed(int seed); + public static extern void SetRandomSeed(int32 seed); /// Takes a screenshot of current screen (filename extension defines format) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("TakeScreenshot")] @@ -487,23 +487,23 @@ public static class Raylib /// Setup init configuration flags (view FLAGS) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetConfigFlags")] - public static extern void SetConfigFlags(int flags); + public static extern void SetConfigFlags(int32 flags); /// Show trace log messages (LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERROR...) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("TraceLog")] - public static extern void TraceLog(int logLevel, char8 * text); + public static extern void TraceLog(int32 logLevel, char8 * text); /// Set the current threshold (minimum) log level [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetTraceLogLevel")] - public static extern void SetTraceLogLevel(int logLevel); + public static extern void SetTraceLogLevel(int32 logLevel); /// Internal memory allocator [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("MemAlloc")] - public static extern void * MemAlloc(int size); + public static extern void * MemAlloc(int32 size); /// Internal memory reallocator [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("MemRealloc")] - public static extern void * MemRealloc(void * ptr, int size); + public static extern void * MemRealloc(void * ptr, int32 size); /// Internal memory free [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("MemFree")] @@ -535,7 +535,7 @@ public static class Raylib /// Load file data as byte array (read) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("LoadFileData")] - public static extern char8 * LoadFileData(char8 * fileName, int * bytesRead); + public static extern char8 * LoadFileData(char8 * fileName, int32 * bytesRead); /// Unload file data allocated by LoadFileData() [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("UnloadFileData")] @@ -543,11 +543,11 @@ public static class Raylib /// Save data to file from byte array (write), returns true on success [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SaveFileData")] - public static extern bool SaveFileData(char8 * fileName, void * data, int bytesToWrite); + public static extern bool SaveFileData(char8 * fileName, void * data, int32 bytesToWrite); /// Export data to code (.h), returns true on success [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ExportDataAsCode")] - public static extern bool ExportDataAsCode(char8 * data, int size, char8 * fileName); + public static extern bool ExportDataAsCode(char8 * data, int32 size, char8 * fileName); /// Load text data from file (read), returns a '\0' terminated string [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("LoadFileText")] @@ -575,7 +575,7 @@ public static class Raylib /// Get file length in bytes (NOTE: GetFileSize() conflicts with windows.h) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetFileLength")] - public static extern int GetFileLength(char8 * fileName); + public static extern int32 GetFileLength(char8 * fileName); /// Get pointer to extension for a filename string (includes dot: '.png') [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetFileExtension")] @@ -643,111 +643,111 @@ public static class Raylib /// Compress data (DEFLATE algorithm), memory must be MemFree() [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("CompressData")] - public static extern char8 * CompressData(char8 * data, int dataSize, int * compDataSize); + public static extern char8 * CompressData(char8 * data, int32 dataSize, int32 * compDataSize); /// Decompress data (DEFLATE algorithm), memory must be MemFree() [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DecompressData")] - public static extern char8 * DecompressData(char8 * compData, int compDataSize, int * dataSize); + public static extern char8 * DecompressData(char8 * compData, int32 compDataSize, int32 * dataSize); /// Encode data to Base64 string, memory must be MemFree() [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("EncodeDataBase64")] - public static extern char8 * EncodeDataBase64(char8 * data, int dataSize, int * outputSize); + public static extern char8 * EncodeDataBase64(char8 * data, int32 dataSize, int32 * outputSize); /// Decode Base64 string data, memory must be MemFree() [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DecodeDataBase64")] - public static extern char8 * DecodeDataBase64(char8 * data, int * outputSize); + public static extern char8 * DecodeDataBase64(char8 * data, int32 * outputSize); /// Check if a key has been pressed once [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("IsKeyPressed")] - public static extern bool IsKeyPressed(int key); + public static extern bool IsKeyPressed(int32 key); /// Check if a key is being pressed [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("IsKeyDown")] - public static extern bool IsKeyDown(int key); + public static extern bool IsKeyDown(int32 key); /// Check if a key has been released once [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("IsKeyReleased")] - public static extern bool IsKeyReleased(int key); + public static extern bool IsKeyReleased(int32 key); /// Check if a key is NOT being pressed [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("IsKeyUp")] - public static extern bool IsKeyUp(int key); + public static extern bool IsKeyUp(int32 key); /// Set a custom key to exit program (default is ESC) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetExitKey")] - public static extern void SetExitKey(int key); + public static extern void SetExitKey(int32 key); /// Get key pressed (keycode), call it multiple times for keys queued, returns 0 when the queue is empty [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetKeyPressed")] - public static extern int GetKeyPressed(); + public static extern int32 GetKeyPressed(); /// Get char pressed (unicode), call it multiple times for chars queued, returns 0 when the queue is empty [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetCharPressed")] - public static extern int GetCharPressed(); + public static extern int32 GetCharPressed(); /// Check if a gamepad is available [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("IsGamepadAvailable")] - public static extern bool IsGamepadAvailable(int gamepad); + public static extern bool IsGamepadAvailable(int32 gamepad); /// Get gamepad internal name id [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetGamepadName")] - public static extern char8 * GetGamepadName(int gamepad); + public static extern char8 * GetGamepadName(int32 gamepad); /// Check if a gamepad button has been pressed once [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("IsGamepadButtonPressed")] - public static extern bool IsGamepadButtonPressed(int gamepad, int button); + public static extern bool IsGamepadButtonPressed(int32 gamepad, int32 button); /// Check if a gamepad button is being pressed [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("IsGamepadButtonDown")] - public static extern bool IsGamepadButtonDown(int gamepad, int button); + public static extern bool IsGamepadButtonDown(int32 gamepad, int32 button); /// Check if a gamepad button has been released once [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("IsGamepadButtonReleased")] - public static extern bool IsGamepadButtonReleased(int gamepad, int button); + public static extern bool IsGamepadButtonReleased(int32 gamepad, int32 button); /// Check if a gamepad button is NOT being pressed [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("IsGamepadButtonUp")] - public static extern bool IsGamepadButtonUp(int gamepad, int button); + public static extern bool IsGamepadButtonUp(int32 gamepad, int32 button); /// Get the last gamepad button pressed [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetGamepadButtonPressed")] - public static extern int GetGamepadButtonPressed(); + public static extern int32 GetGamepadButtonPressed(); /// Get gamepad axis count for a gamepad [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetGamepadAxisCount")] - public static extern int GetGamepadAxisCount(int gamepad); + public static extern int32 GetGamepadAxisCount(int32 gamepad); /// Get axis movement value for a gamepad axis [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetGamepadAxisMovement")] - public static extern float GetGamepadAxisMovement(int gamepad, int axis); + public static extern float GetGamepadAxisMovement(int32 gamepad, int32 axis); /// Set internal gamepad mappings (SDL_GameControllerDB) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetGamepadMappings")] - public static extern int SetGamepadMappings(char8 * mappings); + public static extern int32 SetGamepadMappings(char8 * mappings); /// Check if a mouse button has been pressed once [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("IsMouseButtonPressed")] - public static extern bool IsMouseButtonPressed(int button); + public static extern bool IsMouseButtonPressed(int32 button); /// Check if a mouse button is being pressed [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("IsMouseButtonDown")] - public static extern bool IsMouseButtonDown(int button); + public static extern bool IsMouseButtonDown(int32 button); /// Check if a mouse button has been released once [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("IsMouseButtonReleased")] - public static extern bool IsMouseButtonReleased(int button); + public static extern bool IsMouseButtonReleased(int32 button); /// Check if a mouse button is NOT being pressed [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("IsMouseButtonUp")] - public static extern bool IsMouseButtonUp(int button); + public static extern bool IsMouseButtonUp(int32 button); /// Get mouse position X [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetMouseX")] - public static extern int GetMouseX(); + public static extern int32 GetMouseX(); /// Get mouse position Y [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetMouseY")] - public static extern int GetMouseY(); + public static extern int32 GetMouseY(); /// Get mouse position XY [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetMousePosition")] @@ -759,11 +759,11 @@ public static class Raylib /// Set mouse position XY [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetMousePosition")] - public static extern void SetMousePosition(int x, int y); + public static extern void SetMousePosition(int32 x, int32 y); /// Set mouse offset [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetMouseOffset")] - public static extern void SetMouseOffset(int offsetX, int offsetY); + public static extern void SetMouseOffset(int32 offsetX, int32 offsetY); /// Set mouse scaling [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetMouseScale")] @@ -779,39 +779,39 @@ public static class Raylib /// Set mouse cursor [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetMouseCursor")] - public static extern void SetMouseCursor(int cursor); + public static extern void SetMouseCursor(int32 cursor); /// Get touch position X for touch point 0 (relative to screen size) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetTouchX")] - public static extern int GetTouchX(); + public static extern int32 GetTouchX(); /// Get touch position Y for touch point 0 (relative to screen size) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetTouchY")] - public static extern int GetTouchY(); + public static extern int32 GetTouchY(); /// Get touch position XY for a touch point index (relative to screen size) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetTouchPosition")] - public static extern Vector2 GetTouchPosition(int index); + public static extern Vector2 GetTouchPosition(int32 index); /// Get touch point identifier for given index [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetTouchPointId")] - public static extern int GetTouchPointId(int index); + public static extern int32 GetTouchPointId(int32 index); /// Get number of touch points [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetTouchPointCount")] - public static extern int GetTouchPointCount(); + public static extern int32 GetTouchPointCount(); /// Enable a set of gestures using flags [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetGesturesEnabled")] - public static extern void SetGesturesEnabled(int flags); + public static extern void SetGesturesEnabled(int32 flags); /// Check if a gesture have been detected [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("IsGestureDetected")] - public static extern bool IsGestureDetected(int gesture); + public static extern bool IsGestureDetected(int32 gesture); /// Get latest detected gesture [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetGestureDetected")] - public static extern int GetGestureDetected(); + public static extern int32 GetGestureDetected(); /// Get gesture hold time in milliseconds [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetGestureHoldDuration")] @@ -835,7 +835,7 @@ public static class Raylib /// Update camera position for selected mode [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("UpdateCamera")] - public static extern void UpdateCamera(Camera * camera, int mode); + public static extern void UpdateCamera(Camera * camera, int32 mode); /// Update camera movement/rotation [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("UpdateCameraPro")] @@ -847,7 +847,7 @@ public static class Raylib /// Draw a pixel [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawPixel")] - public static extern void DrawPixel(int posX, int posY, Color color); + public static extern void DrawPixel(int32 posX, int32 posY, Color color); /// Draw a pixel (Vector version) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawPixelV")] @@ -855,7 +855,7 @@ public static class Raylib /// Draw a line [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawLine")] - public static extern void DrawLine(int startPosX, int startPosY, int endPosX, int endPosY, Color color); + public static extern void DrawLine(int32 startPosX, int32 startPosY, int32 endPosX, int32 endPosY, Color color); /// Draw a line (Vector version) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawLineV")] @@ -879,23 +879,23 @@ public static class Raylib /// Draw lines sequence [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawLineStrip")] - public static extern void DrawLineStrip(Vector2 * points, int pointCount, Color color); + public static extern void DrawLineStrip(Vector2 * points, int32 pointCount, Color color); /// Draw a color-filled circle [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawCircle")] - public static extern void DrawCircle(int centerX, int centerY, float radius, Color color); + public static extern void DrawCircle(int32 centerX, int32 centerY, float radius, Color color); /// Draw a piece of a circle [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawCircleSector")] - public static extern void DrawCircleSector(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color); + public static extern void DrawCircleSector(Vector2 center, float radius, float startAngle, float endAngle, int32 segments, Color color); /// Draw circle sector outline [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawCircleSectorLines")] - public static extern void DrawCircleSectorLines(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color); + public static extern void DrawCircleSectorLines(Vector2 center, float radius, float startAngle, float endAngle, int32 segments, Color color); /// Draw a gradient-filled circle [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawCircleGradient")] - public static extern void DrawCircleGradient(int centerX, int centerY, float radius, Color color1, Color color2); + public static extern void DrawCircleGradient(int32 centerX, int32 centerY, float radius, Color color1, Color color2); /// Draw a color-filled circle (Vector version) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawCircleV")] @@ -903,27 +903,27 @@ public static class Raylib /// Draw circle outline [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawCircleLines")] - public static extern void DrawCircleLines(int centerX, int centerY, float radius, Color color); + public static extern void DrawCircleLines(int32 centerX, int32 centerY, float radius, Color color); /// Draw ellipse [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawEllipse")] - public static extern void DrawEllipse(int centerX, int centerY, float radiusH, float radiusV, Color color); + public static extern void DrawEllipse(int32 centerX, int32 centerY, float radiusH, float radiusV, Color color); /// Draw ellipse outline [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawEllipseLines")] - public static extern void DrawEllipseLines(int centerX, int centerY, float radiusH, float radiusV, Color color); + public static extern void DrawEllipseLines(int32 centerX, int32 centerY, float radiusH, float radiusV, Color color); /// Draw ring [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawRing")] - public static extern void DrawRing(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color); + public static extern void DrawRing(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int32 segments, Color color); /// Draw ring outline [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawRingLines")] - public static extern void DrawRingLines(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color); + public static extern void DrawRingLines(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int32 segments, Color color); /// Draw a color-filled rectangle [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawRectangle")] - public static extern void DrawRectangle(int posX, int posY, int width, int height, Color color); + public static extern void DrawRectangle(int32 posX, int32 posY, int32 width, int32 height, Color color); /// Draw a color-filled rectangle (Vector version) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawRectangleV")] @@ -939,11 +939,11 @@ public static class Raylib /// Draw a vertical-gradient-filled rectangle [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawRectangleGradientV")] - public static extern void DrawRectangleGradientV(int posX, int posY, int width, int height, Color color1, Color color2); + public static extern void DrawRectangleGradientV(int32 posX, int32 posY, int32 width, int32 height, Color color1, Color color2); /// Draw a horizontal-gradient-filled rectangle [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawRectangleGradientH")] - public static extern void DrawRectangleGradientH(int posX, int posY, int width, int height, Color color1, Color color2); + public static extern void DrawRectangleGradientH(int32 posX, int32 posY, int32 width, int32 height, Color color1, Color color2); /// Draw a gradient-filled rectangle with custom vertex colors [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawRectangleGradientEx")] @@ -951,7 +951,7 @@ public static class Raylib /// Draw rectangle outline [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawRectangleLines")] - public static extern void DrawRectangleLines(int posX, int posY, int width, int height, Color color); + public static extern void DrawRectangleLines(int32 posX, int32 posY, int32 width, int32 height, Color color); /// Draw rectangle outline with extended parameters [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawRectangleLinesEx")] @@ -959,11 +959,11 @@ public static class Raylib /// Draw rectangle with rounded edges [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawRectangleRounded")] - public static extern void DrawRectangleRounded(Rectangle rec, float roundness, int segments, Color color); + public static extern void DrawRectangleRounded(Rectangle rec, float roundness, int32 segments, Color color); /// Draw rectangle with rounded edges outline [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawRectangleRoundedLines")] - public static extern void DrawRectangleRoundedLines(Rectangle rec, float roundness, int segments, float lineThick, Color color); + public static extern void DrawRectangleRoundedLines(Rectangle rec, float roundness, int32 segments, float lineThick, Color color); /// Draw a color-filled triangle (vertex in counter-clockwise order!) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawTriangle")] @@ -975,23 +975,23 @@ public static class Raylib /// Draw a triangle fan defined by points (first vertex is the center) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawTriangleFan")] - public static extern void DrawTriangleFan(Vector2 * points, int pointCount, Color color); + public static extern void DrawTriangleFan(Vector2 * points, int32 pointCount, Color color); /// Draw a triangle strip defined by points [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawTriangleStrip")] - public static extern void DrawTriangleStrip(Vector2 * points, int pointCount, Color color); + public static extern void DrawTriangleStrip(Vector2 * points, int32 pointCount, Color color); /// Draw a regular polygon (Vector version) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawPoly")] - public static extern void DrawPoly(Vector2 center, int sides, float radius, float rotation, Color color); + public static extern void DrawPoly(Vector2 center, int32 sides, float radius, float rotation, Color color); /// Draw a polygon outline of n sides [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawPolyLines")] - public static extern void DrawPolyLines(Vector2 center, int sides, float radius, float rotation, Color color); + public static extern void DrawPolyLines(Vector2 center, int32 sides, float radius, float rotation, Color color); /// Draw a polygon outline of n sides with extended parameters [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawPolyLinesEx")] - public static extern void DrawPolyLinesEx(Vector2 center, int sides, float radius, float rotation, float lineThick, Color color); + public static extern void DrawPolyLinesEx(Vector2 center, int32 sides, float radius, float rotation, float lineThick, Color color); /// Check collision between two rectangles [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("CheckCollisionRecs")] @@ -1019,7 +1019,7 @@ public static class Raylib /// Check if point is within a polygon described by array of vertices [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("CheckCollisionPointPoly")] - public static extern bool CheckCollisionPointPoly(Vector2 point, Vector2 * points, int pointCount); + public static extern bool CheckCollisionPointPoly(Vector2 point, Vector2 * points, int32 pointCount); /// Check the collision between two lines defined by two points each, returns collision point by reference [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("CheckCollisionLines")] @@ -1027,7 +1027,7 @@ public static class Raylib /// Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold] [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("CheckCollisionPointLine")] - public static extern bool CheckCollisionPointLine(Vector2 point, Vector2 p1, Vector2 p2, int threshold); + public static extern bool CheckCollisionPointLine(Vector2 point, Vector2 p1, Vector2 p2, int32 threshold); /// Get collision rectangle for two rectangles collision [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetCollisionRec")] @@ -1039,15 +1039,15 @@ public static class Raylib /// Load image from RAW file data [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("LoadImageRaw")] - public static extern Image LoadImageRaw(char8 * fileName, int width, int height, int format, int headerSize); + public static extern Image LoadImageRaw(char8 * fileName, int32 width, int32 height, int32 format, int32 headerSize); /// Load image sequence from file (frames appended to image.data) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("LoadImageAnim")] - public static extern Image LoadImageAnim(char8 * fileName, int * frames); + public static extern Image LoadImageAnim(char8 * fileName, int32 * frames); /// Load image from memory buffer, fileType refers to extension: i.e. '.png' [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("LoadImageFromMemory")] - public static extern Image LoadImageFromMemory(char8 * fileType, char8 * fileData, int dataSize); + public static extern Image LoadImageFromMemory(char8 * fileType, char8 * fileData, int32 dataSize); /// Load image from GPU texture data [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("LoadImageFromTexture")] @@ -1075,39 +1075,39 @@ public static class Raylib /// Generate image: plain color [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GenImageColor")] - public static extern Image GenImageColor(int width, int height, Color color); + public static extern Image GenImageColor(int32 width, int32 height, Color color); /// Generate image: vertical gradient [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GenImageGradientV")] - public static extern Image GenImageGradientV(int width, int height, Color top, Color bottom); + public static extern Image GenImageGradientV(int32 width, int32 height, Color top, Color bottom); /// Generate image: horizontal gradient [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GenImageGradientH")] - public static extern Image GenImageGradientH(int width, int height, Color left, Color right); + public static extern Image GenImageGradientH(int32 width, int32 height, Color left, Color right); /// Generate image: radial gradient [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GenImageGradientRadial")] - public static extern Image GenImageGradientRadial(int width, int height, float density, Color inner, Color outer); + public static extern Image GenImageGradientRadial(int32 width, int32 height, float density, Color inner, Color outer); /// Generate image: checked [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GenImageChecked")] - public static extern Image GenImageChecked(int width, int height, int checksX, int checksY, Color col1, Color col2); + public static extern Image GenImageChecked(int32 width, int32 height, int32 checksX, int32 checksY, Color col1, Color col2); /// Generate image: white noise [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GenImageWhiteNoise")] - public static extern Image GenImageWhiteNoise(int width, int height, float factor); + public static extern Image GenImageWhiteNoise(int32 width, int32 height, float factor); /// Generate image: perlin noise [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GenImagePerlinNoise")] - public static extern Image GenImagePerlinNoise(int width, int height, int offsetX, int offsetY, float scale); + public static extern Image GenImagePerlinNoise(int32 width, int32 height, int32 offsetX, int32 offsetY, float scale); /// Generate image: cellular algorithm, bigger tileSize means bigger cells [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GenImageCellular")] - public static extern Image GenImageCellular(int width, int height, int tileSize); + public static extern Image GenImageCellular(int32 width, int32 height, int32 tileSize); /// Generate image: grayscale image from text data [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GenImageText")] - public static extern Image GenImageText(int width, int height, char8 * text); + public static extern Image GenImageText(int32 width, int32 height, char8 * text); /// Create an image duplicate (useful for transformations) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ImageCopy")] @@ -1119,7 +1119,7 @@ public static class Raylib /// Create an image from text (default font) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ImageText")] - public static extern Image ImageText(char8 * text, int fontSize, Color color); + public static extern Image ImageText(char8 * text, int32 fontSize, Color color); /// Create an image from text (custom sprite font) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ImageTextEx")] @@ -1127,7 +1127,7 @@ public static class Raylib /// Convert image data to desired format [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ImageFormat")] - public static extern void ImageFormat(Image * image, int newFormat); + public static extern void ImageFormat(Image * image, int32 newFormat); /// Convert image to POT (power-of-two) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ImageToPOT")] @@ -1155,19 +1155,19 @@ public static class Raylib /// Apply Gaussian blur using a box blur approximation [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ImageBlurGaussian")] - public static extern void ImageBlurGaussian(Image * image, int blurSize); + public static extern void ImageBlurGaussian(Image * image, int32 blurSize); /// Resize image (Bicubic scaling algorithm) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ImageResize")] - public static extern void ImageResize(Image * image, int newWidth, int newHeight); + public static extern void ImageResize(Image * image, int32 newWidth, int32 newHeight); /// Resize image (Nearest-Neighbor scaling algorithm) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ImageResizeNN")] - public static extern void ImageResizeNN(Image * image, int newWidth, int newHeight); + public static extern void ImageResizeNN(Image * image, int32 newWidth, int32 newHeight); /// Resize canvas and fill with color [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ImageResizeCanvas")] - public static extern void ImageResizeCanvas(Image * image, int newWidth, int newHeight, int offsetX, int offsetY, Color fill); + public static extern void ImageResizeCanvas(Image * image, int32 newWidth, int32 newHeight, int32 offsetX, int32 offsetY, Color fill); /// Compute all mipmap levels for a provided image [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ImageMipmaps")] @@ -1175,7 +1175,7 @@ public static class Raylib /// Dither image data to 16bpp or lower (Floyd-Steinberg dithering) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ImageDither")] - public static extern void ImageDither(Image * image, int rBpp, int gBpp, int bBpp, int aBpp); + public static extern void ImageDither(Image * image, int32 rBpp, int32 gBpp, int32 bBpp, int32 aBpp); /// Flip image vertically [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ImageFlipVertical")] @@ -1211,7 +1211,7 @@ public static class Raylib /// Modify image color: brightness (-255 to 255) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ImageColorBrightness")] - public static extern void ImageColorBrightness(Image * image, int brightness); + public static extern void ImageColorBrightness(Image * image, int32 brightness); /// Modify image color: replace color [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ImageColorReplace")] @@ -1223,7 +1223,7 @@ public static class Raylib /// Load colors palette from image as a Color array (RGBA - 32bit) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("LoadImagePalette")] - public static extern Color * LoadImagePalette(Image image, int maxPaletteSize, int * colorCount); + public static extern Color * LoadImagePalette(Image image, int32 maxPaletteSize, int32 * colorCount); /// Unload color data loaded with LoadImageColors() [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("UnloadImageColors")] @@ -1239,7 +1239,7 @@ public static class Raylib /// Get image pixel color at (x, y) position [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetImageColor")] - public static extern Color GetImageColor(Image image, int x, int y); + public static extern Color GetImageColor(Image image, int32 x, int32 y); /// Clear image background with given color [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ImageClearBackground")] @@ -1247,7 +1247,7 @@ public static class Raylib /// Draw pixel within an image [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ImageDrawPixel")] - public static extern void ImageDrawPixel(Image * dst, int posX, int posY, Color color); + public static extern void ImageDrawPixel(Image * dst, int32 posX, int32 posY, Color color); /// Draw pixel within an image (Vector version) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ImageDrawPixelV")] @@ -1255,7 +1255,7 @@ public static class Raylib /// Draw line within an image [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ImageDrawLine")] - public static extern void ImageDrawLine(Image * dst, int startPosX, int startPosY, int endPosX, int endPosY, Color color); + public static extern void ImageDrawLine(Image * dst, int32 startPosX, int32 startPosY, int32 endPosX, int32 endPosY, Color color); /// Draw line within an image (Vector version) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ImageDrawLineV")] @@ -1263,23 +1263,23 @@ public static class Raylib /// Draw a filled circle within an image [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ImageDrawCircle")] - public static extern void ImageDrawCircle(Image * dst, int centerX, int centerY, int radius, Color color); + public static extern void ImageDrawCircle(Image * dst, int32 centerX, int32 centerY, int32 radius, Color color); /// Draw a filled circle within an image (Vector version) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ImageDrawCircleV")] - public static extern void ImageDrawCircleV(Image * dst, Vector2 center, int radius, Color color); + public static extern void ImageDrawCircleV(Image * dst, Vector2 center, int32 radius, Color color); /// Draw circle outline within an image [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ImageDrawCircleLines")] - public static extern void ImageDrawCircleLines(Image * dst, int centerX, int centerY, int radius, Color color); + public static extern void ImageDrawCircleLines(Image * dst, int32 centerX, int32 centerY, int32 radius, Color color); /// Draw circle outline within an image (Vector version) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ImageDrawCircleLinesV")] - public static extern void ImageDrawCircleLinesV(Image * dst, Vector2 center, int radius, Color color); + public static extern void ImageDrawCircleLinesV(Image * dst, Vector2 center, int32 radius, Color color); /// Draw rectangle within an image [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ImageDrawRectangle")] - public static extern void ImageDrawRectangle(Image * dst, int posX, int posY, int width, int height, Color color); + public static extern void ImageDrawRectangle(Image * dst, int32 posX, int32 posY, int32 width, int32 height, Color color); /// Draw rectangle within an image (Vector version) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ImageDrawRectangleV")] @@ -1291,7 +1291,7 @@ public static class Raylib /// Draw rectangle lines within an image [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ImageDrawRectangleLines")] - public static extern void ImageDrawRectangleLines(Image * dst, Rectangle rec, int thick, Color color); + public static extern void ImageDrawRectangleLines(Image * dst, Rectangle rec, int32 thick, Color color); /// Draw a source image within a destination image (tint applied to source) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ImageDraw")] @@ -1299,7 +1299,7 @@ public static class Raylib /// Draw text (using default font) within an image (destination) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ImageDrawText")] - public static extern void ImageDrawText(Image * dst, char8 * text, int posX, int posY, int fontSize, Color color); + public static extern void ImageDrawText(Image * dst, char8 * text, int32 posX, int32 posY, int32 fontSize, Color color); /// Draw text (custom sprite font) within an image (destination) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ImageDrawTextEx")] @@ -1315,11 +1315,11 @@ public static class Raylib /// Load cubemap from image, multiple image cubemap layouts supported [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("LoadTextureCubemap")] - public static extern TextureCubemap LoadTextureCubemap(Image image, int layout); + public static extern TextureCubemap LoadTextureCubemap(Image image, int32 layout); /// Load texture for rendering (framebuffer) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("LoadRenderTexture")] - public static extern RenderTexture2D LoadRenderTexture(int width, int height); + public static extern RenderTexture2D LoadRenderTexture(int32 width, int32 height); /// Check if a texture is ready [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("IsTextureReady")] @@ -1351,15 +1351,15 @@ public static class Raylib /// Set texture scaling filter mode [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetTextureFilter")] - public static extern void SetTextureFilter(Texture2D texture, int filter); + public static extern void SetTextureFilter(Texture2D texture, int32 filter); /// Set texture wrapping mode [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetTextureWrap")] - public static extern void SetTextureWrap(Texture2D texture, int wrap); + public static extern void SetTextureWrap(Texture2D texture, int32 wrap); /// Draw a Texture2D [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawTexture")] - public static extern void DrawTexture(Texture2D texture, int posX, int posY, Color tint); + public static extern void DrawTexture(Texture2D texture, int32 posX, int32 posY, Color tint); /// Draw a Texture2D with position defined as Vector2 [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawTextureV")] @@ -1387,7 +1387,7 @@ public static class Raylib /// Get hexadecimal value for a Color [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ColorToInt")] - public static extern int ColorToInt(Color color); + public static extern int32 ColorToInt(Color color); /// Get Color normalized as float [0..1] [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ColorNormalize")] @@ -1427,19 +1427,19 @@ public static class Raylib /// Get Color structure from hexadecimal value [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetColor")] - public static extern Color GetColor(int hexValue); + public static extern Color GetColor(int32 hexValue); /// Get Color from a source pixel pointer of certain format [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetPixelColor")] - public static extern Color GetPixelColor(void * srcPtr, int format); + public static extern Color GetPixelColor(void * srcPtr, int32 format); /// Set color formatted into destination pixel pointer [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetPixelColor")] - public static extern void SetPixelColor(void * dstPtr, Color color, int format); + public static extern void SetPixelColor(void * dstPtr, Color color, int32 format); /// Get pixel data size in bytes for certain format [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetPixelDataSize")] - public static extern int GetPixelDataSize(int width, int height, int format); + public static extern int32 GetPixelDataSize(int32 width, int32 height, int32 format); /// Get the default Font [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetFontDefault")] @@ -1451,15 +1451,15 @@ public static class Raylib /// Load font from file with extended parameters, use NULL for fontChars and 0 for glyphCount to load the default character set [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("LoadFontEx")] - public static extern Font LoadFontEx(char8 * fileName, int fontSize, int * fontChars, int glyphCount); + public static extern Font LoadFontEx(char8 * fileName, int32 fontSize, int32 * fontChars, int32 glyphCount); /// Load font from Image (XNA style) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("LoadFontFromImage")] - public static extern Font LoadFontFromImage(Image image, Color key, int firstChar); + public static extern Font LoadFontFromImage(Image image, Color key, int32 firstChar); /// Load font from memory buffer, fileType refers to extension: i.e. '.ttf' [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("LoadFontFromMemory")] - public static extern Font LoadFontFromMemory(char8 * fileType, char8 * fileData, int dataSize, int fontSize, int * fontChars, int glyphCount); + public static extern Font LoadFontFromMemory(char8 * fileType, char8 * fileData, int32 dataSize, int32 fontSize, int32 * fontChars, int32 glyphCount); /// Check if a font is ready [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("IsFontReady")] @@ -1467,15 +1467,15 @@ public static class Raylib /// Load font data for further use [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("LoadFontData")] - public static extern GlyphInfo * LoadFontData(char8 * fileData, int dataSize, int fontSize, int * fontChars, int glyphCount, int type); + public static extern GlyphInfo * LoadFontData(char8 * fileData, int32 dataSize, int32 fontSize, int32 * fontChars, int32 glyphCount, int32 type); /// Generate image font atlas using chars info [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GenImageFontAtlas")] - public static extern Image GenImageFontAtlas(GlyphInfo * chars, Rectangle ** recs, int glyphCount, int fontSize, int padding, int packMethod); + public static extern Image GenImageFontAtlas(GlyphInfo * chars, Rectangle ** recs, int32 glyphCount, int32 fontSize, int32 padding, int32 packMethod); /// Unload font chars info data (RAM) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("UnloadFontData")] - public static extern void UnloadFontData(GlyphInfo * chars, int glyphCount); + public static extern void UnloadFontData(GlyphInfo * chars, int32 glyphCount); /// Unload font from GPU memory (VRAM) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("UnloadFont")] @@ -1487,11 +1487,11 @@ public static class Raylib /// Draw current FPS [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawFPS")] - public static extern void DrawFPS(int posX, int posY); + public static extern void DrawFPS(int32 posX, int32 posY); /// Draw text (using default font) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawText")] - public static extern void DrawText(char8 * text, int posX, int posY, int fontSize, Color color); + public static extern void DrawText(char8 * text, int32 posX, int32 posY, int32 fontSize, Color color); /// Draw text using font and additional parameters [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawTextEx")] @@ -1503,15 +1503,15 @@ public static class Raylib /// Draw one character (codepoint) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawTextCodepoint")] - public static extern void DrawTextCodepoint(Font font, int codepoint, Vector2 position, float fontSize, Color tint); + public static extern void DrawTextCodepoint(Font font, int32 codepoint, Vector2 position, float fontSize, Color tint); /// Draw multiple character (codepoint) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawTextCodepoints")] - public static extern void DrawTextCodepoints(Font font, int * codepoints, int count, Vector2 position, float fontSize, float spacing, Color tint); + public static extern void DrawTextCodepoints(Font font, int32 * codepoints, int32 count, Vector2 position, float fontSize, float spacing, Color tint); /// Measure string width for default font [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("MeasureText")] - public static extern int MeasureText(char8 * text, int fontSize); + public static extern int32 MeasureText(char8 * text, int32 fontSize); /// Measure string size for Font [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("MeasureTextEx")] @@ -1519,19 +1519,19 @@ public static class Raylib /// Get glyph index position in font for a codepoint (unicode character), fallback to '?' if not found [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetGlyphIndex")] - public static extern int GetGlyphIndex(Font font, int codepoint); + public static extern int32 GetGlyphIndex(Font font, int32 codepoint); /// Get glyph font info data for a codepoint (unicode character), fallback to '?' if not found [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetGlyphInfo")] - public static extern GlyphInfo GetGlyphInfo(Font font, int codepoint); + public static extern GlyphInfo GetGlyphInfo(Font font, int32 codepoint); /// Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not found [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetGlyphAtlasRec")] - public static extern Rectangle GetGlyphAtlasRec(Font font, int codepoint); + public static extern Rectangle GetGlyphAtlasRec(Font font, int32 codepoint); /// Load UTF-8 text encoded from codepoints array [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("LoadUTF8")] - public static extern char8 * LoadUTF8(int * codepoints, int length); + public static extern char8 * LoadUTF8(int32 * codepoints, int32 length); /// Unload UTF-8 text encoded from codepoints array [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("UnloadUTF8")] @@ -1539,35 +1539,35 @@ public static class Raylib /// Load all codepoints from a UTF-8 text string, codepoints count returned by parameter [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("LoadCodepoints")] - public static extern int * LoadCodepoints(char8 * text, int * count); + public static extern int32 * LoadCodepoints(char8 * text, int32 * count); /// Unload codepoints data from memory [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("UnloadCodepoints")] - public static extern void UnloadCodepoints(int * codepoints); + public static extern void UnloadCodepoints(int32 * codepoints); /// Get total number of codepoints in a UTF-8 encoded string [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetCodepointCount")] - public static extern int GetCodepointCount(char8 * text); + public static extern int32 GetCodepointCount(char8 * text); /// Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetCodepoint")] - public static extern int GetCodepoint(char8 * text, int * codepointSize); + public static extern int32 GetCodepoint(char8 * text, int32 * codepointSize); /// Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetCodepointNext")] - public static extern int GetCodepointNext(char8 * text, int * codepointSize); + public static extern int32 GetCodepointNext(char8 * text, int32 * codepointSize); /// Get previous codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GetCodepointPrevious")] - public static extern int GetCodepointPrevious(char8 * text, int * codepointSize); + public static extern int32 GetCodepointPrevious(char8 * text, int32 * codepointSize); /// Encode one codepoint into UTF-8 byte array (array length returned as parameter) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("CodepointToUTF8")] - public static extern char8 * CodepointToUTF8(int codepoint, int * utf8Size); + public static extern char8 * CodepointToUTF8(int32 codepoint, int32 * utf8Size); /// Copy one string to another, returns bytes copied [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("TextCopy")] - public static extern int TextCopy(char8 * dst, char8 * src); + public static extern int32 TextCopy(char8 * dst, char8 * src); /// Check if two text string are equal [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("TextIsEqual")] @@ -1575,7 +1575,7 @@ public static class Raylib /// Get text length, checks for '\0' ending [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("TextLength")] - public static extern int TextLength(char8 * text); + public static extern int32 TextLength(char8 * text); /// Text formatting with variables (sprintf() style) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("TextFormat")] @@ -1583,7 +1583,7 @@ public static class Raylib /// Get a piece of a text string [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("TextSubtext")] - public static extern char8 * TextSubtext(char8 * text, int position, int length); + public static extern char8 * TextSubtext(char8 * text, int32 position, int32 length); /// Replace text string (WARNING: memory must be freed!) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("TextReplace")] @@ -1591,23 +1591,23 @@ public static class Raylib /// Insert text in a position (WARNING: memory must be freed!) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("TextInsert")] - public static extern char8 * TextInsert(char8 * text, char8 * insert, int position); + public static extern char8 * TextInsert(char8 * text, char8 * insert, int32 position); /// Join text strings with delimiter [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("TextJoin")] - public static extern char8 * TextJoin(char8 ** textList, int count, char8 * delimiter); + public static extern char8 * TextJoin(char8 ** textList, int32 count, char8 * delimiter); /// Split text into multiple strings [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("TextSplit")] - public static extern char8 ** TextSplit(char8 * text, char8 delimiter, int * count); + public static extern char8 ** TextSplit(char8 * text, char8 delimiter, int32 * count); /// Append text at specific position and move cursor! [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("TextAppend")] - public static extern void TextAppend(char8 * text, char8 * @append, int * position); + public static extern void TextAppend(char8 * text, char8 * @append, int32 * position); /// Find first text occurrence within a string [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("TextFindIndex")] - public static extern int TextFindIndex(char8 * text, char8 * find); + public static extern int32 TextFindIndex(char8 * text, char8 * find); /// Get upper case version of provided string [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("TextToUpper")] @@ -1623,7 +1623,7 @@ public static class Raylib /// Get integer value from text (negative values not supported) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("TextToInteger")] - public static extern int TextToInteger(char8 * text); + public static extern int32 TextToInteger(char8 * text); /// Draw a line in 3D world space [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawLine3D")] @@ -1643,7 +1643,7 @@ public static class Raylib /// Draw a triangle strip defined by points [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawTriangleStrip3D")] - public static extern void DrawTriangleStrip3D(Vector3 * points, int pointCount, Color color); + public static extern void DrawTriangleStrip3D(Vector3 * points, int32 pointCount, Color color); /// Draw cube [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawCube")] @@ -1667,35 +1667,35 @@ public static class Raylib /// Draw sphere with extended parameters [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawSphereEx")] - public static extern void DrawSphereEx(Vector3 centerPos, float radius, int rings, int slices, Color color); + public static extern void DrawSphereEx(Vector3 centerPos, float radius, int32 rings, int32 slices, Color color); /// Draw sphere wires [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawSphereWires")] - public static extern void DrawSphereWires(Vector3 centerPos, float radius, int rings, int slices, Color color); + public static extern void DrawSphereWires(Vector3 centerPos, float radius, int32 rings, int32 slices, Color color); /// Draw a cylinder/cone [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawCylinder")] - public static extern void DrawCylinder(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color); + public static extern void DrawCylinder(Vector3 position, float radiusTop, float radiusBottom, float height, int32 slices, Color color); /// Draw a cylinder with base at startPos and top at endPos [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawCylinderEx")] - public static extern void DrawCylinderEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color); + public static extern void DrawCylinderEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int32 sides, Color color); /// Draw a cylinder/cone wires [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawCylinderWires")] - public static extern void DrawCylinderWires(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color); + public static extern void DrawCylinderWires(Vector3 position, float radiusTop, float radiusBottom, float height, int32 slices, Color color); /// Draw a cylinder wires with base at startPos and top at endPos [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawCylinderWiresEx")] - public static extern void DrawCylinderWiresEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color); + public static extern void DrawCylinderWiresEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int32 sides, Color color); /// Draw a capsule with the center of its sphere caps at startPos and endPos [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawCapsule")] - public static extern void DrawCapsule(Vector3 startPos, Vector3 endPos, float radius, int slices, int rings, Color color); + public static extern void DrawCapsule(Vector3 startPos, Vector3 endPos, float radius, int32 slices, int32 rings, Color color); /// Draw capsule wireframe with the center of its sphere caps at startPos and endPos [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawCapsuleWires")] - public static extern void DrawCapsuleWires(Vector3 startPos, Vector3 endPos, float radius, int slices, int rings, Color color); + public static extern void DrawCapsuleWires(Vector3 startPos, Vector3 endPos, float radius, int32 slices, int32 rings, Color color); /// Draw a plane XZ [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawPlane")] @@ -1707,7 +1707,7 @@ public static class Raylib /// Draw a grid (centered at (0, 0, 0)) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawGrid")] - public static extern void DrawGrid(int slices, float spacing); + public static extern void DrawGrid(int32 slices, float spacing); /// Load model from files (meshes and materials) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("LoadModel")] @@ -1767,7 +1767,7 @@ public static class Raylib /// Update mesh vertex data in GPU for a specific buffer index [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("UpdateMeshBuffer")] - public static extern void UpdateMeshBuffer(Mesh mesh, int index, void * data, int dataSize, int offset); + public static extern void UpdateMeshBuffer(Mesh mesh, int32 index, void * data, int32 dataSize, int32 offset); /// Unload mesh data from CPU and GPU [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("UnloadMesh")] @@ -1779,7 +1779,7 @@ public static class Raylib /// Draw multiple mesh instances with material and different transforms [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("DrawMeshInstanced")] - public static extern void DrawMeshInstanced(Mesh mesh, Material material, Matrix * transforms, int instances); + public static extern void DrawMeshInstanced(Mesh mesh, Material material, Matrix * transforms, int32 instances); /// Export mesh data to file, returns true on success [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("ExportMesh")] @@ -1795,11 +1795,11 @@ public static class Raylib /// Generate polygonal mesh [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GenMeshPoly")] - public static extern Mesh GenMeshPoly(int sides, float radius); + public static extern Mesh GenMeshPoly(int32 sides, float radius); /// Generate plane mesh (with subdivisions) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GenMeshPlane")] - public static extern Mesh GenMeshPlane(float width, float length, int resX, int resZ); + public static extern Mesh GenMeshPlane(float width, float length, int32 resX, int32 resZ); /// Generate cuboid mesh [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GenMeshCube")] @@ -1807,27 +1807,27 @@ public static class Raylib /// Generate sphere mesh (standard sphere) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GenMeshSphere")] - public static extern Mesh GenMeshSphere(float radius, int rings, int slices); + public static extern Mesh GenMeshSphere(float radius, int32 rings, int32 slices); /// Generate half-sphere mesh (no bottom cap) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GenMeshHemiSphere")] - public static extern Mesh GenMeshHemiSphere(float radius, int rings, int slices); + public static extern Mesh GenMeshHemiSphere(float radius, int32 rings, int32 slices); /// Generate cylinder mesh [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GenMeshCylinder")] - public static extern Mesh GenMeshCylinder(float radius, float height, int slices); + public static extern Mesh GenMeshCylinder(float radius, float height, int32 slices); /// Generate cone/pyramid mesh [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GenMeshCone")] - public static extern Mesh GenMeshCone(float radius, float height, int slices); + public static extern Mesh GenMeshCone(float radius, float height, int32 slices); /// Generate torus mesh [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GenMeshTorus")] - public static extern Mesh GenMeshTorus(float radius, float size, int radSeg, int sides); + public static extern Mesh GenMeshTorus(float radius, float size, int32 radSeg, int32 sides); /// Generate trefoil knot mesh [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GenMeshKnot")] - public static extern Mesh GenMeshKnot(float radius, float size, int radSeg, int sides); + public static extern Mesh GenMeshKnot(float radius, float size, int32 radSeg, int32 sides); /// Generate heightmap mesh from image data [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("GenMeshHeightmap")] @@ -1839,7 +1839,7 @@ public static class Raylib /// Load materials from model file [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("LoadMaterials")] - public static extern Material * LoadMaterials(char8 * fileName, int * materialCount); + public static extern Material * LoadMaterials(char8 * fileName, int32 * materialCount); /// Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("LoadMaterialDefault")] @@ -1855,19 +1855,19 @@ public static class Raylib /// Set texture for a material map type (MATERIAL_MAP_DIFFUSE, MATERIAL_MAP_SPECULAR...) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetMaterialTexture")] - public static extern void SetMaterialTexture(Material * material, int mapType, Texture2D texture); + public static extern void SetMaterialTexture(Material * material, int32 mapType, Texture2D texture); /// Set material for a mesh [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetModelMeshMaterial")] - public static extern void SetModelMeshMaterial(Model * model, int meshId, int materialId); + public static extern void SetModelMeshMaterial(Model * model, int32 meshId, int32 materialId); /// Load model animations from file [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("LoadModelAnimations")] - public static extern ModelAnimation * LoadModelAnimations(char8 * fileName, int * animCount); + public static extern ModelAnimation * LoadModelAnimations(char8 * fileName, int32 * animCount); /// Update model animation pose [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("UpdateModelAnimation")] - public static extern void UpdateModelAnimation(Model model, ModelAnimation anim, int frame); + public static extern void UpdateModelAnimation(Model model, ModelAnimation anim, int32 frame); /// Unload animation data [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("UnloadModelAnimation")] @@ -1875,7 +1875,7 @@ public static class Raylib /// Unload animation array data [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("UnloadModelAnimations")] - public static extern void UnloadModelAnimations(ModelAnimation * animations, int count); + public static extern void UnloadModelAnimations(ModelAnimation * animations, int32 count); /// Check model animation skeleton match [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("IsModelAnimationValid")] @@ -1935,7 +1935,7 @@ public static class Raylib /// Load wave from memory buffer, fileType refers to extension: i.e. '.wav' [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("LoadWaveFromMemory")] - public static extern Wave LoadWaveFromMemory(char8 * fileType, char8 * fileData, int dataSize); + public static extern Wave LoadWaveFromMemory(char8 * fileType, char8 * fileData, int32 dataSize); /// Checks if wave data is ready [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("IsWaveReady")] @@ -1955,7 +1955,7 @@ public static class Raylib /// Update sound buffer with new data [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("UpdateSound")] - public static extern void UpdateSound(Sound sound, void * data, int sampleCount); + public static extern void UpdateSound(Sound sound, void * data, int32 sampleCount); /// Unload wave data [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("UnloadWave")] @@ -2011,11 +2011,11 @@ public static class Raylib /// Crop a wave to defined samples range [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("WaveCrop")] - public static extern void WaveCrop(Wave * wave, int initSample, int finalSample); + public static extern void WaveCrop(Wave * wave, int32 initSample, int32 finalSample); /// Convert wave data to desired format [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("WaveFormat")] - public static extern void WaveFormat(Wave * wave, int sampleRate, int sampleSize, int channels); + public static extern void WaveFormat(Wave * wave, int32 sampleRate, int32 sampleSize, int32 channels); /// Load samples data from wave as a 32bit float data array [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("LoadWaveSamples")] @@ -2031,7 +2031,7 @@ public static class Raylib /// Load music stream from data [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("LoadMusicStreamFromMemory")] - public static extern Music LoadMusicStreamFromMemory(char8 * fileType, char8 * data, int dataSize); + public static extern Music LoadMusicStreamFromMemory(char8 * fileType, char8 * data, int32 dataSize); /// Checks if a music stream is ready [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("IsMusicReady")] @@ -2091,7 +2091,7 @@ public static class Raylib /// Load audio stream (to stream raw audio pcm data) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("LoadAudioStream")] - public static extern AudioStream LoadAudioStream(int sampleRate, int sampleSize, int channels); + public static extern AudioStream LoadAudioStream(int32 sampleRate, int32 sampleSize, int32 channels); /// Checks if an audio stream is ready [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("IsAudioStreamReady")] @@ -2103,7 +2103,7 @@ public static class Raylib /// Update audio stream buffers with data [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("UpdateAudioStream")] - public static extern void UpdateAudioStream(AudioStream stream, void * data, int frameCount); + public static extern void UpdateAudioStream(AudioStream stream, void * data, int32 frameCount); /// Check if any audio stream buffers requires refill [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("IsAudioStreamProcessed")] @@ -2143,7 +2143,7 @@ public static class Raylib /// Default size for new audio streams [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetAudioStreamBufferSizeDefault")] - public static extern void SetAudioStreamBufferSizeDefault(int size); + public static extern void SetAudioStreamBufferSizeDefault(int32 size); /// Audio thread callback to request new data [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("SetAudioStreamCallback")] @@ -2167,13 +2167,13 @@ public static class Raylib /// Logging: Redirect trace log messages - public function void TraceLogCallback(int logLevel, char8 * text, void* args); + public function void TraceLogCallback(int32 logLevel, char8 * text, void* args); /// FileIO: Load binary data - public function char8 * LoadFileDataCallback(char8 * fileName, int * bytesRead); + public function char8 * LoadFileDataCallback(char8 * fileName, int32 * bytesRead); /// FileIO: Save binary data - public function bool SaveFileDataCallback(char8 * fileName, void * data, int bytesToWrite); + public function bool SaveFileDataCallback(char8 * fileName, void * data, int32 bytesToWrite); /// FileIO: Load text data public function char8 * LoadFileTextCallback(char8 * fileName); @@ -2181,6 +2181,6 @@ public static class Raylib /// FileIO: Save text data public function bool SaveFileTextCallback(char8 * fileName, char8 * text); - public function void AudioCallback(void * bufferData, int frames); + public function void AudioCallback(void * bufferData, int32 frames); } diff --git a/raylib-beef/src/Raymath.bf b/raylib-beef/src/Raymath.bf index 04dae5d..23f215c 100644 --- a/raylib-beef/src/Raymath.bf +++ b/raylib-beef/src/Raymath.bf @@ -35,7 +35,7 @@ public static class Raymath /// [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("FloatEquals")] - public static extern int FloatEquals(float x, float y); + public static extern int32 FloatEquals(float x, float y); /// [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("Vector2Zero")] @@ -143,7 +143,7 @@ public static class Raymath /// [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("Vector2Equals")] - public static extern int Vector2Equals(Vector2 p, Vector2 q); + public static extern int32 Vector2Equals(Vector2 p, Vector2 q); /// [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("Vector3Zero")] @@ -279,7 +279,7 @@ public static class Raymath /// [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("Vector3Equals")] - public static extern int Vector3Equals(Vector3 p, Vector3 q); + public static extern int32 Vector3Equals(Vector3 p, Vector3 q); /// [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("Vector3Refract")] @@ -459,7 +459,7 @@ public static class Raymath /// [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("QuaternionEquals")] - public static extern int QuaternionEquals(Quaternion p, Quaternion q); + public static extern int32 QuaternionEquals(Quaternion p, Quaternion q); } diff --git a/raylib-beef/src/RenderTexture.bf b/raylib-beef/src/RenderTexture.bf index 95bad73..9d5e5ce 100644 --- a/raylib-beef/src/RenderTexture.bf +++ b/raylib-beef/src/RenderTexture.bf @@ -9,7 +9,7 @@ typealias RenderTexture2D = RenderTexture; public struct RenderTexture { /// OpenGL framebuffer object id - public int id; + public int32 id; /// Color buffer attachment texture public Texture texture; @@ -17,7 +17,7 @@ public struct RenderTexture /// Depth buffer attachment texture public Texture depth; - public this(int id, Texture texture, Texture depth) + public this(int32 id, Texture texture, Texture depth) { this.id = id; this.texture = texture; diff --git a/raylib-beef/src/Rlgl.bf b/raylib-beef/src/Rlgl.bf index 6f1ff4c..95d30b9 100644 --- a/raylib-beef/src/Rlgl.bf +++ b/raylib-beef/src/Rlgl.bf @@ -224,7 +224,7 @@ public static class Rlgl /// Choose the current matrix to be transformed [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlMatrixMode")] - public static extern void rlMatrixMode(int mode); + public static extern void rlMatrixMode(int32 mode); /// Push the current matrix to stack [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlPushMatrix")] @@ -264,11 +264,11 @@ public static class Rlgl /// Set the viewport area [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlViewport")] - public static extern void rlViewport(int x, int y, int width, int height); + public static extern void rlViewport(int32 x, int32 y, int32 width, int32 height); /// Initialize drawing mode (how to organize vertex) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlBegin")] - public static extern void rlBegin(int mode); + public static extern void rlBegin(int32 mode); /// Finish vertex providing [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlEnd")] @@ -276,7 +276,7 @@ public static class Rlgl /// Define one vertex (position) - 2 int [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlVertex2i")] - public static extern void rlVertex2i(int x, int y); + public static extern void rlVertex2i(int32 x, int32 y); /// Define one vertex (position) - 2 float [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlVertex2f")] @@ -308,7 +308,7 @@ public static class Rlgl /// Enable vertex array (VAO, if supported) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlEnableVertexArray")] - public static extern bool rlEnableVertexArray(int vaoId); + public static extern bool rlEnableVertexArray(int32 vaoId); /// Disable vertex array (VAO, if supported) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlDisableVertexArray")] @@ -316,7 +316,7 @@ public static class Rlgl /// Enable vertex buffer (VBO) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlEnableVertexBuffer")] - public static extern void rlEnableVertexBuffer(int id); + public static extern void rlEnableVertexBuffer(int32 id); /// Disable vertex buffer (VBO) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlDisableVertexBuffer")] @@ -324,7 +324,7 @@ public static class Rlgl /// Enable vertex buffer element (VBO element) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlEnableVertexBufferElement")] - public static extern void rlEnableVertexBufferElement(int id); + public static extern void rlEnableVertexBufferElement(int32 id); /// Disable vertex buffer element (VBO element) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlDisableVertexBufferElement")] @@ -332,27 +332,27 @@ public static class Rlgl /// Enable vertex attribute index [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlEnableVertexAttribute")] - public static extern void rlEnableVertexAttribute(int index); + public static extern void rlEnableVertexAttribute(int32 index); /// Disable vertex attribute index [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlDisableVertexAttribute")] - public static extern void rlDisableVertexAttribute(int index); + public static extern void rlDisableVertexAttribute(int32 index); /// Enable attribute state pointer [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlEnableStatePointer")] - public static extern void rlEnableStatePointer(int vertexAttribType, void * buffer); + public static extern void rlEnableStatePointer(int32 vertexAttribType, void * buffer); /// Disable attribute state pointer [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlDisableStatePointer")] - public static extern void rlDisableStatePointer(int vertexAttribType); + public static extern void rlDisableStatePointer(int32 vertexAttribType); /// Select and active a texture slot [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlActiveTextureSlot")] - public static extern void rlActiveTextureSlot(int slot); + public static extern void rlActiveTextureSlot(int32 slot); /// Enable texture [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlEnableTexture")] - public static extern void rlEnableTexture(int id); + public static extern void rlEnableTexture(int32 id); /// Disable texture [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlDisableTexture")] @@ -360,7 +360,7 @@ public static class Rlgl /// Enable texture cubemap [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlEnableTextureCubemap")] - public static extern void rlEnableTextureCubemap(int id); + public static extern void rlEnableTextureCubemap(int32 id); /// Disable texture cubemap [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlDisableTextureCubemap")] @@ -368,15 +368,15 @@ public static class Rlgl /// Set texture parameters (filter, wrap) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlTextureParameters")] - public static extern void rlTextureParameters(int id, int param, int value); + public static extern void rlTextureParameters(int32 id, int32 param, int32 value); /// Set cubemap parameters (filter, wrap) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlCubemapParameters")] - public static extern void rlCubemapParameters(int id, int param, int value); + public static extern void rlCubemapParameters(int32 id, int32 param, int32 value); /// Enable shader program [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlEnableShader")] - public static extern void rlEnableShader(int id); + public static extern void rlEnableShader(int32 id); /// Disable shader program [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlDisableShader")] @@ -384,7 +384,7 @@ public static class Rlgl /// Enable render texture (fbo) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlEnableFramebuffer")] - public static extern void rlEnableFramebuffer(int id); + public static extern void rlEnableFramebuffer(int32 id); /// Disable render texture (fbo), return to default framebuffer [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlDisableFramebuffer")] @@ -392,7 +392,7 @@ public static class Rlgl /// Activate multiple draw color buffers [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlActiveDrawBuffers")] - public static extern void rlActiveDrawBuffers(int count); + public static extern void rlActiveDrawBuffers(int32 count); /// Enable color blending [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlEnableColorBlend")] @@ -428,7 +428,7 @@ public static class Rlgl /// Set face culling mode [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlSetCullFace")] - public static extern void rlSetCullFace(int mode); + public static extern void rlSetCullFace(int32 mode); /// Enable scissor test [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlEnableScissorTest")] @@ -440,7 +440,7 @@ public static class Rlgl /// Scissor test [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlScissor")] - public static extern void rlScissor(int x, int y, int width, int height); + public static extern void rlScissor(int32 x, int32 y, int32 width, int32 height); /// Enable wire mode [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlEnableWireMode")] @@ -492,19 +492,19 @@ public static class Rlgl /// Set blending mode [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlSetBlendMode")] - public static extern void rlSetBlendMode(int mode); + public static extern void rlSetBlendMode(int32 mode); /// Set blending mode factor and equation (using OpenGL factors) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlSetBlendFactors")] - public static extern void rlSetBlendFactors(int glSrcFactor, int glDstFactor, int glEquation); + public static extern void rlSetBlendFactors(int32 glSrcFactor, int32 glDstFactor, int32 glEquation); /// Set blending mode factors and equations separately (using OpenGL factors) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlSetBlendFactorsSeparate")] - public static extern void rlSetBlendFactorsSeparate(int glSrcRGB, int glDstRGB, int glSrcAlpha, int glDstAlpha, int glEqRGB, int glEqAlpha); + public static extern void rlSetBlendFactorsSeparate(int32 glSrcRGB, int32 glDstRGB, int32 glSrcAlpha, int32 glDstAlpha, int32 glEqRGB, int32 glEqAlpha); /// Initialize rlgl (buffers, shaders, textures, states) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlglInit")] - public static extern void rlglInit(int width, int height); + public static extern void rlglInit(int32 width, int32 height); /// De-initialize rlgl (buffers, shaders, textures) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlglClose")] @@ -516,39 +516,39 @@ public static class Rlgl /// Get current OpenGL version [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlGetVersion")] - public static extern int rlGetVersion(); + public static extern int32 rlGetVersion(); /// Set current framebuffer width [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlSetFramebufferWidth")] - public static extern void rlSetFramebufferWidth(int width); + public static extern void rlSetFramebufferWidth(int32 width); /// Get default framebuffer width [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlGetFramebufferWidth")] - public static extern int rlGetFramebufferWidth(); + public static extern int32 rlGetFramebufferWidth(); /// Set current framebuffer height [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlSetFramebufferHeight")] - public static extern void rlSetFramebufferHeight(int height); + public static extern void rlSetFramebufferHeight(int32 height); /// Get default framebuffer height [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlGetFramebufferHeight")] - public static extern int rlGetFramebufferHeight(); + public static extern int32 rlGetFramebufferHeight(); /// Get default texture id [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlGetTextureIdDefault")] - public static extern int rlGetTextureIdDefault(); + public static extern int32 rlGetTextureIdDefault(); /// Get default shader id [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlGetShaderIdDefault")] - public static extern int rlGetShaderIdDefault(); + public static extern int32 rlGetShaderIdDefault(); /// Get default shader locations [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlGetShaderLocsDefault")] - public static extern int * rlGetShaderLocsDefault(); + public static extern int32 * rlGetShaderLocsDefault(); /// Load a render batch system [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlLoadRenderBatch")] - public static extern rlRenderBatch rlLoadRenderBatch(int numBuffers, int bufferElements); + public static extern rlRenderBatch rlLoadRenderBatch(int32 numBuffers, int32 bufferElements); /// Unload render batch system [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlUnloadRenderBatch")] @@ -568,203 +568,203 @@ public static class Rlgl /// Check internal buffer overflow for a given number of vertex [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlCheckRenderBatchLimit")] - public static extern bool rlCheckRenderBatchLimit(int vCount); + public static extern bool rlCheckRenderBatchLimit(int32 vCount); /// Set current texture for render batch and check buffers limits [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlSetTexture")] - public static extern void rlSetTexture(int id); + public static extern void rlSetTexture(int32 id); /// Load vertex array (vao) if supported [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlLoadVertexArray")] - public static extern int rlLoadVertexArray(); + public static extern int32 rlLoadVertexArray(); /// Load a vertex buffer attribute [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlLoadVertexBuffer")] - public static extern int rlLoadVertexBuffer(void * buffer, int size, bool dynamic); + public static extern int32 rlLoadVertexBuffer(void * buffer, int32 size, bool dynamic); /// Load a new attributes element buffer [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlLoadVertexBufferElement")] - public static extern int rlLoadVertexBufferElement(void * buffer, int size, bool dynamic); + public static extern int32 rlLoadVertexBufferElement(void * buffer, int32 size, bool dynamic); /// Update GPU buffer with new data [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlUpdateVertexBuffer")] - public static extern void rlUpdateVertexBuffer(int bufferId, void * data, int dataSize, int offset); + public static extern void rlUpdateVertexBuffer(int32 bufferId, void * data, int32 dataSize, int32 offset); /// Update vertex buffer elements with new data [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlUpdateVertexBufferElements")] - public static extern void rlUpdateVertexBufferElements(int id, void * data, int dataSize, int offset); + public static extern void rlUpdateVertexBufferElements(int32 id, void * data, int32 dataSize, int32 offset); /// [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlUnloadVertexArray")] - public static extern void rlUnloadVertexArray(int vaoId); + public static extern void rlUnloadVertexArray(int32 vaoId); /// [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlUnloadVertexBuffer")] - public static extern void rlUnloadVertexBuffer(int vboId); + public static extern void rlUnloadVertexBuffer(int32 vboId); /// [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlSetVertexAttribute")] - public static extern void rlSetVertexAttribute(int index, int compSize, int type, bool normalized, int stride, void * pointer); + public static extern void rlSetVertexAttribute(int32 index, int32 compSize, int32 type, bool normalized, int32 stride, void * pointer); /// [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlSetVertexAttributeDivisor")] - public static extern void rlSetVertexAttributeDivisor(int index, int divisor); + public static extern void rlSetVertexAttributeDivisor(int32 index, int32 divisor); /// Set vertex attribute default value [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlSetVertexAttributeDefault")] - public static extern void rlSetVertexAttributeDefault(int locIndex, void * value, int attribType, int count); + public static extern void rlSetVertexAttributeDefault(int32 locIndex, void * value, int32 attribType, int32 count); /// [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlDrawVertexArray")] - public static extern void rlDrawVertexArray(int offset, int count); + public static extern void rlDrawVertexArray(int32 offset, int32 count); /// [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlDrawVertexArrayElements")] - public static extern void rlDrawVertexArrayElements(int offset, int count, void * buffer); + public static extern void rlDrawVertexArrayElements(int32 offset, int32 count, void * buffer); /// [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlDrawVertexArrayInstanced")] - public static extern void rlDrawVertexArrayInstanced(int offset, int count, int instances); + public static extern void rlDrawVertexArrayInstanced(int32 offset, int32 count, int32 instances); /// [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlDrawVertexArrayElementsInstanced")] - public static extern void rlDrawVertexArrayElementsInstanced(int offset, int count, void * buffer, int instances); + public static extern void rlDrawVertexArrayElementsInstanced(int32 offset, int32 count, void * buffer, int32 instances); /// Load texture in GPU [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlLoadTexture")] - public static extern int rlLoadTexture(void * data, int width, int height, int format, int mipmapCount); + public static extern int32 rlLoadTexture(void * data, int32 width, int32 height, int32 format, int32 mipmapCount); /// Load depth texture/renderbuffer (to be attached to fbo) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlLoadTextureDepth")] - public static extern int rlLoadTextureDepth(int width, int height, bool useRenderBuffer); + public static extern int32 rlLoadTextureDepth(int32 width, int32 height, bool useRenderBuffer); /// Load texture cubemap [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlLoadTextureCubemap")] - public static extern int rlLoadTextureCubemap(void * data, int size, int format); + public static extern int32 rlLoadTextureCubemap(void * data, int32 size, int32 format); /// Update GPU texture with new data [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlUpdateTexture")] - public static extern void rlUpdateTexture(int id, int offsetX, int offsetY, int width, int height, int format, void * data); + public static extern void rlUpdateTexture(int32 id, int32 offsetX, int32 offsetY, int32 width, int32 height, int32 format, void * data); /// Get OpenGL internal formats [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlGetGlTextureFormats")] - public static extern void rlGetGlTextureFormats(int format, int * glInternalFormat, int * glFormat, int * glType); + public static extern void rlGetGlTextureFormats(int32 format, int32 * glInternalFormat, int32 * glFormat, int32 * glType); /// Get name string for pixel format [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlGetPixelFormatName")] - public static extern char8 * rlGetPixelFormatName(int format); + public static extern char8 * rlGetPixelFormatName(int32 format); /// Unload texture from GPU memory [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlUnloadTexture")] - public static extern void rlUnloadTexture(int id); + public static extern void rlUnloadTexture(int32 id); /// Generate mipmap data for selected texture [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlGenTextureMipmaps")] - public static extern void rlGenTextureMipmaps(int id, int width, int height, int format, int * mipmaps); + public static extern void rlGenTextureMipmaps(int32 id, int32 width, int32 height, int32 format, int32 * mipmaps); /// Read texture pixel data [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlReadTexturePixels")] - public static extern void * rlReadTexturePixels(int id, int width, int height, int format); + public static extern void * rlReadTexturePixels(int32 id, int32 width, int32 height, int32 format); /// Read screen pixel data (color buffer) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlReadScreenPixels")] - public static extern char8 * rlReadScreenPixels(int width, int height); + public static extern char8 * rlReadScreenPixels(int32 width, int32 height); /// Load an empty framebuffer [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlLoadFramebuffer")] - public static extern int rlLoadFramebuffer(int width, int height); + public static extern int32 rlLoadFramebuffer(int32 width, int32 height); /// Attach texture/renderbuffer to a framebuffer [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlFramebufferAttach")] - public static extern void rlFramebufferAttach(int fboId, int texId, int attachType, int texType, int mipLevel); + public static extern void rlFramebufferAttach(int32 fboId, int32 texId, int32 attachType, int32 texType, int32 mipLevel); /// Verify framebuffer is complete [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlFramebufferComplete")] - public static extern bool rlFramebufferComplete(int id); + public static extern bool rlFramebufferComplete(int32 id); /// Delete framebuffer from GPU [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlUnloadFramebuffer")] - public static extern void rlUnloadFramebuffer(int id); + public static extern void rlUnloadFramebuffer(int32 id); /// Load shader from code strings [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlLoadShaderCode")] - public static extern int rlLoadShaderCode(char8 * vsCode, char8 * fsCode); + public static extern int32 rlLoadShaderCode(char8 * vsCode, char8 * fsCode); /// Compile custom shader and return shader id (type: RL_VERTEX_SHADER, RL_FRAGMENT_SHADER, RL_COMPUTE_SHADER) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlCompileShader")] - public static extern int rlCompileShader(char8 * shaderCode, int type); + public static extern int32 rlCompileShader(char8 * shaderCode, int32 type); /// Load custom shader program [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlLoadShaderProgram")] - public static extern int rlLoadShaderProgram(int vShaderId, int fShaderId); + public static extern int32 rlLoadShaderProgram(int32 vShaderId, int32 fShaderId); /// Unload shader program [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlUnloadShaderProgram")] - public static extern void rlUnloadShaderProgram(int id); + public static extern void rlUnloadShaderProgram(int32 id); /// Get shader location uniform [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlGetLocationUniform")] - public static extern int rlGetLocationUniform(int shaderId, char8 * uniformName); + public static extern int32 rlGetLocationUniform(int32 shaderId, char8 * uniformName); /// Get shader location attribute [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlGetLocationAttrib")] - public static extern int rlGetLocationAttrib(int shaderId, char8 * attribName); + public static extern int32 rlGetLocationAttrib(int32 shaderId, char8 * attribName); /// Set shader value uniform [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlSetUniform")] - public static extern void rlSetUniform(int locIndex, void * value, int uniformType, int count); + public static extern void rlSetUniform(int32 locIndex, void * value, int32 uniformType, int32 count); /// Set shader value matrix [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlSetUniformMatrix")] - public static extern void rlSetUniformMatrix(int locIndex, Matrix mat); + public static extern void rlSetUniformMatrix(int32 locIndex, Matrix mat); /// Set shader value sampler [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlSetUniformSampler")] - public static extern void rlSetUniformSampler(int locIndex, int textureId); + public static extern void rlSetUniformSampler(int32 locIndex, int32 textureId); /// Set shader currently active (id and locations) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlSetShader")] - public static extern void rlSetShader(int id, int * locs); + public static extern void rlSetShader(int32 id, int32 * locs); /// Load compute shader program [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlLoadComputeShaderProgram")] - public static extern int rlLoadComputeShaderProgram(int shaderId); + public static extern int32 rlLoadComputeShaderProgram(int32 shaderId); /// Dispatch compute shader (equivalent to *draw* for graphics pipeline) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlComputeShaderDispatch")] - public static extern void rlComputeShaderDispatch(int groupX, int groupY, int groupZ); + public static extern void rlComputeShaderDispatch(int32 groupX, int32 groupY, int32 groupZ); /// Load shader storage buffer object (SSBO) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlLoadShaderBuffer")] - public static extern int rlLoadShaderBuffer(int size, void * data, int usageHint); + public static extern int32 rlLoadShaderBuffer(int32 size, void * data, int32 usageHint); /// Unload shader storage buffer object (SSBO) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlUnloadShaderBuffer")] - public static extern void rlUnloadShaderBuffer(int ssboId); + public static extern void rlUnloadShaderBuffer(int32 ssboId); /// Update SSBO buffer data [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlUpdateShaderBuffer")] - public static extern void rlUpdateShaderBuffer(int id, void * data, int dataSize, int offset); + public static extern void rlUpdateShaderBuffer(int32 id, void * data, int32 dataSize, int32 offset); /// Bind SSBO buffer [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlBindShaderBuffer")] - public static extern void rlBindShaderBuffer(int id, int index); + public static extern void rlBindShaderBuffer(int32 id, int32 index); /// Read SSBO buffer data (GPU->CPU) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlReadShaderBuffer")] - public static extern void rlReadShaderBuffer(int id, void * dest, int count, int offset); + public static extern void rlReadShaderBuffer(int32 id, void * dest, int32 count, int32 offset); /// Copy SSBO data between buffers [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlCopyShaderBuffer")] - public static extern void rlCopyShaderBuffer(int destId, int srcId, int destOffset, int srcOffset, int count); + public static extern void rlCopyShaderBuffer(int32 destId, int32 srcId, int32 destOffset, int32 srcOffset, int32 count); /// Get SSBO buffer size [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlGetShaderBufferSize")] - public static extern int rlGetShaderBufferSize(int id); + public static extern int32 rlGetShaderBufferSize(int32 id); /// Bind image texture [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlBindImageTexture")] - public static extern void rlBindImageTexture(int id, int index, int format, bool @readonly); + public static extern void rlBindImageTexture(int32 id, int32 index, int32 format, bool @readonly); /// Get internal modelview matrix [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlGetMatrixModelview")] @@ -780,11 +780,11 @@ public static class Rlgl /// Get internal projection matrix for stereo render (selected eye) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlGetMatrixProjectionStereo")] - public static extern Matrix rlGetMatrixProjectionStereo(int eye); + public static extern Matrix rlGetMatrixProjectionStereo(int32 eye); /// Get internal view offset matrix for stereo render (selected eye) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlGetMatrixViewOffsetStereo")] - public static extern Matrix rlGetMatrixViewOffsetStereo(int eye); + public static extern Matrix rlGetMatrixViewOffsetStereo(int32 eye); /// Set a custom projection matrix (replaces internal projection matrix) [Import("raylib.dll"), CallingConvention(.Cdecl), LinkName("rlSetMatrixProjection")] diff --git a/raylib-beef/src/Shader.bf b/raylib-beef/src/Shader.bf index 8b0fb6f..75afda4 100644 --- a/raylib-beef/src/Shader.bf +++ b/raylib-beef/src/Shader.bf @@ -7,12 +7,12 @@ namespace RaylibBeef; public struct Shader { /// Shader program id - public int id; + public int32 id; /// Shader locations array (RL_MAX_SHADER_LOCATIONS) - public int * locs; + public int32 * locs; - public this(int id, int * locs) + public this(int32 id, int32 * locs) { this.id = id; this.locs = locs; diff --git a/raylib-beef/src/Sound.bf b/raylib-beef/src/Sound.bf index 457252c..32b7ab7 100644 --- a/raylib-beef/src/Sound.bf +++ b/raylib-beef/src/Sound.bf @@ -10,9 +10,9 @@ public struct Sound public AudioStream stream; /// Total number of frames (considering channels) - public int frameCount; + public int32 frameCount; - public this(AudioStream stream, int frameCount) + public this(AudioStream stream, int32 frameCount) { this.stream = stream; this.frameCount = frameCount; diff --git a/raylib-beef/src/Texture.bf b/raylib-beef/src/Texture.bf index b86daf9..a7b03cc 100644 --- a/raylib-beef/src/Texture.bf +++ b/raylib-beef/src/Texture.bf @@ -10,21 +10,21 @@ typealias TextureCubemap = Texture; public struct Texture { /// OpenGL texture id - public int id; + public int32 id; /// Texture base width - public int width; + public int32 width; /// Texture base height - public int height; + public int32 height; /// Mipmap levels, 1 by default - public int mipmaps; + public int32 mipmaps; /// Data format (PixelFormat type) - public int format; + public int32 format; - public this(int id, int width, int height, int mipmaps, int format) + public this(int32 id, int32 width, int32 height, int32 mipmaps, int32 format) { this.id = id; this.width = width; diff --git a/raylib-beef/src/VrDeviceInfo.bf b/raylib-beef/src/VrDeviceInfo.bf index 43c2225..507343f 100644 --- a/raylib-beef/src/VrDeviceInfo.bf +++ b/raylib-beef/src/VrDeviceInfo.bf @@ -7,10 +7,10 @@ namespace RaylibBeef; public struct VrDeviceInfo { /// Horizontal resolution in pixels - public int hResolution; + public int32 hResolution; /// Vertical resolution in pixels - public int vResolution; + public int32 vResolution; /// Horizontal size in meters public float hScreenSize; @@ -36,7 +36,7 @@ public struct VrDeviceInfo /// Chromatic aberration correction parameters public float[4] chromaAbCorrection; - public this(int hResolution, int vResolution, float hScreenSize, float vScreenSize, float vScreenCenter, float eyeToScreenDistance, float lensSeparationDistance, float interpupillaryDistance, float[4] lensDistortionValues, float[4] chromaAbCorrection) + public this(int32 hResolution, int32 vResolution, float hScreenSize, float vScreenSize, float vScreenCenter, float eyeToScreenDistance, float lensSeparationDistance, float interpupillaryDistance, float[4] lensDistortionValues, float[4] chromaAbCorrection) { this.hResolution = hResolution; this.vResolution = vResolution; diff --git a/raylib-beef/src/Wave.bf b/raylib-beef/src/Wave.bf index 3ead949..5574a56 100644 --- a/raylib-beef/src/Wave.bf +++ b/raylib-beef/src/Wave.bf @@ -7,21 +7,21 @@ namespace RaylibBeef; public struct Wave { /// Total number of frames (considering channels) - public int frameCount; + public int32 frameCount; /// Frequency (samples per second) - public int sampleRate; + public int32 sampleRate; /// Bit depth (bits per sample): 8, 16, 32 (24 not supported) - public int sampleSize; + public int32 sampleSize; /// Number of channels (1-mono, 2-stereo, ...) - public int channels; + public int32 channels; /// Buffer data pointer public void * data; - public this(int frameCount, int sampleRate, int sampleSize, int channels, void * data) + public this(int32 frameCount, int32 sampleRate, int32 sampleSize, int32 channels, void * data) { this.frameCount = frameCount; this.sampleRate = sampleRate; diff --git a/raylib-beef/src/rlDrawCall.bf b/raylib-beef/src/rlDrawCall.bf index 3bbd08e..e66f5a6 100644 --- a/raylib-beef/src/rlDrawCall.bf +++ b/raylib-beef/src/rlDrawCall.bf @@ -7,18 +7,18 @@ namespace RaylibBeef; public struct rlDrawCall { /// Drawing mode: LINES, TRIANGLES, QUADS - public int mode; + public int32 mode; /// Number of vertex of the draw - public int vertexCount; + public int32 vertexCount; /// Number of vertex required for index alignment (LINES, TRIANGLES) - public int vertexAlignment; + public int32 vertexAlignment; /// Texture id to be used on the draw -> Use to create new draw call if changes - public int textureId; + public int32 textureId; - public this(int mode, int vertexCount, int vertexAlignment, int textureId) + public this(int32 mode, int32 vertexCount, int32 vertexAlignment, int32 textureId) { this.mode = mode; this.vertexCount = vertexCount; diff --git a/raylib-beef/src/rlRenderBatch.bf b/raylib-beef/src/rlRenderBatch.bf index 532e0ff..54fe01d 100644 --- a/raylib-beef/src/rlRenderBatch.bf +++ b/raylib-beef/src/rlRenderBatch.bf @@ -7,10 +7,10 @@ namespace RaylibBeef; public struct rlRenderBatch { /// Number of vertex buffers (multi-buffering support) - public int bufferCount; + public int32 bufferCount; /// Current buffer tracking in case of multi-buffering - public int currentBuffer; + public int32 currentBuffer; /// Dynamic buffer(s) for vertex data public rlVertexBuffer * vertexBuffer; @@ -19,12 +19,12 @@ public struct rlRenderBatch public rlDrawCall * draws; /// Draw calls counter - public int drawCounter; + public int32 drawCounter; /// Current depth value for next draw public float currentDepth; - public this(int bufferCount, int currentBuffer, rlVertexBuffer * vertexBuffer, rlDrawCall * draws, int drawCounter, float currentDepth) + public this(int32 bufferCount, int32 currentBuffer, rlVertexBuffer * vertexBuffer, rlDrawCall * draws, int32 drawCounter, float currentDepth) { this.bufferCount = bufferCount; this.currentBuffer = currentBuffer; diff --git a/raylib-beef/src/rlVertexBuffer.bf b/raylib-beef/src/rlVertexBuffer.bf index e284077..c7ff741 100644 --- a/raylib-beef/src/rlVertexBuffer.bf +++ b/raylib-beef/src/rlVertexBuffer.bf @@ -7,7 +7,7 @@ namespace RaylibBeef; public struct rlVertexBuffer { /// Number of elements in the buffer (QUADS) - public int elementCount; + public int32 elementCount; /// Vertex position (XYZ - 3 components per vertex) (shader-location = 0) public float * vertices; @@ -19,15 +19,15 @@ public struct rlVertexBuffer public char8 * colors; /// Vertex indices (in case vertex data comes indexed) (6 indices per quad) - public int * indices; + public int32 * indices; /// OpenGL Vertex Array Object id - public int vaoId; + public int32 vaoId; /// OpenGL Vertex Buffer Objects id (4 types of vertex data) - public int[4] vboId; + public int32[4] vboId; - public this(int elementCount, float * vertices, float * texcoords, char8 * colors, int * indices, int vaoId, int[4] vboId) + public this(int32 elementCount, float * vertices, float * texcoords, char8 * colors, int32 * indices, int32 vaoId, int32[4] vboId) { this.elementCount = elementCount; this.vertices = vertices;