mirror of
https://github.com/raylib-cs/raylib-cs
synced 2025-06-30 19:03:42 -04:00
Update enum/color names to match C# naming convention (#224)
This commit is contained in:
@ -8,11 +8,11 @@ namespace Raylib_cs;
|
||||
/// </summary>
|
||||
public enum CameraMode
|
||||
{
|
||||
CAMERA_CUSTOM = 0,
|
||||
CAMERA_FREE,
|
||||
CAMERA_ORBITAL,
|
||||
CAMERA_FIRST_PERSON,
|
||||
CAMERA_THIRD_PERSON
|
||||
Custom = 0,
|
||||
Free,
|
||||
Orbital,
|
||||
FirstPerson,
|
||||
ThirdPerson
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -20,8 +20,8 @@ public enum CameraMode
|
||||
/// </summary>
|
||||
public enum CameraProjection
|
||||
{
|
||||
CAMERA_PERSPECTIVE = 0,
|
||||
CAMERA_ORTHOGRAPHIC
|
||||
Perspective = 0,
|
||||
Orthographic
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -16,32 +16,32 @@ public partial struct Color
|
||||
|
||||
// Example - Color.RED instead of RED
|
||||
// Custom raylib color palette for amazing visuals
|
||||
public static readonly Color LIGHTGRAY = new Color(200, 200, 200, 255);
|
||||
public static readonly Color GRAY = new Color(130, 130, 130, 255);
|
||||
public static readonly Color DARKGRAY = new Color(80, 80, 80, 255);
|
||||
public static readonly Color YELLOW = new Color(253, 249, 0, 255);
|
||||
public static readonly Color GOLD = new Color(255, 203, 0, 255);
|
||||
public static readonly Color ORANGE = new Color(255, 161, 0, 255);
|
||||
public static readonly Color PINK = new Color(255, 109, 194, 255);
|
||||
public static readonly Color RED = new Color(230, 41, 55, 255);
|
||||
public static readonly Color MAROON = new Color(190, 33, 55, 255);
|
||||
public static readonly Color GREEN = new Color(0, 228, 48, 255);
|
||||
public static readonly Color LIME = new Color(0, 158, 47, 255);
|
||||
public static readonly Color DARKGREEN = new Color(0, 117, 44, 255);
|
||||
public static readonly Color SKYBLUE = new Color(102, 191, 255, 255);
|
||||
public static readonly Color BLUE = new Color(0, 121, 241, 255);
|
||||
public static readonly Color DARKBLUE = new Color(0, 82, 172, 255);
|
||||
public static readonly Color PURPLE = new Color(200, 122, 255, 255);
|
||||
public static readonly Color VIOLET = new Color(135, 60, 190, 255);
|
||||
public static readonly Color DARKPURPLE = new Color(112, 31, 126, 255);
|
||||
public static readonly Color BEIGE = new Color(211, 176, 131, 255);
|
||||
public static readonly Color BROWN = new Color(127, 106, 79, 255);
|
||||
public static readonly Color DARKBROWN = new Color(76, 63, 47, 255);
|
||||
public static readonly Color WHITE = new Color(255, 255, 255, 255);
|
||||
public static readonly Color BLACK = new Color(0, 0, 0, 255);
|
||||
public static readonly Color BLANK = new Color(0, 0, 0, 0);
|
||||
public static readonly Color MAGENTA = new Color(255, 0, 255, 255);
|
||||
public static readonly Color RAYWHITE = new Color(245, 245, 245, 255);
|
||||
public static readonly Color LightGray = new Color(200, 200, 200, 255);
|
||||
public static readonly Color Gray = new Color(130, 130, 130, 255);
|
||||
public static readonly Color DarkGray = new Color(80, 80, 80, 255);
|
||||
public static readonly Color Yellow = new Color(253, 249, 0, 255);
|
||||
public static readonly Color Gold = new Color(255, 203, 0, 255);
|
||||
public static readonly Color Orange = new Color(255, 161, 0, 255);
|
||||
public static readonly Color Pink = new Color(255, 109, 194, 255);
|
||||
public static readonly Color Red = new Color(230, 41, 55, 255);
|
||||
public static readonly Color Maroon = new Color(190, 33, 55, 255);
|
||||
public static readonly Color Green = new Color(0, 228, 48, 255);
|
||||
public static readonly Color Lime = new Color(0, 158, 47, 255);
|
||||
public static readonly Color DarkGreen = new Color(0, 117, 44, 255);
|
||||
public static readonly Color SkyBlue = new Color(102, 191, 255, 255);
|
||||
public static readonly Color Blue = new Color(0, 121, 241, 255);
|
||||
public static readonly Color DarkBlue = new Color(0, 82, 172, 255);
|
||||
public static readonly Color Purple = new Color(200, 122, 255, 255);
|
||||
public static readonly Color Violet = new Color(135, 60, 190, 255);
|
||||
public static readonly Color DarkPurple = new Color(112, 31, 126, 255);
|
||||
public static readonly Color Beige = new Color(211, 176, 131, 255);
|
||||
public static readonly Color Brown = new Color(127, 106, 79, 255);
|
||||
public static readonly Color DarkBrown = new Color(76, 63, 47, 255);
|
||||
public static readonly Color White = new Color(255, 255, 255, 255);
|
||||
public static readonly Color Black = new Color(0, 0, 0, 255);
|
||||
public static readonly Color Blank = new Color(0, 0, 0, 0);
|
||||
public static readonly Color Magenta = new Color(255, 0, 255, 255);
|
||||
public static readonly Color RayWhite = new Color(245, 245, 245, 255);
|
||||
|
||||
public Color(byte r, byte g, byte b, byte a)
|
||||
{
|
||||
|
@ -13,82 +13,82 @@ public enum ConfigFlags : uint
|
||||
/// <summary>
|
||||
/// Set to try enabling V-Sync on GPU
|
||||
/// </summary>
|
||||
FLAG_VSYNC_HINT = 0x00000040,
|
||||
VSyncHint = 0x00000040,
|
||||
|
||||
/// <summary>
|
||||
/// Set to run program in fullscreen
|
||||
/// </summary>
|
||||
FLAG_FULLSCREEN_MODE = 0x00000002,
|
||||
FullscreenMode = 0x00000002,
|
||||
|
||||
/// <summary>
|
||||
/// Set to allow resizable window
|
||||
/// </summary>
|
||||
FLAG_WINDOW_RESIZABLE = 0x00000004,
|
||||
ResizableWindow = 0x00000004,
|
||||
|
||||
/// <summary>
|
||||
/// Set to disable window decoration (frame and buttons)
|
||||
/// </summary>
|
||||
FLAG_WINDOW_UNDECORATED = 0x00000008,
|
||||
UndecoratedWindow = 0x00000008,
|
||||
|
||||
/// <summary>
|
||||
/// Set to hide window
|
||||
/// </summary>
|
||||
FLAG_WINDOW_HIDDEN = 0x00000080,
|
||||
HiddenWindow = 0x00000080,
|
||||
|
||||
/// <summary>
|
||||
/// Set to minimize window (iconify)
|
||||
/// </summary>
|
||||
FLAG_WINDOW_MINIMIZED = 0x00000200,
|
||||
MinimizedWindow = 0x00000200,
|
||||
|
||||
/// <summary>
|
||||
/// Set to maximize window (expanded to monitor)
|
||||
/// </summary>
|
||||
FLAG_WINDOW_MAXIMIZED = 0x00000400,
|
||||
MaximizedWindow = 0x00000400,
|
||||
|
||||
/// <summary>
|
||||
/// Set to window non focused
|
||||
/// </summary>
|
||||
FLAG_WINDOW_UNFOCUSED = 0x00000800,
|
||||
UnfocusedWindow = 0x00000800,
|
||||
|
||||
/// <summary>
|
||||
/// Set to window always on top
|
||||
/// </summary>
|
||||
FLAG_WINDOW_TOPMOST = 0x00001000,
|
||||
TopmostWindow = 0x00001000,
|
||||
|
||||
/// <summary>
|
||||
/// Set to allow windows running while minimized
|
||||
/// </summary>
|
||||
FLAG_WINDOW_ALWAYS_RUN = 0x00000100,
|
||||
AlwaysRunWindow = 0x00000100,
|
||||
|
||||
/// <summary>
|
||||
/// Set to allow transparent framebuffer
|
||||
/// </summary>
|
||||
FLAG_WINDOW_TRANSPARENT = 0x00000010,
|
||||
TransparentWindow = 0x00000010,
|
||||
|
||||
/// <summary>
|
||||
/// Set to support HighDPI
|
||||
/// </summary>
|
||||
FLAG_WINDOW_HIGHDPI = 0x00002000,
|
||||
HighDpiWindow = 0x00002000,
|
||||
|
||||
/// <summary>
|
||||
/// Set to support mouse passthrough, only supported when FLAG_WINDOW_UNDECORATED
|
||||
/// </summary>
|
||||
FLAG_WINDOW_MOUSE_PASSTHROUGH = 0x00004000,
|
||||
MousePassthroughWindow = 0x00004000,
|
||||
|
||||
/// <summary>
|
||||
/// Set to run program in borderless windowed mode
|
||||
/// </summary>
|
||||
FLAG_BORDERLESS_WINDOWED_MODE = 0x00008000,
|
||||
BorderlessWindowMode = 0x00008000,
|
||||
|
||||
/// <summary>
|
||||
/// Set to try enabling MSAA 4X
|
||||
/// </summary>
|
||||
FLAG_MSAA_4X_HINT = 0x00000020,
|
||||
Msaa4xHint = 0x00000020,
|
||||
|
||||
/// <summary>
|
||||
/// Set to try enabling interlaced video format (for V3D)
|
||||
/// </summary>
|
||||
FLAG_INTERLACED_HINT = 0x00010000,
|
||||
InterlacedHint = 0x00010000,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -100,42 +100,42 @@ public enum TraceLogLevel
|
||||
/// <summary>
|
||||
/// Display all logs
|
||||
/// </summary>
|
||||
LOG_ALL = 0,
|
||||
All = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Trace logging, intended for internal use only
|
||||
/// </summary>
|
||||
LOG_TRACE,
|
||||
Trace,
|
||||
|
||||
/// <summary>
|
||||
/// Debug logging, used for internal debugging, it should be disabled on release builds
|
||||
/// </summary>
|
||||
LOG_DEBUG,
|
||||
Debug,
|
||||
|
||||
/// <summary>
|
||||
/// Info logging, used for program execution info
|
||||
/// </summary>
|
||||
LOG_INFO,
|
||||
Info,
|
||||
|
||||
/// <summary>
|
||||
/// Warning logging, used on recoverable failures
|
||||
/// </summary>
|
||||
LOG_WARNING,
|
||||
Warning,
|
||||
|
||||
/// <summary>
|
||||
/// Error logging, used on unrecoverable failures
|
||||
/// </summary>
|
||||
LOG_ERROR,
|
||||
Error,
|
||||
|
||||
/// <summary>
|
||||
/// Fatal logging, used to abort program: exit(EXIT_FAILURE)
|
||||
/// </summary>
|
||||
LOG_FATAL,
|
||||
Fatal,
|
||||
|
||||
/// <summary>
|
||||
/// Disable logging
|
||||
/// </summary>
|
||||
LOG_NONE
|
||||
None
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -146,40 +146,40 @@ public enum BlendMode
|
||||
/// <summary>
|
||||
/// Blend textures considering alpha (default)
|
||||
/// </summary>
|
||||
BLEND_ALPHA = 0,
|
||||
Alpha = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Blend textures adding colors
|
||||
/// </summary>
|
||||
BLEND_ADDITIVE,
|
||||
Additive,
|
||||
|
||||
/// <summary>
|
||||
/// Blend textures multiplying colors
|
||||
/// </summary>
|
||||
BLEND_MULTIPLIED,
|
||||
Multiplied,
|
||||
|
||||
/// <summary>
|
||||
/// Blend textures adding colors (alternative)
|
||||
/// </summary>
|
||||
BLEND_ADD_COLORS,
|
||||
AddColors,
|
||||
|
||||
/// <summary>
|
||||
/// Blend textures subtracting colors (alternative)
|
||||
/// </summary>
|
||||
BLEND_SUBTRACT_COLORS,
|
||||
SubtractColors,
|
||||
|
||||
/// <summary>
|
||||
/// Blend premultiplied textures considering alpha
|
||||
/// </summary>
|
||||
BLEND_ALPHA_PREMULTIPLY,
|
||||
AlphaPremultiply,
|
||||
|
||||
/// <summary>
|
||||
/// Blend textures using custom src/dst factors (use rlSetBlendFactors())
|
||||
/// </summary>
|
||||
BLEND_CUSTOM,
|
||||
Custom,
|
||||
|
||||
/// <summary>
|
||||
/// Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendFactorsSeparate())
|
||||
/// </summary>
|
||||
BLEND_CUSTOM_SEPARATE
|
||||
CustomSeparate
|
||||
}
|
||||
|
@ -10,17 +10,17 @@ public enum FontType
|
||||
/// <summary>
|
||||
/// Default font generation, anti-aliased
|
||||
/// </summary>
|
||||
FONT_DEFAULT = 0,
|
||||
Default = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Bitmap font generation, no anti-aliasing
|
||||
/// </summary>
|
||||
FONT_BITMAP,
|
||||
Bitmap,
|
||||
|
||||
/// <summary>
|
||||
/// SDF font generation, requires external shader
|
||||
/// </summary>
|
||||
FONT_SDF
|
||||
Sdf
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -11,107 +11,107 @@ public enum PixelFormat
|
||||
/// <summary>
|
||||
/// 8 bit per pixel (no alpha)
|
||||
/// </summary>
|
||||
PIXELFORMAT_UNCOMPRESSED_GRAYSCALE = 1,
|
||||
UncompressedGrayscale = 1,
|
||||
|
||||
/// <summary>
|
||||
/// 8*2 bpp (2 channels)
|
||||
/// </summary>
|
||||
PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA,
|
||||
UncompressedGrayAlpha,
|
||||
|
||||
/// <summary>
|
||||
/// 16 bpp
|
||||
/// </summary>
|
||||
PIXELFORMAT_UNCOMPRESSED_R5G6B5,
|
||||
UncompressedR5G6B5,
|
||||
|
||||
/// <summary>
|
||||
/// 24 bpp
|
||||
/// </summary>
|
||||
PIXELFORMAT_UNCOMPRESSED_R8G8B8,
|
||||
UncompressedR8G8B8,
|
||||
|
||||
/// <summary>
|
||||
/// 16 bpp (1 bit alpha)
|
||||
/// </summary>
|
||||
PIXELFORMAT_UNCOMPRESSED_R5G5B5A1,
|
||||
UncompressedR5G5B5A1,
|
||||
|
||||
/// <summary>
|
||||
/// 16 bpp (4 bit alpha)
|
||||
/// </summary>
|
||||
PIXELFORMAT_UNCOMPRESSED_R4G4B4A4,
|
||||
UncompressedR4G4B4A4,
|
||||
|
||||
/// <summary>
|
||||
/// 32 bpp
|
||||
/// </summary>
|
||||
PIXELFORMAT_UNCOMPRESSED_R8G8B8A8,
|
||||
UncompressedR8G8B8A8,
|
||||
|
||||
/// <summary>
|
||||
/// 32 bpp (1 channel - float)
|
||||
/// </summary>
|
||||
PIXELFORMAT_UNCOMPRESSED_R32,
|
||||
UncompressedR32,
|
||||
|
||||
/// <summary>
|
||||
/// 32*3 bpp (3 channels - float)
|
||||
/// </summary>
|
||||
PIXELFORMAT_UNCOMPRESSED_R32G32B32,
|
||||
UncompressedR32G32B32,
|
||||
|
||||
/// <summary>
|
||||
/// 32*4 bpp (4 channels - float)
|
||||
/// </summary>
|
||||
PIXELFORMAT_UNCOMPRESSED_R32G32B32A32,
|
||||
UncompressedR32G32B32A32,
|
||||
|
||||
/// <summary>
|
||||
/// 4 bpp (no alpha)
|
||||
/// </summary>
|
||||
PIXELFORMAT_COMPRESSED_DXT1_RGB,
|
||||
CompressedDxt1Rgb,
|
||||
|
||||
/// <summary>
|
||||
/// 4 bpp (1 bit alpha)
|
||||
/// </summary>
|
||||
PIXELFORMAT_COMPRESSED_DXT1_RGBA,
|
||||
CompressedDxt1Rgba,
|
||||
|
||||
/// <summary>
|
||||
/// 8 bpp
|
||||
/// </summary>
|
||||
PIXELFORMAT_COMPRESSED_DXT3_RGBA,
|
||||
CompressedDxt3Rgba,
|
||||
|
||||
/// <summary>
|
||||
/// 8 bpp
|
||||
/// </summary>
|
||||
PIXELFORMAT_COMPRESSED_DXT5_RGBA,
|
||||
CompressedDxt5Rgba,
|
||||
|
||||
/// <summary>
|
||||
/// 4 bpp
|
||||
/// </summary>
|
||||
PIXELFORMAT_COMPRESSED_ETC1_RGB,
|
||||
CompressedEtc1Rgb,
|
||||
|
||||
/// <summary>
|
||||
/// 4 bpp
|
||||
/// </summary>
|
||||
PIXELFORMAT_COMPRESSED_ETC2_RGB,
|
||||
CompressedEtc2Rgb,
|
||||
|
||||
/// <summary>
|
||||
/// 8 bpp
|
||||
/// </summary>
|
||||
PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA,
|
||||
CompressedEtc2EacRgba,
|
||||
|
||||
/// <summary>
|
||||
/// 4 bpp
|
||||
/// </summary>
|
||||
PIXELFORMAT_COMPRESSED_PVRT_RGB,
|
||||
CompressedPvrtRgb,
|
||||
|
||||
/// <summary>
|
||||
/// 4 bpp
|
||||
/// </summary>
|
||||
PIXELFORMAT_COMPRESSED_PVRT_RGBA,
|
||||
CompressedPvrtRgba,
|
||||
|
||||
/// <summary>
|
||||
/// 8 bpp
|
||||
/// </summary>
|
||||
PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA,
|
||||
CompressedAstc4X4Rgba,
|
||||
|
||||
/// <summary>
|
||||
/// 2 bpp
|
||||
/// </summary>
|
||||
PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA
|
||||
CompressedAstc8X8Rgba
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -13,124 +13,124 @@ public enum KeyboardKey
|
||||
/// <summary>
|
||||
/// NULL, used for no key pressed
|
||||
/// </summary>
|
||||
KEY_NULL = 0,
|
||||
Null = 0,
|
||||
|
||||
// Alphanumeric keys
|
||||
KEY_APOSTROPHE = 39,
|
||||
KEY_COMMA = 44,
|
||||
KEY_MINUS = 45,
|
||||
KEY_PERIOD = 46,
|
||||
KEY_SLASH = 47,
|
||||
KEY_ZERO = 48,
|
||||
KEY_ONE = 49,
|
||||
KEY_TWO = 50,
|
||||
KEY_THREE = 51,
|
||||
KEY_FOUR = 52,
|
||||
KEY_FIVE = 53,
|
||||
KEY_SIX = 54,
|
||||
KEY_SEVEN = 55,
|
||||
KEY_EIGHT = 56,
|
||||
KEY_NINE = 57,
|
||||
KEY_SEMICOLON = 59,
|
||||
KEY_EQUAL = 61,
|
||||
KEY_A = 65,
|
||||
KEY_B = 66,
|
||||
KEY_C = 67,
|
||||
KEY_D = 68,
|
||||
KEY_E = 69,
|
||||
KEY_F = 70,
|
||||
KEY_G = 71,
|
||||
KEY_H = 72,
|
||||
KEY_I = 73,
|
||||
KEY_J = 74,
|
||||
KEY_K = 75,
|
||||
KEY_L = 76,
|
||||
KEY_M = 77,
|
||||
KEY_N = 78,
|
||||
KEY_O = 79,
|
||||
KEY_P = 80,
|
||||
KEY_Q = 81,
|
||||
KEY_R = 82,
|
||||
KEY_S = 83,
|
||||
KEY_T = 84,
|
||||
KEY_U = 85,
|
||||
KEY_V = 86,
|
||||
KEY_W = 87,
|
||||
KEY_X = 88,
|
||||
KEY_Y = 89,
|
||||
KEY_Z = 90,
|
||||
Apostrophe = 39,
|
||||
Comma = 44,
|
||||
Minus = 45,
|
||||
Period = 46,
|
||||
Slash = 47,
|
||||
Zero = 48,
|
||||
One = 49,
|
||||
Two = 50,
|
||||
Three = 51,
|
||||
Four = 52,
|
||||
Five = 53,
|
||||
Six = 54,
|
||||
Seven = 55,
|
||||
Eight = 56,
|
||||
Nine = 57,
|
||||
Semicolon = 59,
|
||||
Equal = 61,
|
||||
A = 65,
|
||||
B = 66,
|
||||
C = 67,
|
||||
D = 68,
|
||||
E = 69,
|
||||
F = 70,
|
||||
G = 71,
|
||||
H = 72,
|
||||
I = 73,
|
||||
J = 74,
|
||||
K = 75,
|
||||
L = 76,
|
||||
M = 77,
|
||||
N = 78,
|
||||
O = 79,
|
||||
P = 80,
|
||||
Q = 81,
|
||||
R = 82,
|
||||
S = 83,
|
||||
T = 84,
|
||||
U = 85,
|
||||
V = 86,
|
||||
W = 87,
|
||||
X = 88,
|
||||
Y = 89,
|
||||
Z = 90,
|
||||
|
||||
// Function keys
|
||||
KEY_SPACE = 32,
|
||||
KEY_ESCAPE = 256,
|
||||
KEY_ENTER = 257,
|
||||
KEY_TAB = 258,
|
||||
KEY_BACKSPACE = 259,
|
||||
KEY_INSERT = 260,
|
||||
KEY_DELETE = 261,
|
||||
KEY_RIGHT = 262,
|
||||
KEY_LEFT = 263,
|
||||
KEY_DOWN = 264,
|
||||
KEY_UP = 265,
|
||||
KEY_PAGE_UP = 266,
|
||||
KEY_PAGE_DOWN = 267,
|
||||
KEY_HOME = 268,
|
||||
KEY_END = 269,
|
||||
KEY_CAPS_LOCK = 280,
|
||||
KEY_SCROLL_LOCK = 281,
|
||||
KEY_NUM_LOCK = 282,
|
||||
KEY_PRINT_SCREEN = 283,
|
||||
KEY_PAUSE = 284,
|
||||
KEY_F1 = 290,
|
||||
KEY_F2 = 291,
|
||||
KEY_F3 = 292,
|
||||
KEY_F4 = 293,
|
||||
KEY_F5 = 294,
|
||||
KEY_F6 = 295,
|
||||
KEY_F7 = 296,
|
||||
KEY_F8 = 297,
|
||||
KEY_F9 = 298,
|
||||
KEY_F10 = 299,
|
||||
KEY_F11 = 300,
|
||||
KEY_F12 = 301,
|
||||
KEY_LEFT_SHIFT = 340,
|
||||
KEY_LEFT_CONTROL = 341,
|
||||
KEY_LEFT_ALT = 342,
|
||||
KEY_LEFT_SUPER = 343,
|
||||
KEY_RIGHT_SHIFT = 344,
|
||||
KEY_RIGHT_CONTROL = 345,
|
||||
KEY_RIGHT_ALT = 346,
|
||||
KEY_RIGHT_SUPER = 347,
|
||||
KEY_KB_MENU = 348,
|
||||
KEY_LEFT_BRACKET = 91,
|
||||
KEY_BACKSLASH = 92,
|
||||
KEY_RIGHT_BRACKET = 93,
|
||||
KEY_GRAVE = 96,
|
||||
Space = 32,
|
||||
Escape = 256,
|
||||
Enter = 257,
|
||||
Tab = 258,
|
||||
Backspace = 259,
|
||||
Insert = 260,
|
||||
Delete = 261,
|
||||
Right = 262,
|
||||
Left = 263,
|
||||
Down = 264,
|
||||
Up = 265,
|
||||
PageUp = 266,
|
||||
PageDown = 267,
|
||||
Home = 268,
|
||||
End = 269,
|
||||
CapsLock = 280,
|
||||
ScrollLock = 281,
|
||||
NumLock = 282,
|
||||
PrintScreen = 283,
|
||||
Pause = 284,
|
||||
F1 = 290,
|
||||
F2 = 291,
|
||||
F3 = 292,
|
||||
F4 = 293,
|
||||
F5 = 294,
|
||||
F6 = 295,
|
||||
F7 = 296,
|
||||
F8 = 297,
|
||||
F9 = 298,
|
||||
F10 = 299,
|
||||
F11 = 300,
|
||||
F12 = 301,
|
||||
LeftShift = 340,
|
||||
LeftControl = 341,
|
||||
LeftAlt = 342,
|
||||
LeftSuper = 343,
|
||||
RightShift = 344,
|
||||
RightControl = 345,
|
||||
RightAlt = 346,
|
||||
RightSuper = 347,
|
||||
KeyboardMenu = 348,
|
||||
LeftBracket = 91,
|
||||
Backslash = 92,
|
||||
RightBracket = 93,
|
||||
Grave = 96,
|
||||
|
||||
// Keypad keys
|
||||
KEY_KP_0 = 320,
|
||||
KEY_KP_1 = 321,
|
||||
KEY_KP_2 = 322,
|
||||
KEY_KP_3 = 323,
|
||||
KEY_KP_4 = 324,
|
||||
KEY_KP_5 = 325,
|
||||
KEY_KP_6 = 326,
|
||||
KEY_KP_7 = 327,
|
||||
KEY_KP_8 = 328,
|
||||
KEY_KP_9 = 329,
|
||||
KEY_KP_DECIMAL = 330,
|
||||
KEY_KP_DIVIDE = 331,
|
||||
KEY_KP_MULTIPLY = 332,
|
||||
KEY_KP_SUBTRACT = 333,
|
||||
KEY_KP_ADD = 334,
|
||||
KEY_KP_ENTER = 335,
|
||||
KEY_KP_EQUAL = 336,
|
||||
Kp0 = 320,
|
||||
Kp1 = 321,
|
||||
Kp2 = 322,
|
||||
Kp3 = 323,
|
||||
Kp4 = 324,
|
||||
Kp5 = 325,
|
||||
Kp6 = 326,
|
||||
Kp7 = 327,
|
||||
Kp8 = 328,
|
||||
Kp9 = 329,
|
||||
KpDecimal = 330,
|
||||
KpDivide = 331,
|
||||
KpMultiply = 332,
|
||||
KpSubtract = 333,
|
||||
KpAdd = 334,
|
||||
KpEnter = 335,
|
||||
KpEqual = 336,
|
||||
|
||||
// Android key buttons
|
||||
KEY_BACK = 4,
|
||||
KEY_MENU = 82,
|
||||
KEY_VOLUME_UP = 24,
|
||||
KEY_VOLUME_DOWN = 25
|
||||
Back = 4,
|
||||
Menu = 82,
|
||||
VolumeUp = 24,
|
||||
VolumeDown = 25
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -141,41 +141,37 @@ public enum MouseButton
|
||||
/// <summary>
|
||||
/// Mouse button left
|
||||
/// </summary>
|
||||
MOUSE_BUTTON_LEFT = 0,
|
||||
Left = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Mouse button right
|
||||
/// </summary>
|
||||
MOUSE_BUTTON_RIGHT = 1,
|
||||
Right = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Mouse button middle (pressed wheel)
|
||||
/// </summary>
|
||||
MOUSE_BUTTON_MIDDLE = 2,
|
||||
Middle = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Mouse button side (advanced mouse device)
|
||||
/// </summary>
|
||||
MOUSE_BUTTON_SIDE = 3,
|
||||
Side = 3,
|
||||
|
||||
/// <summary>
|
||||
/// Mouse button extra (advanced mouse device)
|
||||
/// </summary>
|
||||
MOUSE_BUTTON_EXTRA = 4,
|
||||
Extra = 4,
|
||||
|
||||
/// <summary>
|
||||
/// Mouse button forward (advanced mouse device)
|
||||
/// </summary>
|
||||
MOUSE_BUTTON_FORWARD = 5,
|
||||
Forward = 5,
|
||||
|
||||
/// <summary>
|
||||
/// Mouse button back (advanced mouse device)
|
||||
/// </summary>
|
||||
MOUSE_BUTTON_BACK = 6,
|
||||
|
||||
MOUSE_LEFT_BUTTON = MOUSE_BUTTON_LEFT,
|
||||
MOUSE_RIGHT_BUTTON = MOUSE_BUTTON_RIGHT,
|
||||
MOUSE_MIDDLE_BUTTON = MOUSE_BUTTON_MIDDLE,
|
||||
Back = 6
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -186,57 +182,57 @@ public enum MouseCursor
|
||||
/// <summary>
|
||||
/// Default pointer shape
|
||||
/// </summary>
|
||||
MOUSE_CURSOR_DEFAULT = 0,
|
||||
Default = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Arrow shape
|
||||
/// </summary>
|
||||
MOUSE_CURSOR_ARROW = 1,
|
||||
Arrow = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Text writing cursor shape
|
||||
/// </summary>
|
||||
MOUSE_CURSOR_IBEAM = 2,
|
||||
IBeam = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Cross shape
|
||||
/// </summary>
|
||||
MOUSE_CURSOR_CROSSHAIR = 3,
|
||||
Crosshair = 3,
|
||||
|
||||
/// <summary>
|
||||
/// Pointing hand cursor
|
||||
/// </summary>
|
||||
MOUSE_CURSOR_POINTING_HAND = 4,
|
||||
PointingHand = 4,
|
||||
|
||||
/// <summary>
|
||||
/// Horizontal resize/move arrow shape
|
||||
/// </summary>
|
||||
MOUSE_CURSOR_RESIZE_EW = 5,
|
||||
ResizeEw = 5,
|
||||
|
||||
/// <summary>
|
||||
/// Vertical resize/move arrow shape
|
||||
/// </summary>
|
||||
MOUSE_CURSOR_RESIZE_NS = 6,
|
||||
ResizeNs = 6,
|
||||
|
||||
/// <summary>
|
||||
/// Top-left to bottom-right diagonal resize/move arrow shape
|
||||
/// </summary>
|
||||
MOUSE_CURSOR_RESIZE_NWSE = 7,
|
||||
ResizeNwse = 7,
|
||||
|
||||
/// <summary>
|
||||
/// The top-right to bottom-left diagonal resize/move arrow shape
|
||||
/// </summary>
|
||||
MOUSE_CURSOR_RESIZE_NESW = 8,
|
||||
ResizeNesw = 8,
|
||||
|
||||
/// <summary>
|
||||
/// The omnidirectional resize/move cursor shape
|
||||
/// </summary>
|
||||
MOUSE_CURSOR_RESIZE_ALL = 9,
|
||||
ResizeAll = 9,
|
||||
|
||||
/// <summary>
|
||||
/// The operation-not-allowed shape
|
||||
/// </summary>
|
||||
MOUSE_CURSOR_NOT_ALLOWED = 10
|
||||
NotAllowed = 10
|
||||
}
|
||||
|
||||
/// <summary>Gamepad axis</summary>
|
||||
@ -245,32 +241,32 @@ public enum GamepadAxis
|
||||
/// <summary>
|
||||
/// Gamepad left stick X axis
|
||||
/// </summary>
|
||||
GAMEPAD_AXIS_LEFT_X = 0,
|
||||
LeftX = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Gamepad left stick Y axis
|
||||
/// </summary>
|
||||
GAMEPAD_AXIS_LEFT_Y = 1,
|
||||
LeftY = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Gamepad right stick X axis
|
||||
/// </summary>
|
||||
GAMEPAD_AXIS_RIGHT_X = 2,
|
||||
RightX = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Gamepad right stick Y axis
|
||||
/// </summary>
|
||||
GAMEPAD_AXIS_RIGHT_Y = 3,
|
||||
RightY = 3,
|
||||
|
||||
/// <summary>
|
||||
/// Gamepad back trigger left, pressure level: [1..-1]
|
||||
/// </summary>
|
||||
GAMEPAD_AXIS_LEFT_TRIGGER = 4,
|
||||
LeftTrigger = 4,
|
||||
|
||||
/// <summary>
|
||||
/// Gamepad back trigger right, pressure level: [1..-1]
|
||||
/// </summary>
|
||||
GAMEPAD_AXIS_RIGHT_TRIGGER = 5
|
||||
RightTrigger = 5
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -281,92 +277,92 @@ public enum GamepadButton
|
||||
/// <summary>
|
||||
/// Unknown button, just for error checking
|
||||
/// </summary>
|
||||
GAMEPAD_BUTTON_UNKNOWN = 0,
|
||||
Unknown = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Gamepad left DPAD up button
|
||||
/// </summary>
|
||||
GAMEPAD_BUTTON_LEFT_FACE_UP,
|
||||
LeftFaceUp,
|
||||
|
||||
/// <summary>
|
||||
/// Gamepad left DPAD right button
|
||||
/// </summary>
|
||||
GAMEPAD_BUTTON_LEFT_FACE_RIGHT,
|
||||
LeftFaceRight,
|
||||
|
||||
/// <summary>
|
||||
/// Gamepad left DPAD down button
|
||||
/// </summary>
|
||||
GAMEPAD_BUTTON_LEFT_FACE_DOWN,
|
||||
LeftFaceDown,
|
||||
|
||||
/// <summary>
|
||||
/// Gamepad left DPAD left button
|
||||
/// </summary>
|
||||
GAMEPAD_BUTTON_LEFT_FACE_LEFT,
|
||||
LeftFaceLeft,
|
||||
|
||||
/// <summary>
|
||||
/// Gamepad right button up (i.e. PS3: Triangle, Xbox: Y)
|
||||
/// </summary>
|
||||
GAMEPAD_BUTTON_RIGHT_FACE_UP,
|
||||
RightFaceUp,
|
||||
|
||||
/// <summary>
|
||||
/// Gamepad right button right (i.e. PS3: Square, Xbox: X)
|
||||
/// </summary>
|
||||
GAMEPAD_BUTTON_RIGHT_FACE_RIGHT,
|
||||
RightFaceRight,
|
||||
|
||||
/// <summary>
|
||||
/// Gamepad right button down (i.e. PS3: Cross, Xbox: A)
|
||||
/// </summary>
|
||||
GAMEPAD_BUTTON_RIGHT_FACE_DOWN,
|
||||
RightFaceDown,
|
||||
|
||||
/// <summary>
|
||||
/// Gamepad right button left (i.e. PS3: Circle, Xbox: B)
|
||||
/// </summary>
|
||||
GAMEPAD_BUTTON_RIGHT_FACE_LEFT,
|
||||
RightFaceLeft,
|
||||
|
||||
/// <summary>
|
||||
/// Gamepad top/back trigger left (first), it could be a trailing button
|
||||
/// </summary>
|
||||
GAMEPAD_BUTTON_LEFT_TRIGGER_1,
|
||||
LeftTrigger1,
|
||||
|
||||
/// <summary>
|
||||
/// Gamepad top/back trigger left (second), it could be a trailing button
|
||||
/// </summary>
|
||||
GAMEPAD_BUTTON_LEFT_TRIGGER_2,
|
||||
LeftTrigger2,
|
||||
|
||||
/// <summary>
|
||||
/// Gamepad top/back trigger right (first), it could be a trailing button
|
||||
/// </summary>
|
||||
GAMEPAD_BUTTON_RIGHT_TRIGGER_1,
|
||||
RightTrigger1,
|
||||
|
||||
/// <summary>
|
||||
/// Gamepad top/back trigger right (second), it could be a trailing button
|
||||
/// </summary>
|
||||
GAMEPAD_BUTTON_RIGHT_TRIGGER_2,
|
||||
RightTrigger2,
|
||||
|
||||
/// <summary>
|
||||
/// Gamepad center buttons, left one (i.e. PS3: Select)
|
||||
/// </summary>
|
||||
GAMEPAD_BUTTON_MIDDLE_LEFT,
|
||||
MiddleLeft,
|
||||
|
||||
/// <summary>
|
||||
/// Gamepad center buttons, middle one (i.e. PS3: PS, Xbox: XBOX)
|
||||
/// </summary>
|
||||
GAMEPAD_BUTTON_MIDDLE,
|
||||
Middle,
|
||||
|
||||
/// <summary>
|
||||
/// Gamepad center buttons, right one (i.e. PS3: Start)
|
||||
/// </summary>
|
||||
GAMEPAD_BUTTON_MIDDLE_RIGHT,
|
||||
MiddleRight,
|
||||
|
||||
/// <summary>
|
||||
/// Gamepad joystick pressed button left
|
||||
/// </summary>
|
||||
GAMEPAD_BUTTON_LEFT_THUMB,
|
||||
LeftThumb,
|
||||
|
||||
/// <summary>
|
||||
/// Gamepad joystick pressed button right
|
||||
/// </summary>
|
||||
GAMEPAD_BUTTON_RIGHT_THUMB
|
||||
RightThumb
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -376,17 +372,17 @@ public enum GamepadButton
|
||||
[Flags]
|
||||
public enum Gesture : uint
|
||||
{
|
||||
GESTURE_NONE = 0,
|
||||
GESTURE_TAP = 1,
|
||||
GESTURE_DOUBLETAP = 2,
|
||||
GESTURE_HOLD = 4,
|
||||
GESTURE_DRAG = 8,
|
||||
GESTURE_SWIPE_RIGHT = 16,
|
||||
GESTURE_SWIPE_LEFT = 32,
|
||||
GESTURE_SWIPE_UP = 64,
|
||||
GESTURE_SWIPE_DOWN = 128,
|
||||
GESTURE_PINCH_IN = 256,
|
||||
GESTURE_PINCH_OUT = 512
|
||||
None = 0,
|
||||
Tap = 1,
|
||||
DoubleTap = 2,
|
||||
Hold = 4,
|
||||
Drag = 8,
|
||||
SwipeRight = 16,
|
||||
SwipeLeft = 32,
|
||||
SwipeUp = 64,
|
||||
SwipeDown = 128,
|
||||
PinchIn = 256,
|
||||
PinchOut = 512
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -10,38 +10,38 @@ public enum MaterialMapIndex
|
||||
/// <summary>
|
||||
/// NOTE: Same as MATERIAL_MAP_DIFFUSE
|
||||
/// </summary>
|
||||
MATERIAL_MAP_ALBEDO = 0,
|
||||
Albedo = 0,
|
||||
|
||||
/// <summary>
|
||||
/// NOTE: Same as MATERIAL_MAP_SPECULAR
|
||||
/// </summary>
|
||||
MATERIAL_MAP_METALNESS,
|
||||
Metalness,
|
||||
|
||||
MATERIAL_MAP_NORMAL,
|
||||
MATERIAL_MAP_ROUGHNESS,
|
||||
MATERIAL_MAP_OCCLUSION,
|
||||
MATERIAL_MAP_EMISSION,
|
||||
MATERIAL_MAP_HEIGHT,
|
||||
Normal,
|
||||
Roughness,
|
||||
Occlusion,
|
||||
Emission,
|
||||
Height,
|
||||
|
||||
/// <summary>
|
||||
/// NOTE: Uses GL_TEXTURE_CUBE_MAP
|
||||
/// </summary>
|
||||
MATERIAL_MAP_CUBEMAP,
|
||||
Cubemap,
|
||||
|
||||
/// <summary>
|
||||
/// NOTE: Uses GL_TEXTURE_CUBE_MAP
|
||||
/// </summary>
|
||||
MATERIAL_MAP_IRRADIANCE,
|
||||
Irradiance,
|
||||
|
||||
/// <summary>
|
||||
/// NOTE: Uses GL_TEXTURE_CUBE_MAP
|
||||
/// </summary>
|
||||
MATERIAL_MAP_PREFILTER,
|
||||
Prefilter,
|
||||
|
||||
MATERIAL_MAP_BRDF,
|
||||
Brdf,
|
||||
|
||||
MATERIAL_MAP_DIFFUSE = MATERIAL_MAP_ALBEDO,
|
||||
MATERIAL_MAP_SPECULAR = MATERIAL_MAP_METALNESS,
|
||||
Diffuse = Albedo,
|
||||
Specular = Metalness,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -10,17 +10,17 @@ public enum NPatchLayout
|
||||
/// <summary>
|
||||
/// Npatch defined by 3x3 tiles
|
||||
/// </summary>
|
||||
NPATCH_NINE_PATCH = 0,
|
||||
NinePatch = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Npatch defined by 1x3 tiles
|
||||
/// </summary>
|
||||
NPATCH_THREE_PATCH_VERTICAL,
|
||||
ThreePatchVertical,
|
||||
|
||||
/// <summary>
|
||||
/// Npatch defined by 3x1 tiles
|
||||
/// </summary>
|
||||
NPATCH_THREE_PATCH_HORIZONTAL
|
||||
ThreePatchHorizontal
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -140,37 +140,37 @@ public partial struct DrawCall
|
||||
|
||||
public enum GlVersion
|
||||
{
|
||||
OPENGL_11 = 1,
|
||||
OPENGL_21,
|
||||
OPENGL_33,
|
||||
OPENGL_43,
|
||||
OPENGL_ES_20
|
||||
OpenGl11 = 1,
|
||||
OpenGl21,
|
||||
OpenGl33,
|
||||
OpenGl43,
|
||||
OpenGlEs20
|
||||
}
|
||||
|
||||
public enum FramebufferAttachType
|
||||
{
|
||||
RL_ATTACHMENT_COLOR_CHANNEL0 = 0,
|
||||
RL_ATTACHMENT_COLOR_CHANNEL1,
|
||||
RL_ATTACHMENT_COLOR_CHANNEL2,
|
||||
RL_ATTACHMENT_COLOR_CHANNEL3,
|
||||
RL_ATTACHMENT_COLOR_CHANNEL4,
|
||||
RL_ATTACHMENT_COLOR_CHANNEL5,
|
||||
RL_ATTACHMENT_COLOR_CHANNEL6,
|
||||
RL_ATTACHMENT_COLOR_CHANNEL7,
|
||||
RL_ATTACHMENT_DEPTH = 100,
|
||||
RL_ATTACHMENT_STENCIL = 200,
|
||||
ColorChannel0 = 0,
|
||||
ColorChannel1,
|
||||
ColorChannel2,
|
||||
ColorChannel3,
|
||||
ColorChannel4,
|
||||
ColorChannel5,
|
||||
ColorChannel6,
|
||||
ColorChannel7,
|
||||
Depth = 100,
|
||||
Stencil = 200,
|
||||
}
|
||||
|
||||
public enum FramebufferAttachTextureType
|
||||
{
|
||||
RL_ATTACHMENT_CUBEMAP_POSITIVE_X = 0,
|
||||
RL_ATTACHMENT_CUBEMAP_NEGATIVE_X,
|
||||
RL_ATTACHMENT_CUBEMAP_POSITIVE_Y,
|
||||
RL_ATTACHMENT_CUBEMAP_NEGATIVE_Y,
|
||||
RL_ATTACHMENT_CUBEMAP_POSITIVE_Z,
|
||||
RL_ATTACHMENT_CUBEMAP_NEGATIVE_Z,
|
||||
RL_ATTACHMENT_TEXTURE2D = 100,
|
||||
RL_ATTACHMENT_RENDERBUFFER = 200,
|
||||
CubemapPositiveX = 0,
|
||||
CubemapNegativeX,
|
||||
CubemapPositiveY,
|
||||
CubemapNegativeY,
|
||||
CubemapPositiveZ,
|
||||
CubemapNegativeZ,
|
||||
Texture2D = 100,
|
||||
Renderbuffer = 200,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -181,17 +181,17 @@ public enum MatrixMode
|
||||
/// <summary>
|
||||
/// GL_MODELVIEW
|
||||
/// </summary>
|
||||
MODELVIEW = 0x1700,
|
||||
ModelView = 0x1700,
|
||||
|
||||
/// <summary>
|
||||
/// GL_PROJECTION
|
||||
/// </summary>
|
||||
PROJECTION = 0x1701,
|
||||
Projection = 0x1701,
|
||||
|
||||
/// <summary>
|
||||
/// GL_TEXTURE
|
||||
/// </summary>
|
||||
TEXTURE = 0x1702
|
||||
Texture = 0x1702
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -202,17 +202,17 @@ public enum DrawMode
|
||||
/// <summary>
|
||||
/// GL_LINES
|
||||
/// </summary>
|
||||
LINES = 0x0001,
|
||||
Lines = 0x0001,
|
||||
|
||||
/// <summary>
|
||||
/// GL_TRIANGLES
|
||||
/// </summary>
|
||||
TRIANGLES = 0x0004,
|
||||
Triangles = 0x0004,
|
||||
|
||||
/// <summary>
|
||||
/// GL_QUADS
|
||||
/// </summary>
|
||||
QUADS = 0x0007
|
||||
Quads = 0x0007
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -225,49 +225,49 @@ public enum TextureFilters
|
||||
/// <br/>
|
||||
/// GL_NEAREST
|
||||
/// </summary>
|
||||
NEAREST = 0x2600,
|
||||
Nearest = 0x2600,
|
||||
|
||||
/// <summary>
|
||||
/// RL_TEXTURE_FILTER_LINEAR
|
||||
/// <br/>
|
||||
/// GL_LINEAR
|
||||
/// </summary>
|
||||
LINEAR = 0x2601,
|
||||
Linear = 0x2601,
|
||||
|
||||
/// <summary>
|
||||
/// RL_TEXTURE_FILTER_MIP_NEAREST
|
||||
/// <br/>
|
||||
/// GL_NEAREST_MIPMAP_NEAREST
|
||||
/// </summary>
|
||||
MIP_NEAREST = 0x2700,
|
||||
MipNearest = 0x2700,
|
||||
|
||||
/// <summary>
|
||||
/// RL_TEXTURE_FILTER_NEAREST_MIP_LINEAR
|
||||
/// <br/>
|
||||
/// GL_NEAREST_MIPMAP_LINEAR
|
||||
/// </summary>
|
||||
NEAREST_MIP_LINEAR = 0x2702,
|
||||
NearestMipLinear = 0x2702,
|
||||
|
||||
/// <summary>
|
||||
/// RL_TEXTURE_FILTER_LINEAR_MIP_NEAREST
|
||||
/// <br/>
|
||||
/// GL_LINEAR_MIPMAP_NEAREST
|
||||
/// </summary>
|
||||
LINEAR_MIP_NEAREST = 0x2701,
|
||||
LinearMipNearest = 0x2701,
|
||||
|
||||
/// <summary>
|
||||
/// RL_TEXTURE_FILTER_MIP_LINEAR
|
||||
/// <br/>
|
||||
/// GL_LINEAR_MIPMAP_LINEAR
|
||||
/// </summary>
|
||||
MIP_LINEAR = 0x2703,
|
||||
MipLinear = 0x2703,
|
||||
|
||||
/// <summary>
|
||||
/// RL_TEXTURE_FILTER_ANISOTROPIC
|
||||
/// <br/>
|
||||
/// Anisotropic filter (custom identifier)
|
||||
/// </summary>
|
||||
ANISOTROPIC = 0x3000
|
||||
Anisotropic = 0x3000
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -280,19 +280,19 @@ public enum ShaderType
|
||||
/// <br/>
|
||||
/// GL_FRAGMENT_SHADER
|
||||
/// </summary>
|
||||
FRAGMENT = 0x8B30,
|
||||
Fragment = 0x8B30,
|
||||
|
||||
/// <summary>
|
||||
/// RL_VERTEX_SHADER
|
||||
/// <br/>
|
||||
/// GL_VERTEX_SHADER
|
||||
/// </summary>
|
||||
VERTEX = 0x8B31,
|
||||
Vertex = 0x8B31,
|
||||
|
||||
/// <summary>
|
||||
/// RL_COMPUTE_SHADER
|
||||
/// <br/>
|
||||
/// GL_COMPUTE_SHADER
|
||||
/// </summary>
|
||||
COMPUTE = 0x91b9
|
||||
Compute = 0x91b9
|
||||
}
|
||||
|
@ -7,35 +7,35 @@ namespace Raylib_cs;
|
||||
/// </summary>
|
||||
public enum ShaderLocationIndex
|
||||
{
|
||||
SHADER_LOC_VERTEX_POSITION = 0,
|
||||
SHADER_LOC_VERTEX_TEXCOORD01,
|
||||
SHADER_LOC_VERTEX_TEXCOORD02,
|
||||
SHADER_LOC_VERTEX_NORMAL,
|
||||
SHADER_LOC_VERTEX_TANGENT,
|
||||
SHADER_LOC_VERTEX_COLOR,
|
||||
SHADER_LOC_MATRIX_MVP,
|
||||
SHADER_LOC_MATRIX_VIEW,
|
||||
SHADER_LOC_MATRIX_PROJECTION,
|
||||
SHADER_LOC_MATRIX_MODEL,
|
||||
SHADER_LOC_MATRIX_NORMAL,
|
||||
SHADER_LOC_VECTOR_VIEW,
|
||||
SHADER_LOC_COLOR_DIFFUSE,
|
||||
SHADER_LOC_COLOR_SPECULAR,
|
||||
SHADER_LOC_COLOR_AMBIENT,
|
||||
SHADER_LOC_MAP_ALBEDO,
|
||||
SHADER_LOC_MAP_METALNESS,
|
||||
SHADER_LOC_MAP_NORMAL,
|
||||
SHADER_LOC_MAP_ROUGHNESS,
|
||||
SHADER_LOC_MAP_OCCLUSION,
|
||||
SHADER_LOC_MAP_EMISSION,
|
||||
SHADER_LOC_MAP_HEIGHT,
|
||||
SHADER_LOC_MAP_CUBEMAP,
|
||||
SHADER_LOC_MAP_IRRADIANCE,
|
||||
SHADER_LOC_MAP_PREFILTER,
|
||||
SHADER_LOC_MAP_BRDF,
|
||||
VertexPosition = 0,
|
||||
VertexTexcoord01,
|
||||
VertexTexcoord02,
|
||||
VertexNormal,
|
||||
VertexTangent,
|
||||
VertexColor,
|
||||
MatrixMvp,
|
||||
MatrixView,
|
||||
MatrixProjection,
|
||||
MatrixModel,
|
||||
MatrixNormal,
|
||||
VectorView,
|
||||
ColorDiffuse,
|
||||
ColorSpecular,
|
||||
ColorAmbient,
|
||||
MapAlbedo,
|
||||
MapMetalness,
|
||||
MapNormal,
|
||||
MapRoughness,
|
||||
MapOcclusion,
|
||||
MapEmission,
|
||||
MapHeight,
|
||||
MapCubemap,
|
||||
MapIrradiance,
|
||||
MapPrefilter,
|
||||
MapBrdf,
|
||||
|
||||
SHADER_LOC_MAP_DIFFUSE = SHADER_LOC_MAP_ALBEDO,
|
||||
SHADER_LOC_MAP_SPECULAR = SHADER_LOC_MAP_METALNESS,
|
||||
MapDiffuse = MapAlbedo,
|
||||
MapSpecular = MapMetalness,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -43,10 +43,10 @@ public enum ShaderLocationIndex
|
||||
/// </summary>
|
||||
public enum ShaderAttributeDataType
|
||||
{
|
||||
SHADER_ATTRIB_FLOAT = 0,
|
||||
SHADER_ATTRIB_VEC2,
|
||||
SHADER_ATTRIB_VEC3,
|
||||
SHADER_ATTRIB_VEC4
|
||||
Float = 0,
|
||||
Vec2,
|
||||
Vec3,
|
||||
Vec4
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -54,15 +54,15 @@ public enum ShaderAttributeDataType
|
||||
/// </summary>
|
||||
public enum ShaderUniformDataType
|
||||
{
|
||||
SHADER_UNIFORM_FLOAT = 0,
|
||||
SHADER_UNIFORM_VEC2,
|
||||
SHADER_UNIFORM_VEC3,
|
||||
SHADER_UNIFORM_VEC4,
|
||||
SHADER_UNIFORM_INT,
|
||||
SHADER_UNIFORM_IVEC2,
|
||||
SHADER_UNIFORM_IVEC3,
|
||||
SHADER_UNIFORM_IVEC4,
|
||||
SHADER_UNIFORM_SAMPLER2D
|
||||
Float = 0,
|
||||
Vec2,
|
||||
Vec3,
|
||||
Vec4,
|
||||
Int,
|
||||
IVec2,
|
||||
IVec3,
|
||||
IVec4,
|
||||
Sampler2D
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -12,32 +12,32 @@ public enum TextureFilter
|
||||
/// <summary>
|
||||
/// No filter, just pixel aproximation
|
||||
/// </summary>
|
||||
TEXTURE_FILTER_POINT = 0,
|
||||
Point = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Linear filtering
|
||||
/// </summary>
|
||||
TEXTURE_FILTER_BILINEAR,
|
||||
Bilinear,
|
||||
|
||||
/// <summary>
|
||||
/// Trilinear filtering (linear with mipmaps)
|
||||
/// </summary>
|
||||
TEXTURE_FILTER_TRILINEAR,
|
||||
Trilinear,
|
||||
|
||||
/// <summary>
|
||||
/// Anisotropic filtering 4x
|
||||
/// </summary>
|
||||
TEXTURE_FILTER_ANISOTROPIC_4X,
|
||||
Anisotropic4X,
|
||||
|
||||
/// <summary>
|
||||
/// Anisotropic filtering 8x
|
||||
/// </summary>
|
||||
TEXTURE_FILTER_ANISOTROPIC_8X,
|
||||
Anisotropic8X,
|
||||
|
||||
/// <summary>
|
||||
/// Anisotropic filtering 16x
|
||||
/// </summary>
|
||||
TEXTURE_FILTER_ANISOTROPIC_16X,
|
||||
Anisotropic16X,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -48,22 +48,22 @@ public enum TextureWrap
|
||||
/// <summary>
|
||||
/// Repeats texture in tiled mode
|
||||
/// </summary>
|
||||
TEXTURE_WRAP_REPEAT = 0,
|
||||
Repeat = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Clamps texture to edge pixel in tiled mode
|
||||
/// </summary>
|
||||
TEXTURE_WRAP_CLAMP,
|
||||
Clamp,
|
||||
|
||||
/// <summary>
|
||||
/// Mirrors and repeats the texture in tiled mode
|
||||
/// </summary>
|
||||
TEXTURE_WRAP_MIRROR_REPEAT,
|
||||
MirrorRepeat,
|
||||
|
||||
/// <summary>
|
||||
/// Mirrors and clamps to border the texture in tiled mode
|
||||
/// </summary>
|
||||
TEXTURE_WRAP_MIRROR_CLAMP
|
||||
MirrorClamp
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -74,32 +74,32 @@ public enum CubemapLayout
|
||||
/// <summary>
|
||||
/// Automatically detect layout type
|
||||
/// </summary>
|
||||
CUBEMAP_LAYOUT_AUTO_DETECT = 0,
|
||||
AutoDetect = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Layout is defined by a vertical line with faces
|
||||
/// </summary>
|
||||
CUBEMAP_LAYOUT_LINE_VERTICAL,
|
||||
LineVertical,
|
||||
|
||||
/// <summary>
|
||||
/// Layout is defined by a horizontal line with faces
|
||||
/// </summary>
|
||||
CUBEMAP_LAYOUT_LINE_HORIZONTAL,
|
||||
LineHorizontal,
|
||||
|
||||
/// <summary>
|
||||
/// Layout is defined by a 3x4 cross with cubemap faces
|
||||
/// </summary>
|
||||
CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR,
|
||||
CrossThreeByFour,
|
||||
|
||||
/// <summary>
|
||||
/// Layout is defined by a 4x3 cross with cubemap faces
|
||||
/// </summary>
|
||||
CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE,
|
||||
CrossFourByThree,
|
||||
|
||||
/// <summary>
|
||||
/// Layout is defined by a panorama image (equirectangular map)
|
||||
/// </summary>
|
||||
CUBEMAP_LAYOUT_PANORAMA
|
||||
Panorama
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Reference in New Issue
Block a user