From 8684db9d10519cb9220c380abf04bad7c6adc882 Mon Sep 17 00:00:00 2001
From: Ben Parsons <9parsonsb@gmail.com>
Date: Thu, 11 Nov 2021 21:54:14 +1100
Subject: [PATCH] Update comments to xmldoc
---
Raylib-cs/Raylib.cs | 35 ++++++++++++++++++++++++-----------
1 file changed, 24 insertions(+), 11 deletions(-)
diff --git a/Raylib-cs/Raylib.cs b/Raylib-cs/Raylib.cs
index 16b8ad3..4d54d10 100644
--- a/Raylib-cs/Raylib.cs
+++ b/Raylib-cs/Raylib.cs
@@ -19,30 +19,41 @@ namespace Raylib_cs
// Callbacks to hook some internal functions
// WARNING: This callbacks are intended for advance users
- // Logging: Redirect trace log messages
+ ///
+ /// Logging: Redirect trace log messages
+ ///
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void TraceLogCallback(TraceLogLevel logLevel, string text, IntPtr args);
-
- // FileIO: Load binary data
- // IntPtr refers to a unsigned char *
+ ///
+ /// FileIO: Load binary data
+ ///
+ /// refers to a unsigned char *
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate IntPtr LoadFileDataCallback(string fileName, ref int bytesRead);
- // FileIO: Save binary data
- // IntPtr refers to a void *
+ ///
+ /// FileIO: Save binary data
+ ///
+ /// refers to a void *
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate bool SaveFileDataCallback(string fileName, IntPtr data, ref int bytesToWrite);
- // FileIO: Load text data
+ ///
+ /// FileIO: Load text data
+ ///
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate string LoadFileTextCallback(string fileName);
- // FileIO: Save text data
+ ///
+ /// FileIO: Save text data
+ ///
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate bool SaveFileTextCallback(string fileName, string text);
- // Returns color with alpha applied, alpha goes from 0.0f to 1.0f
- // NOTE: Added for compatability with previous versions
+ ///
+ /// Returns color with alpha applied, alpha goes from 0.0f to 1.0f
+ /// NOTE: Added for compatability with previous versions
+ ///
public static Color Fade(Color color, float alpha) => ColorAlpha(color, alpha);
@@ -52,7 +63,9 @@ namespace Raylib_cs
// Window-related functions
- /// Initialize window and OpenGL context
+ ///
+ /// Initialize window and OpenGL context
+ ///
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void InitWindow(int width, int height, [MarshalAs(UnmanagedType.LPUTF8Str)] string title);