mirror of
https://github.com/raylib-cs/raylib-cs
synced 2025-04-03 11:09:40 -04:00
Fixed typo and updated enum usage in structs.
- Fixed typo in README.md. - Changed Image format to use the PixelFormat enum. - Changed Texture2D format to use the PixelFormat enum. - Changed NPatchInfo type to use the NPatchType enum.
This commit is contained in:
parent
bae7289476
commit
da3df6903a
@ -32,7 +32,7 @@ If you need to edit Raylib-cs source then you will need to add the bindings as a
|
|||||||
|
|
||||||
1. Download/Clone this repo
|
1. Download/Clone this repo
|
||||||
|
|
||||||
2. Add Raylib-cs/Raylib-cs.csproj to your project as an exisitng project. See the Tests projects for reference.
|
2. Add Raylib-cs/Raylib-cs.csproj to your project as an existing project.
|
||||||
|
|
||||||
3. Download the native libraries for the platforms you want to build for using the [official 3.0 release](https://github.com/raysan5/raylib/releases/tag/3.0.0).
|
3. Download the native libraries for the platforms you want to build for using the [official 3.0 release](https://github.com/raysan5/raylib/releases/tag/3.0.0).
|
||||||
**NOTE: the MSVC version is required for Windows platforms**
|
**NOTE: the MSVC version is required for Windows platforms**
|
||||||
|
@ -101,7 +101,7 @@ namespace Raylib_cs
|
|||||||
public int width; // Image base width
|
public int width; // Image base width
|
||||||
public int height; // Image base height
|
public int height; // Image base height
|
||||||
public int mipmaps; // Mipmap levels, 1 by default
|
public int mipmaps; // Mipmap levels, 1 by default
|
||||||
public int format; // Data format (PixelFormat type)
|
public PixelFormat format; // Data format (PixelFormat type)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Texture2D type
|
// Texture2D type
|
||||||
@ -113,7 +113,7 @@ namespace Raylib_cs
|
|||||||
public int width; // Texture base width
|
public int width; // Texture base width
|
||||||
public int height; // Texture base height
|
public int height; // Texture base height
|
||||||
public int mipmaps; // Mipmap levels, 1 by default
|
public int mipmaps; // Mipmap levels, 1 by default
|
||||||
public int format; // Data format (PixelFormat type)
|
public PixelFormat format; // Data format (PixelFormat type)
|
||||||
}
|
}
|
||||||
|
|
||||||
// RenderTexture2D type, for texture rendering
|
// RenderTexture2D type, for texture rendering
|
||||||
@ -137,7 +137,7 @@ namespace Raylib_cs
|
|||||||
public int top; // top border offset
|
public int top; // top border offset
|
||||||
public int right; // right border offset
|
public int right; // right border offset
|
||||||
public int bottom; // bottom border offset
|
public int bottom; // bottom border offset
|
||||||
public int type; // layout of the n-patch: 3x3, 1x3 or 3x1
|
public NPatchType type; // layout of the n-patch: 3x3, 1x3 or 3x1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Font character info
|
// Font character info
|
||||||
|
Loading…
x
Reference in New Issue
Block a user