-
Notifications
You must be signed in to change notification settings - Fork 3
/
lib.ua
148 lines (135 loc) · 5.53 KB
/
lib.ua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# Experimental!
DllPath ← &var "RAYLIB_PATH"
Rl ← &ffi ⊂□DllPath
# Structs
VectorII ← "{float; float}"
Color ← "{unsigned char; unsigned char; unsigned char; unsigned char}"
# Core Module
# ? WindowSize WindowTitle
InitWindow ← ◌Rl {"void" "InitWindow" "int" "int" "const char*"} {⊓°⊟∘}
SetTargetFPS ← ◌Rl {"void" "SetTargetFPS" "int"} {∘}
GetFrameTime ← (Rl {"int" "GetFrameTime"} {})
GetTime ← (Rl {"int" "GetTime"} {})
GetFPS ← (Rl {"int" "GetFPS"} {})
WindowShouldClose ← (Rl {"int" "WindowShouldClose"} {})
CloseWindow ← (◌Rl {"void" "CloseWindow"} {})
BeginDrawing ← (◌Rl {"void" "BeginDrawing"} {})
EndDrawing ← (◌Rl {"void" "EndDrawing"} {})
ClearBackground ← ◌Rl {"void" "ClearBackground" Color} {∘}
IsMouseButtonPressed ← Rl {"char" "IsMouseButtonPressed" "int"} {∘}
IsMouseButtonDown ← Rl {"char" "IsMouseButtonDown" "int"} {∘}
IsMouseButtonReleased ← Rl {"char" "IsMouseButtonReleased" "int"} {∘}
IsMouseButtonUp ← Rl {"char" "IsMouseButtonUp" "int"} {∘}
GetMousePosition ← (Rl {VectorII "GetMousePosition"} {})
GetMouseDelta ← (Rl {VectorII "GetMouseDelta"} {})
SetMousePosition ← ◌Rl {"void" "SetMousePosition" "int" "int"} {°⊟⁅}
ShowCursor ← (◌Rl {"void" "ShowCursor"} {})
HideCursor ← (◌Rl {"void" "HideCursor"} {})
KeyCode ↚ ⍥(-@\0⌵)÷2type.
IsKeyPressed ← Rl {"char" "IsKeyPressed" "int"} {KeyCode}
IsKeyPressedRepeat ← Rl {"char" "IsKeyPressedRepeat" "int"} {KeyCode}
IsKeyDown ← Rl {"char" "IsKeyDown" "int"} {KeyCode}
IsKeyReleased ← Rl {"char" "IsKeyReleased" "int"} {KeyCode}
IsKeyUp ← Rl {"char" "IsKeyUp" "int"} {KeyCode}
GetKeyPressed ← (Rl {"int" "GetKeyPressed"} {})
GetCharPressed ← (+@\0 Rl {"int" "GetCharPressed"} {})
SetExitKey ← ◌Rl {"void" "SetExitKey" "int"} {KeyCode}
KeyEscape ← 256
KeyEnter ← 257
KeyTab ← 258
KeyBackspace ← 259
KeyInsert ← 260
KeyDelete ← 261
KeyRight ← 262
KeyLeft ← 263
KeyDown ← 264
KeyUp ← 265
KeyPageUp ← 266
KeyPageDown ← 267
KeyHome ← 268
KeyEnd ← 269
KeyCapsLock ← 280
KeyScrollLock ← 281
KeyNumLock ← 282
KeyPrintScreen ← 283
KeyPause ← 284
KeyFOne ← 290
KeyFTwo ← 291
KeyFThree ← 292
KeyFFour ← 293
KeyFFive ← 294
KeyFSix ← 295
KeyFSeven ← 296
KeyFEight ← 297
KeyFNine ← 298
KeyFTen ← 299
KeyFEleven ← 300
KeyFTwelve ← 301
KeyLeftShift ← 340
KeyLeftControl ← 341
KeyLeftAlt ← 342
KeyLeftSuper ← 343
KeyRightShift ← 344
KeyRightControl ← 345
KeyRightAlt ← 346
KeyRightSuper ← 347
KeyKbMenu ← 348
KeyKpZero ← 320
KeyKpOne ← 321
KeyKpTwo ← 322
KeyKpThree ← 323
KeyKpFour ← 324
KeyKpFive ← 325
KeyKpSix ← 326
KeyKpSeven ← 327
KeyKpEight ← 328
KeyKpNine ← 329
KeyKpDecimal ← 330
KeyKpDivide ← 331
KeyKpMultiply ← 332
KeyKpSubtract ← 333
KeyKpAdd ← 334
KeyKpEnter ← 335
KeyKpEqual ← 336
# Shape Module
# ? Position Color
DrawPixel ← ◌Rl {"void" "DrawPixelV" VectorII Color} {⊙∘}
# ? StartPos EndPos Color
DrawLine ← ◌Rl {"void" "DrawLineV" VectorII VectorII Color} {⊙⊙∘}
# ? StartPos EndPos Thickness Color
DrawLineEx ← ◌Rl {"void" "DrawLineEx" VectorII VectorII "float" Color} {⊙⊙⊙∘}
# ? Points Color
DrawLineStrip ← ◌Rl {"void" "DrawLineStrip" $"const _:1"VectorII "int" Color} {⊙∘}
# ? StartPos EndPos Thickness Color
DrawLineBezier ← ◌Rl {"void" "DrawLineBezier" VectorII VectorII "float" Color} {⊙⊙⊙∘}
# ? Center Radius Color
DrawCircle ← ◌Rl {"void" "DrawCircleV" VectorII "float" Color} {⊙⊙∘}
# ? Center Radius Color
DrawCircleLines ← ◌Rl {"void" "DrawCircleLinesV" VectorII "float" Color} {⊙⊙∘}
# ? Center Radius StartAngle EndAngle Segments Color
DrawCircleSector ← ◌Rl {"void" "DrawCircleSector" VectorII "float" "float" "float" "int" Color} {⊙⊙⊙⊙⊙∘}
# ? Center Radius StartAngle EndAngle Segments Color
DrawCircleSectorLines ← ◌Rl {"void" "DrawCircleSectorLines" VectorII "float" "float" "float" "int" Color} {⊙⊙⊙⊙⊙∘}
# ? Center HorizontalRadius VerticalRadius Color
DrawEllipse ← ◌Rl {"void" "DrawEllipse" "int" "int" "float" "float" Color} {°⊟⁅⊙⊙⊙∘}
# ? Center HorizontalRadius VerticalRadius Color
DrawEllipseLines ← ◌Rl {"void" "DrawEllipseLines" "int" "int" "float" "float" Color} {°⊟⁅⊙⊙⊙∘}
# ? Center InnerRadius OuterRadius StartAngle EndAngle Segments Color
DrawRing ← ◌Rl {"void" "DrawRing" VectorII "float" "float" "float" "float" "int" Color} {⊙⊙⊙⊙⊙⊙∘}
# ? Center InnerRadius OuterRadius StartAngle EndAngle Segments Color
DrawRingLines ← ◌Rl {"void" "DrawRingLines" VectorII "float" "float" "float" "float" "int" Color} {⊙⊙⊙⊙⊙⊙∘}
# ? Position Size Color
DrawRectangle ← ◌Rl {"void" "DrawRectangleV" VectorII VectorII Color} {⊙⊙∘}
# ? Position Size Color
DrawRectangleLines ← ◌Rl {"void" "DrawRectangleLines" "int" "int" "int" "int" Color} {∩°⊟⊓∩⁅∘}
# ? Point1 Point2 Point3 Color
DrawTriangle ← ◌Rl {"void" "DrawTriangle" VectorII VectorII VectorII Color} {⊙⊙⊙∘}
# ? Point1 Point2 Point3 Color
DrawTriangleLines ← ◌Rl {"void" "DrawTriangleLines" VectorII VectorII VectorII Color} {⊙⊙⊙∘}
# ? Center Sides Radius Rotation Color
DrawPoly ← ◌Rl {"void" "DrawPoly" VectorII "int" "float" "float" Color} {⊙⊙⊙⊙∘}
# ? Center Sides Radius Rotation Color
DrawPolyLines ← ◌Rl {"void" "DrawPolyLines" VectorII "int" "float" "float" Color} {⊙⊙⊙⊙∘}
# Textures Module
# ? Text Position Size Color
DrawText ← ◌Rl {"void" "DrawText" "const char*" "int" "int" "int" Color} {⊓(∘|°⊟⁅|⊙∘)}