#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum ConfigFlags {
VsyncHint = 64,
FullscreenMode = 2,
WindowResizable = 4,
WindowUndecorated = 8,
WindowHidden = 128,
WindowMinimized = 512,
WindowMaximized = 1024,
WindowUnfocused = 2048,
WindowTopmost = 4096,
WindowAlwaysRun = 256,
WindowTransparent = 16,
WindowHighdpi = 8192,
WindowMousePassthrough = 16384,
BorderlessWindowedMode = 32768,
Msaa4xHint = 32,
InterlacedHint = 65536,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum TraceLogLevel {
All = 0,
Trace = 1,
Debug = 2,
Info = 3,
Warning = 4,
Error = 5,
Fatal = 6,
None = 7,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum KeyboardKey {
Null = 0,
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,
LeftBracket = 91,
Backslash = 92,
RightBracket = 93,
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,
KbMenu = 348,
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,
Back = 4,
VolumeUp = 24,
VolumeDown = 25,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum MouseButton {
Left = 0,
Right = 1,
Middle = 2,
Side = 3,
Extra = 4,
Forward = 5,
Back = 6,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum MouseCursor {
Default = 0,
Arrow = 1,
Ibeam = 2,
Crosshair = 3,
PointingHand = 4,
ResizeEw = 5,
ResizeNs = 6,
ResizeNwse = 7,
ResizeNesw = 8,
ResizeAll = 9,
NotAllowed = 10,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GamepadButton {
Unknown = 0,
LeftFaceUp = 1,
LeftFaceRight = 2,
LeftFaceDown = 3,
LeftFaceLeft = 4,
RightFaceUp = 5,
RightFaceRight = 6,
RightFaceDown = 7,
RightFaceLeft = 8,
LeftTrigger1 = 9,
LeftTrigger2 = 10,
RightTrigger1 = 11,
RightTrigger2 = 12,
MiddleLeft = 13,
Middle = 14,
MiddleRight = 15,
LeftThumb = 16,
RightThumb = 17,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum GamepadAxis {
LeftX = 0,
LeftY = 1,
RightX = 2,
RightY = 3,
LeftTrigger = 4,
RightTrigger = 5,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum MaterialMapIndex {
Albedo = 0,
Metalness = 1,
Normal = 2,
Roughness = 3,
Occlusion = 4,
Emission = 5,
Height = 6,
Cubemap = 7,
Irradiance = 8,
Prefilter = 9,
Brdf = 10,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum ShaderLocationIndex {
VertexPosition = 0,
VertexTexcoord01 = 1,
VertexTexcoord02 = 2,
VertexNormal = 3,
VertexTangent = 4,
VertexColor = 5,
MatrixMvp = 6,
MatrixView = 7,
MatrixProjection = 8,
MatrixModel = 9,
MatrixNormal = 10,
VectorView = 11,
ColorDiffuse = 12,
ColorSpecular = 13,
ColorAmbient = 14,
MapAlbedo = 15,
MapMetalness = 16,
MapNormal = 17,
MapRoughness = 18,
MapOcclusion = 19,
MapEmission = 20,
MapHeight = 21,
MapCubemap = 22,
MapIrradiance = 23,
MapPrefilter = 24,
MapBrdf = 25,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum ShaderUniformDataType {
Float = 0,
Vec2 = 1,
Vec3 = 2,
Vec4 = 3,
Int = 4,
Ivec2 = 5,
Ivec3 = 6,
Ivec4 = 7,
Sampler2d = 8,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum ShaderAttributeDataType {
Float = 0,
Vec2 = 1,
Vec3 = 2,
Vec4 = 3,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum PixelFormat {
Grayscale = 1,
GrayAlpha = 2,
R5g6b5 = 3,
R8g8b8 = 4,
R5g5b5a1 = 5,
R4g4b4a4 = 6,
R8g8b8a8 = 7,
R32 = 8,
R32g32b32 = 9,
R32g32b32a32 = 10,
R16 = 11,
R16g16b16 = 12,
R16g16b16a16 = 13,
Dxt1Rgb = 14,
Dxt1Rgba = 15,
Dxt3Rgba = 16,
Dxt5Rgba = 17,
Etc1Rgb = 18,
Etc2Rgb = 19,
Etc2EacRgba = 20,
PvrtRgb = 21,
PvrtRgba = 22,
Astc4x4Rgba = 23,
Astc8x8Rgba = 24,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum TextureFilter {
Point = 0,
Bilinear = 1,
Trilinear = 2,
Anisotropic4x = 3,
Anisotropic8x = 4,
Anisotropic16x = 5,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum TextureWrap {
Repeat = 0,
Clamp = 1,
MirrorRepeat = 2,
MirrorClamp = 3,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum CubemapLayout {
AutoDetect = 0,
LineVertical = 1,
LineHorizontal = 2,
CrossThreeByFour = 3,
CrossFourByThree = 4,
Panorama = 5,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum FontType {
Default = 0,
Bitmap = 1,
Sdf = 2,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum BlendMode {
Alpha = 0,
Additive = 1,
Multiplied = 2,
AddColors = 3,
SubtractColors = 4,
AlphaPremultiply = 5,
Custom = 6,
CustomSeparate = 7,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum Gesture {
None = 0,
Tap = 1,
Doubletap = 2,
Hold = 4,
Drag = 8,
SwipeRight = 16,
SwipeLeft = 32,
SwipeUp = 64,
SwipeDown = 128,
PinchIn = 256,
PinchOut = 512,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum CameraMode {
Custom = 0,
Free = 1,
Orbital = 2,
FirstPerson = 3,
ThirdPerson = 4,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum CameraProjection {
Perspective = 0,
Orthographic = 1,
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum NPatchLayout {
NinePatch = 0,
ThreePatchVertical = 1,
ThreePatchHorizontal = 2,
}