summaryrefslogtreecommitdiff
path: root/include/core.h
blob: ab115ae2184bfc5464e3fa17af2192b4412d2969 (plain)
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
#pragma once

#include "lua_core.h"

void unloadBuffer( Buffer* buffer );
/* Window-related functions. */
int lcoreInitWindow( lua_State* L );
int lcoreCloseWindow( lua_State* L );
int lcoreWindowShouldClose( lua_State* L );
int lcoreIsWindowReady( lua_State* L );
int lcoreIsWindowFullscreen( lua_State* L );
int lcoreIsWindowHidden( lua_State* L );
int lcoreIsWindowMinimized( lua_State* L );
int lcoreIsWindowMaximized( lua_State* L );
int lcoreIsWindowFocused( lua_State* L );
int lcoreIsWindowResized( lua_State* L );
int lcoreIsWindowState( lua_State* L );
int lcoreSetWindowState( lua_State* L );
int lcoreClearWindowState( lua_State* L );
int lcoreToggleFullscreen( lua_State* L );
int lcoreToggleBorderlessWindowed( lua_State* L );
int lcoreMaximizeWindow( lua_State* L );
int lcoreMinimizeWindow( lua_State* L );
int lcoreRestoreWindow( lua_State* L );
int lcoreSetWindowIcon( lua_State* L );
int lcoreSetWindowIcons( lua_State* L );
int lcoreSetWindowTitle( lua_State* L );
int lcoreSetWindowPosition( lua_State* L );
int lcoreSetWindowMonitor( lua_State* L );
int lcoreSetWindowMinSize( lua_State* L );
int lcoreSetWindowMaxSize( lua_State* L );
int lcoreSetWindowSize( lua_State* L );
int lcoreSetWindowOpacity( lua_State* L );
int lcoreSetWindowFocused( lua_State* L );
int lcoreGetWindowHandle( lua_State* L );
int lcoreGetScreenSize( lua_State* L );
int lcoreGetRenderSize( lua_State* L );
int lcoreGetMonitorCount( lua_State* L );
int lcoreGetCurrentMonitor( lua_State* L );
int lcoreGetMonitorPosition( lua_State* L );
int lcoreGetMonitorSize( lua_State* L );
int lcoreGetMonitorPhysicalSize( lua_State* L );
int lcoreGetMonitorRefreshRate( lua_State* L );
int lcoreGetWindowPosition( lua_State* L );
int lcoreGetWindowScaleDPI( lua_State* L );
int lcoreGetMonitorName( lua_State* L );
int lcoreSetClipboardText( lua_State* L );
int lcoreGetClipboardText( lua_State* L );
int lcoreGetClipboardImage( lua_State* L );
int lcoreEnableEventWaiting( lua_State* L );
int lcoreDisableEventWaiting( lua_State* L );
/* Cursor-related functions. */
int lcoreShowCursor( lua_State* L );
int lcoreHideCursor( lua_State* L );
int lcoreIsCursorHidden( lua_State* L );
int lcoreEnableCursor( lua_State* L );
int lcoreDisableCursor( lua_State* L );
int lcoreIsCursorOnScreen( lua_State* L );
/* Drawing-related functions. */
int lcoreClearBackground( lua_State* L );
int lcoreBeginDrawing( lua_State* L );
int lcoreEndDrawing( lua_State* L );
int lcoreBeginMode2D( lua_State* L );
int lcoreEndMode2D( lua_State* L );
int lcoreBeginMode3D( lua_State* L );
int lcoreEndMode3D( lua_State* L );
int lcoreBeginTextureMode( lua_State* L );
int lcoreEndTextureMode( lua_State* L );
int lcoreBeginShaderMode( lua_State* L );
int lcoreEndShaderMode( lua_State* L );
int lcoreBeginBlendMode( lua_State* L );
int lcoreEndBlendMode( lua_State* L );
int lcoreBeginScissorMode( lua_State* L );
int lcoreEndScissorMode( lua_State* L );
/* Shader management functions. */
int lcoreLoadShader( lua_State* L );
int lcoreLoadShaderFromMemory( lua_State* L );
int lcoreIsShaderValid( lua_State* L );
int lcoreGetShaderId( lua_State* L );
int lcoreGetShaderLocation( lua_State* L );
int lcoreGetShaderLocationAttrib( lua_State* L );
int lcoreSetShaderLocationIndex( lua_State* L );
int lcoreGetShaderLocationIndex( lua_State* L );
int lcoreSetShaderValueMatrix( lua_State* L );
int lcoreSetShaderValueTexture( lua_State* L );
int lcoreSetShaderValue( lua_State* L );
int lcoreSetShaderValueV( lua_State* L );
int lcoreSetShaderValueWithBuffer( lua_State* L );
int lcoreSetShaderValueVWithBuffer( lua_State* L );
int lcoreUnloadShader( lua_State* L );
/* Screen-space-related functions. */
int lcoreGetScreenToWorldRay( lua_State* L );
int lcoreGetScreenToWorldRayEx( lua_State* L );
int lcoreGetWorldToScreen( lua_State* L );
int lcoreGetWorldToScreenEx( lua_State* L );
int lcoreGetWorldToScreen2D( lua_State* L );
int lcoreGetScreenToWorld2D( lua_State* L );
int lcoreGetCameraMatrix( lua_State* L );
int lcoreGetCameraMatrix2D( lua_State* L );
/* Timing-related functions. */
int lcoreSetTargetFPS( lua_State* L );
int lcoreGetFrameTime( lua_State* L );
int lcoreGetTime( lua_State* L );
int lcoreGetFPS( lua_State* L );
/* Custom frame control functions. */
int lcoreSwapScreenBuffer( lua_State* L );
int lcorePollInputEvents( lua_State* L );
int lcoreWaitTime( lua_State* L );
/* Random values generation functions. */
int lcoreSetRandomSeed( lua_State* L );
int lcoreGetRandomValue( lua_State* L );
int lcoreLoadRandomSequence( lua_State* L );
/* Misc. functions */
int lcoreTakeScreenshot( lua_State* L );
int lcoreSetConfigFlags( lua_State* L );
int lcoreTraceLog( lua_State* L );
int lcoreSetTraceLogLevel( lua_State* L );
int lcoreSetLogLevelInvalid( lua_State* L );
int lcoreGetLogLevelInvalid( lua_State* L );
int lcoreOpenURL( lua_State* L );
int lcoreIsGCUnloadEnabled( lua_State* L );
int lcoreSetGCUnload( lua_State* L );
int lcoreGetPlatform( lua_State* L );
/* Files management functions. */
int lcoreLoadFileData( lua_State* L );
int lcoreSaveFileData( lua_State* L );
int lcoreExportDataAsCode( lua_State* L );
int lcoreLoadFileText( lua_State* L );
int lcoreSaveFileText( lua_State* L );
/* Files system functions. */
int lcoreGetBasePath( lua_State* L );
int lcoreFileExists( lua_State* L );
int lcoreDirectoryExists( lua_State* L );
int lcoreIsFileExtension( lua_State* L );
int lcoreGetFileLength( lua_State* L );
int lcoreGetFileExtension( lua_State* L );
int lcoreGetFileName( lua_State* L );
int lcoreGetFileNameWithoutExt( lua_State* L );
int lcoreGetDirectoryPath( lua_State* L );
int lcoreGetPrevDirectoryPath( lua_State* L );
int lcoreGetWorkingDirectory( lua_State* L );
int lcoreGetApplicationDirectory( lua_State* L );
int lcoreMakeDirectory( lua_State* L );
int lcoreChangeDirectory( lua_State* L );
int lcoreIsPathFile( lua_State* L );
int lcoreIsFileNameValid( lua_State* L );
int lcoreLoadDirectoryFiles( lua_State* L );
int lcoreLoadDirectoryFilesEx( lua_State* L );
int lcoreIsFileDropped( lua_State* L );
int lcoreLoadDroppedFiles( lua_State* L );
int lcoreGetFileModTime( lua_State* L );
/* Compression/Encoding functionality. */
int lcoreCompressData( lua_State* L );
int lcoreDecompressData( lua_State* L );
int lcoreEncodeDataBase64( lua_State* L );
int lcoreDecodeDataBase64( lua_State* L );
int lcoreComputeCRC32( lua_State* L );
int lcoreComputeMD5( lua_State* L );
int lcoreComputeSHA1( lua_State* L );
/* Automation events functionality. */
int lcoreLoadAutomationEventList( lua_State* L );
int lcoreUnloadAutomationEventList( lua_State* L );
int lcoreExportAutomationEventList( lua_State* L );
int lcoreSetAutomationEventList( lua_State* L );
int lcoreSetAutomationEventBaseFrame( lua_State* L );
int lcoreStartAutomationEventRecording( lua_State* L );
int lcoreStopAutomationEventRecording( lua_State* L );
int lcorePlayAutomationEvent( lua_State* L );
int lcoreGetAutomationEventListCapacity( lua_State* L );
int lcoreGetAutomationEventListCount( lua_State* L );
int lcoreGetAutomationEvent( lua_State* L );
int lcoreGetAutomationEventFrame( lua_State* L );
int lcoreGetAutomationEventType( lua_State* L );
int lcoreGetAutomationEventParams( lua_State* L );
/* Input-related functions: keyboard. */
int lcoreIsKeyPressed( lua_State* L );
int lcoreIsKeyPressedRepeat( lua_State* L );
int lcoreIsKeyDown( lua_State* L );
int lcoreIsKeyReleased( lua_State* L );
int lcoreIsKeyUp( lua_State* L );
int lcoreGetKeyPressed( lua_State* L );
int lcoreGetCharPressed( lua_State* L );
int lcoreSetExitKey( lua_State* L );
int lcoreGetKeyName( lua_State* L );
int lcoreGetKeyScancode( lua_State* L );
/* Input-related functions: gamepads. */
int lcoreIsGamepadAvailable( lua_State* L );
int lcoreGetGamepadName( lua_State* L );
int lcoreIsGamepadButtonPressed( lua_State* L );
int lcoreIsGamepadButtonDown( lua_State* L );
int lcoreIsGamepadButtonReleased( lua_State* L );
int lcoreIsGamepadButtonUp( lua_State* L );
int lcoreGetGamepadButtonPressed( lua_State* L );
int lcoreGetGamepadAxisCount( lua_State* L );
int lcoreGetGamepadAxisMovement( lua_State* L );
int lcoreSetGamepadMappings( lua_State* L );
int lcoreSetGamepadVibration( lua_State* L );
/* Input-related functions: mouse. */
int lcoreIsMouseButtonPressed( lua_State* L );
int lcoreIsMouseButtonDown( lua_State* L );
int lcoreIsMouseButtonReleased( lua_State* L );
int lcoreIsMouseButtonUp( lua_State* L );
int lcoreGetMousePosition( lua_State* L );
int lcoreGetMouseDelta( lua_State* L );
int lcoreSetMousePosition( lua_State* L );
int lcoreSetMouseOffset( lua_State* L );
int lcoreSetMouseScale( lua_State* L );
int lcoreGetMouseOffset( lua_State* L );
int lcoreGetMouseScale( lua_State* L );
int lcoreGetMouseWheelMove( lua_State* L );
int lcoreGetMouseWheelMoveV( lua_State* L );
int lcoreSetMouseCursor( lua_State* L );
/* Input-related functions: touch. */
int lcoreGetTouchPosition( lua_State* L );
int lcoreGetTouchPointId( lua_State* L );
int lcoreGetTouchPointCount( lua_State* L );
/* Input-related functions: gestures. */
int lcoreSetGesturesEnabled( lua_State* L );
int lcoreIsGestureDetected( lua_State* L );
int lcoreGetGestureDetected( lua_State* L );
int lcoreGetGestureHoldDuration( lua_State* L );
int lcoreGetGestureDragVector( lua_State* L );
int lcoreGetGestureDragAngle( lua_State* L );
int lcoreGetGesturePinchVector( lua_State* L );
int lcoreGetGesturePinchAngle( lua_State* L );
/* Camera2D System functions. */
int lcoreCreateCamera2D( lua_State* L );
int lcoreSetCamera2DTarget( lua_State* L );
int lcoreSetCamera2DOffset( lua_State* L );
int lcoreSetCamera2DRotation( lua_State* L );
int lcoreSetCamera2DZoom( lua_State* L );
int lcoreGetCamera2DTarget( lua_State* L );
int lcoreGetCamera2DOffset( lua_State* L );
int lcoreGetCamera2DRotation( lua_State* L );
int lcoreGetCamera2DZoom( lua_State* L );
/* Camera3D System functions. */
int lcoreCreateCamera3D( lua_State* L );
int lcoreSetCamera3DPosition( lua_State* L );
int lcoreSetCamera3DTarget( lua_State* L );
int lcoreSetCamera3DUp( lua_State* L );
int lcoreSetCamera3DFovy( lua_State* L );
int lcoreSetCamera3DProjection( lua_State* L );
int lcoreGetCamera3DPosition( lua_State* L );
int lcoreGetCamera3DTarget( lua_State* L );
int lcoreGetCamera3DUp( lua_State* L );
int lcoreGetCamera3DFovy( lua_State* L );
int lcoreGetCamera3DProjection( lua_State* L );
int lcoreGetCamera3DForward( lua_State* L );
int lcoreGetCamera3DUpNormalized( lua_State* L );
int lcoreGetCamera3DRight( lua_State* L );
int lcoreCamera3DMoveForward( lua_State* L );
int lcoreCamera3DMoveUp( lua_State* L );
int lcoreCamera3DMoveRight( lua_State* L );
int lcoreCamera3DMoveToTarget( lua_State* L );
int lcoreCamera3DYaw( lua_State* L );
int lcoreCamera3DPitch( lua_State* L );
int lcoreCamera3DRoll( lua_State* L );
int lcoreGetCamera3DViewMatrix( lua_State* L );
int lcoreGetCamera3DProjectionMatrix( lua_State* L );
int lcoreUpdateCamera3D( lua_State* L );
int lcoreUpdateCamera3DPro( lua_State* L );
/* Buffer management functions. */
int lcoreLoadBuffer( lua_State* L );
int lcoreLoadBufferFormatted( lua_State* L );
int lcoreLoadBufferFromFile( lua_State* L );
int lcoreLoadBufferFromString( lua_State* L );
int lcoreUnloadBuffer( lua_State* L );
int lcoreCopyBufferData( lua_State* L );
int lcoreSetBufferData( lua_State* L );
int lcoreSwapBufferEndianness( lua_State* L );
int lcoreGetBufferData( lua_State* L );
int lcoreGetBufferAsString( lua_State* L );
int lcoreGetBufferType( lua_State* L );
int lcoreGetBufferSize( lua_State* L );
int lcoreGetBufferElementSize( lua_State* L );
int lcoreGetBufferLength( lua_State* L );
int lcoreExportBuffer( lua_State* L );