mirror of
https://github.com/raylib-cs/raylib-cs
synced 2025-09-09 03:01:41 -04:00
38 lines
804 B
C#
38 lines
804 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace Raylib_cs
|
|
{
|
|
/// <summary>
|
|
/// Texture2D type
|
|
/// <br />
|
|
/// NOTE: Data stored in GPU memory
|
|
/// </summary>
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public struct Texture2D
|
|
{
|
|
/// <summary>
|
|
/// OpenGL texture id
|
|
/// </summary>
|
|
public uint id;
|
|
|
|
/// <summary>
|
|
/// Texture base width
|
|
/// </summary>
|
|
public int width;
|
|
|
|
/// <summary>
|
|
/// Texture base height
|
|
/// </summary>
|
|
public int height;
|
|
|
|
/// <summary>
|
|
/// Mipmap levels, 1 by default
|
|
/// </summary>
|
|
public int mipmaps;
|
|
|
|
/// <summary>
|
|
/// Data format (PixelFormat type)
|
|
/// </summary>
|
|
public PixelFormat format;
|
|
}
|
|
} |