2
0
mirror of https://github.com/raylib-cs/raylib-cs synced 2025-09-09 03:01:41 -04:00

Added TODOs

This commit is contained in:
2021-12-09 22:28:22 +11:00
parent 331dd8c4cf
commit 703bf0e0d2
4 changed files with 13 additions and 3 deletions

View File

@@ -1897,6 +1897,7 @@ namespace Raylib_cs
// Material loading/unloading functions
//TODO: safe Helper method
/// <summary>Load materials from model file</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Material* LoadMaterials(string fileName, ref int materialCount);
@@ -2194,10 +2195,12 @@ namespace Raylib_cs
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void WaveCrop(ref Wave wave, int initSample, int finalSample);
//TODO: Span
/// <summary>Get samples data from wave as a floats array</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern float* LoadWaveSamples(Wave wave);
//TODO: Span
/// <summary>Unload samples data loaded with LoadWaveSamples()</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void UnloadWaveSamples(float* samples);
@@ -2208,6 +2211,7 @@ namespace Raylib_cs
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Music LoadMusicStream(string fileName);
//TODO: Span/Helper method
/// <summary>Load music stream from data</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Music LoadMusicStreamFromMemory(string fileType, byte* data, int dataSize);

View File

@@ -28,7 +28,8 @@ namespace Raylib_cs
/// Number of channels (1-mono, 2-stereo)
/// </summary>
public uint channels;
//TODO: SPAN<byte> ?
/// <summary>
/// Buffer data pointer
/// </summary>
@@ -42,6 +43,7 @@ namespace Raylib_cs
[StructLayout(LayoutKind.Sequential)]
public struct AudioStream
{
//TODO: convert
/// <summary>
/// Pointer to internal data(rAudioBuffer *) used by the audio system
/// </summary>
@@ -107,6 +109,7 @@ namespace Raylib_cs
/// </summary>
public int ctxType;
//TODO span
/// <summary>
/// Audio context data, depends on type
/// </summary>

View File

@@ -78,10 +78,11 @@ namespace Raylib_cs
/// </summary>
public Shader shader;
//TODO: convert
/// <summary>
/// Material maps
/// </summary>
public MaterialMap *maps;
public MaterialMap* maps;
/// <summary>
/// Material generic parameters (if required)

View File

@@ -62,11 +62,13 @@ namespace Raylib_cs
/// </summary>
public int boneCount;
//TODO: Span
/// <summary>
/// Bones information (skeleton, BoneInfo *)
/// </summary>
public BoneInfo* bones;
//TODO: Span
/// <summary>
/// Bones base transformation (pose, Transform *)
/// </summary>
@@ -88,7 +90,7 @@ namespace Raylib_cs
/// Number of animation frames
/// </summary>
public readonly int frameCount;
/// <summary>
/// Bones information (skeleton, BoneInfo *)
/// </summary>