From 340bfa288d11457a8165d0b747d3c758a62b43af Mon Sep 17 00:00:00 2001 From: ChrisDill Date: Sun, 28 Nov 2021 09:54:01 +0000 Subject: [PATCH] Fix typos and change refs to pointers in Rlgl --- Raylib-cs/Rlgl.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Raylib-cs/Rlgl.cs b/Raylib-cs/Rlgl.cs index be4c78f..0642c81 100644 --- a/Raylib-cs/Rlgl.cs +++ b/Raylib-cs/Rlgl.cs @@ -104,7 +104,7 @@ namespace Raylib_cs /// Multiply the current matrix by another matrix [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] - public static extern void rlMultMatrixf(float[] matf); + public static extern void rlMultMatrixf(float* matf); [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern void rlFrustum(double left, double right, double bottom, double top, double znear, double zfar); @@ -422,11 +422,11 @@ namespace Raylib_cs /// Draw render batch data (Update->Draw->Reset) [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] - public static extern void rlDrawRenderBatch(ref RenderBatch batch); + public static extern void rlDrawRenderBatch(RenderBatch* batch); /// Set the active render batch for rlgl (NULL for default internal) [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] - public static extern void rlSetRenderBatchActive(ref RenderBatch batch); + public static extern void rlSetRenderBatchActive(RenderBatch* batch); /// Update and draw internal render batch [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] @@ -508,7 +508,7 @@ namespace Raylib_cs /// Get OpenGL internal formats [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] - public static extern void rlGetGlTextureFormats(PixelFormat format, ref uint glInternalFormat, ref uint glFormat, ref uint glType); + public static extern void rlGetGlTextureFormats(PixelFormat format, int* glInternalFormat, int* glFormat, int* glType); /// Get OpenGL internal formats [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] @@ -520,7 +520,7 @@ namespace Raylib_cs /// Generate mipmap data for selected texture [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] - public static extern void rlGenTextureMipmaps(uint id, int width, int height, PixelFormat format, ref int[] mipmaps); + public static extern void rlGenTextureMipmaps(uint id, int width, int height, PixelFormat format, int* mipmaps); /// Read texture pixel data [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] @@ -644,7 +644,7 @@ namespace Raylib_cs /// Get internal modelview matrix [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] - public static extern Matrix4x4 rlGetMatrixModelView(); + public static extern Matrix4x4 rlGetMatrixModelview(); /// Get internal projection matrix [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] @@ -668,7 +668,7 @@ namespace Raylib_cs /// Set a custom modelview matrix (replaces internal modelview matrix) [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] - public static extern void rlSetMatrixModelView(Matrix4x4 proj); + public static extern void rlSetMatrixModelview(Matrix4x4 proj); /// Set eyes projection matrices for stereo rendering [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]