-
Notifications
You must be signed in to change notification settings - Fork 1
/
raylib-scm.scm
690 lines (576 loc) · 44.4 KB
/
raylib-scm.scm
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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
;;; Raylib (https://www.raylib.com/) bindings
;;; License: GNU Affero General Public License (https://www.gnu.org/licenses/agpl-3.0.en.html)
(foreign-declare "#include <raylib.h>
#include \"raymath.h\"")
(include "raylib-definitions.scm")
(module raylib-scm
(;;; Window and Graphics Device Functions (Module: core)
;; Window-related functions
init-window ; Initialize window and OpenGL context
window-should-close? ; Check if KEY_ESCAPE pressed or
; Close icon pressed
close-window ; Close window and unload OpenGL context
;; is-window-ready ; Check if window has been initialized successfully
;; is-window-minimized ; Check if window has been minimized (or lost focus)
;; is-window-hidden ; Check if window is currently hidden
;; toggle-fullscreen ; Toggle fullscreen mode (only PLATFORM_DESKTOP)
;; unhide-window ; Show the window
;; hide-window ; Hide the window
;; set-window-icon ; Set icon for window (only PLATFORM_DESKTOP)
;; set-window-title ; Set title for window (only PLATFORM_DESKTOP)
;; set-window-position ; Set window position on screen (only PLATFORM_DESKTOP)
;; set-window-monitor ; Set monitor for the current window (fullscreen mode)
;; set-window-min-size ; Set window minimum dimensions (for FLAG_WINDOW_RESIZABLE)
;; set-window-size ; Set window dimensions
;; get-window-handle ; Get native window handle
;; get-screen-width ; Get current screen width
;; get-screen-height ; Get current screen height
;; get-monitor-count ; Get number of connected monitors
;; get-monitor-width ; Get primary monitor width
;; get-monitor-height ; Get primary monitor height
;; get-monitor-physical-width ; Get primary monitor physical width in millimetres
;; get-monitor-physical-height ; Get primary monitor physical height in millimetres
;; get-monitor-name ; Get the human-readable, UTF-8 encoded name of the primary monitor
;; Cursor-related functions
;; show-cursor ; Shows cursor
;; hide-cursor ; Hides cursor
;; is-cursor-hidden ; Check if cursor is not visible
;; enable-cursor ; Enables cursor (unlock cursor)
;; disable-cursor ; Disables cursor (lock cursor)
;; Drawing-related functions
clear-background ; Set background color
; (framebuffer clear color)
begin-drawing ; Setup canvas (framebuffer)
; to start drawing
end-drawing ; End canvas drawing and swap
; buffers (double buffering)
;; begin-mode-2d ; Initialize 2D mode with custom camera (2D)
;; end-mode-2d ; Ends 2D mode with custom camera
begin-mode-3d ; Initializes 3D mode
; with custom camera (3D)
end-mode-3d ; Ends 3D mode and returns to default
; 2D orthographic mode
begin-texture-mode ; Initializes render texture for drawing
end-texture-mode ; Ends drawing to render texture
;; Screen-space-related functions
get-mouse-ray ; Returns a ray trace from mouse position
;; get-world-to-screen ; Returns the screen space position for a 3d world space position
;; get-camera-matrix ; Returns camera transform matrix (view matrix)
;; timing-related functions
set-target-fps ; Set target FPS (maximum)
;; get-fps ; Returns current FPS
get-frame-time ; Returns time in seconds
; for last frame drawn
;; get-time ; Returns elapsed time in seconds since InitWindow()
;; Color-related functions
;; color-to-int ; Returns hexadecimal value for a Color
;; color-normalize ; Returns color normalized as float [0..1]
;; color-to-hsv ; Returns HSV values for a Color
;; color-from-hsv ; Returns a Color from HSV values
;; get-color ; Returns a Color struct from hexadecimal value
fade ; Color fade-in or fade-out,
; alpha goes from 0.0f to 1.0f
;; Misc. functions
set-config-flags ; Setup window configuration flags
; (view FLAGS)
set-trace-log-level ; Set the current threshold (minimum)
; log level
;; set-trace-log-callback ; Set a trace log callback to enable custom logging bypassing raylib's one
;; trace-log ; Show trace log messages (LOG_INFO, LOG_WARNING, LOG_ERROR, LOG_DEBUG)
;; take-screenshot ; Takes a screenshot of current screen (saved a .png)
get-random-value ; Returns a random value between
; min and max (both included)
;; Files management functions
;; file-exists ; Check if file exists
;; is-file-extension- ; Check file extension
;; get-extension ; Get pointer to extension for a filename string
;; get-file-name ; Get pointer to filename for a path string
;; get-file-name-without-ext ; Get filename string without extension (memory should be freed)
;; get-directory-path ; Get full path for a given fileName (uses static string)
;; get-working-directory ; Get current working directory (uses static string)
;; get-directory-files- ; Get filenames in a directory path (memory should be freed)
;; clear-directory-files ; Clear directory files paths buffers (free memory)
;; change-directory ; Change working directory, returns true if success
is-file-dropped ; Check if a file has been dropped
; into window
get-dropped-files ; Get dropped files names
; (memory should be freed)
; Warning: API differs from the original
; raylib, no "count" argument provided
clear-dropped-files ; Clear dropped files paths buffer
; (free memory)
;; get-file-mod-time ; Get file modification time (last write time)
;; ; Persistent storage management
;; StorageSaveValue ; Save integer value to storage file (to defined position)
;; StorageLoadValue ; Load integer value from storage file (from defined position)
;; open-url ; Open URL with default system browser (if available)
;;; Input Handling Functions (Module: core)
;; Input-related functions: keyboard
is-key-pressed? ; Detect if a key has been pressed once
is-key-down? ; Detect if a key is being pressed
;; is-key-released? ; Detect if a key has been released once
;; is-key-up? ; Detect if a key is NOT being pressed
;; get-key-pressed ; Get latest key pressed
;; set-exit-key ; Set a custom key to exit program (default is ESC)
;; Input-related functions: gamepads
;; is-gamepad-available? ; Detect if a gamepad is available
;; is-gamepad-name? ; Check gamepad name (if available)
;; get-gamepad-name ; Return gamepad internal name id
;; is-gamepad-button-pressed? ; Detect if a gamepad button has been pressed once
;; is-gamepad-button-down? ; Detect if a gamepad button is being pressed
;; is-gamepad-button-released? ; Detect if a gamepad button has been released once
;; is-gamepad-button-up? ; Detect if a gamepad button is NOT being pressed
;; get-gamepad-button-pressed ; Get the last gamepad button pressed
;; get-gamepad-axis-count ; Return gamepad axis count for a gamepad
;; get-gamepad-axis-movement ; Return axis movement value for a gamepad axis
;; Input-related functions: mouse
is-mouse-button-pressed? ; Detect if a mouse button has been
; pressed once
is-mouse-button-down? ; Detect if a mouse button
; is being pressed
is-mouse-button-released? ; Detect if a mouse button
; has been released once
is-mouse-button-up? ; Detect if a mouse button
; is NOT being pressed
get-mouse-x ; Returns mouse position X
get-mouse-y ; Returns mouse position Y
get-mouse-position ; Returns mouse position XY
;; set-mouse-position ; Set mouse position XY
;; set-mouse-offset ; Set mouse offset
;; set-mouse-scale ; Set mouse scaling
get-mouse-wheel-move ; Returns mouse wheel movement Y
;; Input-related functions: touch
;; get-touch-x ; Returns touch position X for touch point 0 (relative to screen size)
;; get-touch-y ; Returns touch position Y for touch point 0 (relative to screen size)
;; get-touch-position ; Returns touch position XY for a touch point index (relative to screen size)
;;; Gestures and Touch Handling Functions (Module: gestures)
;; set-gestures-enabled ; Enable a set of gestures using flags
;; is-gesture-detected? ; Check if a gesture have been detected
;; get-gesture-detected ; Get latest detected gesture
;; get-touch-points-count ; Get touch points count
;; get-gesture-hold-duration ; Get gesture hold time in milliseconds
;; get-gesture-drag-vector ; Get gesture drag vector
;; get-gesture-drag-angle ; Get gesture drag angle
;; get-gesture-pinch-vector ; Get gesture pinch delta
;; get-gesture-pinch-angle ; Get gesture pinch angle
;;; Camera System Functions (Module: camera)
set-camera-mode ; Set camera mode (multiple camera
; modes available)
update-camera ; Update camera position for
; selected mode
;; set-camera-pan-control ; Set camera pan key to combine with mouse movement (free camera)
;; set-camera-alt-control ; Set camera alt key to combine with mouse movement (free camera)
;; set-camera-smooth-zoom-control ; Set camera smooth zoom key to combine with mouse (free camera)
;; set-camera-move-controls ; Set camera move controls (1st person and 3rd person cameras)
;;; Basic Shapes Drawing Functions (Module: shapes)
;; Basic shapes drawing functions
;; draw-pixel ; Draw a pixel
;; draw-pixel-v ; Draw a pixel (Vector version)
;; draw-line ; Draw a line
;; draw-line-v ; Draw a line (Vector version)
;; draw-line-ex ; Draw a line defining thickness
;; draw-line-bezier ; Draw a line using cubic-bezier curves in-out
;; draw-circle ; Draw a color-filled circle
;; draw-circle-gradient ; Draw a gradient-filled circle
draw-circle-v ; Draw a color-filled circle
; (Vector version)
;; draw-circle-lines ; Draw circle outline
draw-rectangle ; Draw a color-filled rectangle
;; draw-rectangle-v ; Draw a color-filled rectangle (Vector version)
draw-rectangle-rec ; Draw a color-filled rectangle
;; draw-rectangle-pro ; Draw a color-filled rectangle with pro parameters
;; draw-rectangle-gradient-v ; Draw a vertical-gradient-filled rectangle
;; draw-rectangle-gradient-h ; Draw a horizontal-gradient-filled rectangle
;; draw-rectangle-gradient-ex ; Draw a gradient-filled rectangle with custom vertex colors
draw-rectangle-lines ; Draw rectangle outline
;; draw-rectangle-lines-ex ; Draw rectangle outline with extended parameters
;; draw-triangle ; Draw a color-filled triangle
;; draw-triangle-lines ; Draw triangle outline
;; draw-poly ; Draw a regular polygon (Vector version)
;; draw-poly-ex ; Draw a closed polygon defined by points
;; draw-poly-ex-lines ; Draw polygon lines
;; set-shapes-texture ; Define default texture used to draw shapes
;;; Basic shapes collision detection functions
check-collision-recs ; Check collision between two rectangles
;; check-collision-circles ; Check collision between two circles
;; check-collision-circle-rec ; Check collision between circle and rectangle
get-collision-rec ; Get collision rectangle for
; two rectangles collision
check-collision-point-rec ; Check if point is inside rectangle
;; check-collision-point-circle ; Check if point is inside circle
;; check-collision-point-triangle ; Check if point is inside a triangle
;;; Texture Loading and Drawing Functions (Module: textures)
;; Image/Texture2D data loading/unloading/saving functions
load-image ; Load image from file into
; CPU memory (RAM)
;; load-image-ex ; Load image from Color array data (RGBA - 32bit)
;; load-image-pro ; Load image from raw data with parameters
;; load-image-raw ; Load image from RAW file data
;; export-image ; Export image data to file
;; export-image-as-code ; Export image as code file defining an array of bytes
load-texture ; Load texture from file
; into GPU memory (VRAM)
load-texture-from-image ; Load texture from image data
load-render-texture ; Load texture for rendering (framebuffer)
unload-image ; Unload image from CPU memory (RAM)
unload-texture ; Unload texture from GPU memory (VRAM)
unload-render-texture ; Unload render texture from GPU memory
; (VRAM)
;; get-image-data ; Get pixel data from image as a Color struct array
;; get-image-data-normalized ; Get pixel data from image as Vector4 array (float normalized)
;; get-pixel-data-size ; Get pixel data size in bytes (image or texture)
;; get-texture-data ; Get pixel data from GPU texture and return an Image
;; update-texture ; Update GPU texture with new data
;; Image manipulation functions
;; image-copy ; Create an image duplicate (useful for transformations)
;; image-to-pot ; Convert image to POT (power-of-two)
;; image-format ; Convert image data to desired format
;; image-alpha-mask ; Apply alpha mask to image
;; image-alpha-clear ; Clear alpha channel to desired color
;; image-alpha-crop ; Crop image depending on alpha value
;; image-alpha-premultiply ; Premultiply alpha channel
;; image-crop ; Crop an image to a defined rectangle
;; image-resize ; Resize image (Bicubic scaling algorithm)
;; image-resize-nn ; Resize image (Nearest-Neighbor scaling algorithm)
;; image-resize-canvas ; Resize canvas and fill with color
;; image-mipmaps ; Generate all mipmap levels for a provided image
;; image-dither ; Dither image data to 16bpp or lower (Floyd-Steinberg dithering)
;; image-extract-palette ; Extract color palette from image to maximum size (memory should be freed)
;; image-text ; Create an image from text (default font)
;; image-text-ex ; Create an image from text (custom sprite font)
;; image-draw ; Draw a source image within a destination image
;; image-draw-rectangle ; Draw rectangle within an image
;; image-draw-rectangle-lines ; Draw rectangle lines within an image
;; image-draw-text ; Draw text (default font) within an image (destination)
;; image-draw-text-ex ; Draw text (custom sprite font) within an image (destination)
;; image-flip-vertical ; Flip image vertically
;; image-flip-horizontal ; Flip image horizontally
;; image-rotate-cw ; Rotate image clockwise 90deg
;; image-rotate-ccw ; Rotate image counter-clockwise 90deg
;; image-color-tint ; Modify image color: tint
;; image-color-invert ; Modify image color: invert
;; image-color-grayscale ; Modify image color: grayscale
;; image-color-contrast ; Modify image color: contrast (-100 to 100)
;; image-color-brightness ; Modify image color: brightness (-255 to 255)
;; image-color-replace ; Modify image color: replace color
;; Image generation functions
;; gen-image-color ; Generate image: plain color
;; gen-image-gradient-v ; Generate image: vertical gradient
;; gen-image-gradient-h ; Generate image: horizontal gradient
;; gen-image-gradient-radial ; Generate image: radial gradient
;; gen-image-checked ; Generate image: checked
;; gen-image-white-noise ; Generate image: white noise
;; gen-image-perlin-noise ; Generate image: perlin noise
;; gen-image-cellular ; Generate image: cellular algorithm. Bigger tileSize means bigger cells
;; Texture2D configuration functions
gen-texture-mipmaps ; Generate GPU mipmaps for a texture
;; set-texture-filter ; Set texture scaling filter mode
;; set-texture-wrap ; Set texture wrapping mode
;; Texture2D drawing functions
draw-texture ; Draw a Texture2D
;; draw-texture-v ; Draw a Texture2D with position defined as Vector2
;; draw-texture-ex ; Draw a Texture2D with extended parameters
draw-texture-rec ; Draw a part of a texture defined by
; a rectangle
;; draw-texture-quad ; Draw texture quad with tiling and offset parameters
draw-texture-pro ; Draw a part of a texture defined by
; a rectangle with 'pro' parameters
;; draw-texture-npatch ; Draws a texture (or part of it) that stretches or shrinks nicely
;;; Font Loading and Text Drawing Functions (Module: text)
;; Font loading/unloading functions
;; get-font-default ; Get the default Font
;; load-font ; Load font from file into GPU memory (VRAM)
;; load-font-ex ; Load font from file with extended parameters
;; load-font-from-image ; Load font from Image (XNA style)
;; load-font-data ; Load font data for further use
;; gen-image-font-atlas ; Generate image font atlas using chars info
;; unload-font ; Unload Font from GPU memory (VRAM)
;; Text drawing functions
draw-fps ; Shows current FPS
draw-text ; Draw text (using default font)
;; draw-text-ex ; Draw text using font and additional parameters
;; draw-text-rec ; Draw text using font inside rectangle limits
;; ; Text misc. functions
measure-text ; Measure string width for default font
;; measure-text-ex ; Measure string size for Font
;; get-glyph-index ; Get index position for a unicode character on font
;; Text strings management functions
;; NOTE: Some strings allocate memory internally for returned strings, just be careful!
;; text-is-equal ; Check if two text string are equal
;; text-length ; Get text length, checks for '\0' ending
;; text-format ; Text formatting with variables
;; ; (sprintf style)
;; text-subtext ; Get a piece of a text string
;; text-replace ; Replace text string (memory should be freed!)
;; text-insert ; Insert text in a position (memory should be freed!)
;; text-join ; Join text strings with delimiter
;; text-split ; Split text into multiple strings (memory should be freed!)
;; text-split-ex ; Get pointers to substrings separated by delimiter
;; text-append ; Append text at specific position and move cursor!
;; text-find-index ; Find first text occurrence within a string
;; text-to-upper ; Get upper case version of provided string
;; text-to-lower ; Get lower case version of provided string
;; text-to-pascal ; Get Pascal case notation version of provided string
;;; Basic 3d Shapes Drawing Functions (Module: models)
;; ; Basic geometric 3D shapes drawing functions
;; draw-line-3d ; Draw a line in 3D world space
;; draw-circle-3d ; Draw a circle in 3D world space
draw-cube ; Draw cube
draw-cube-v ; Draw cube (Vector version)
draw-cube-wires ; Draw cube wires
;; draw-cube-texture ; Draw cube textured
draw-sphere ; Draw sphere
;; draw-sphere-ex ; Draw sphere with extended parameters
draw-sphere-wires ; Draw sphere wires
;; draw-cylinder ; Draw a cylinder/cone
;; draw-cylinder-wires ; Draw a cylinder/cone wires
draw-plane ; Draw a plane XZ
;; draw-ray ; Draw a ray line
draw-grid ; Draw a grid (centered at (0, 0, 0))
draw-gizmo ; Draw simple gizmo
;;; Model 3d Loading and Drawing Functions (Module: models)
;; Model loading/unloading functions
load-model ; Load model from files
; (mesh and material)
load-model-from-mesh ; Load model from generated mesh
unload-model ; Unload model from memory (RAM
; and/or VRAM)
;; Mesh loading/unloading functions
;; load-mesh ; Load mesh from file
;; unload-mesh ; Unload mesh from memory (RAM and/or VRAM)
;; export-mesh ; Export mesh data to file
;; Mesh manipulation functions
;; mesh-bounding-box ; Compute mesh bounding box limits
;; mesh-tangents ; Compute mesh tangents
;; mesh-binormals ; Compute mesh binormals
;; Mesh generation functions
;; gen-mesh-poly ; Generate polygonal mesh
;; gen-mesh-plane ; Generate plane mesh (with subdivisions)
gen-mesh-cube ; Generate cuboid mesh
;; gen-mesh-sphere ; Generate sphere mesh (standard sphere)
;; gen-mesh-hemi-sphere ; Generate half-sphere mesh (no bottom cap)
;; gen-mesh-cylinder ; Generate cylinder mesh
;; gen-mesh-torus ; Generate torus mesh
;; gen-mesh-knot ; Generate trefoil knot mesh
gen-mesh-heightmap ; Generate heightmap mesh from image data
;; gen-mesh-cubicmap ; Generate cubes-based map mesh from image data
;; Material loading/unloading functions
;; load-material ; Load material from file
;; load-material-default ; Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)
;; unload-material ; Unload material from GPU memory (VRAM)
;; ; Model drawing functions
draw-model ; Draw a model (with texture if set)
;; draw-model-ex ; Draw a model with extended parameters
;; draw-model-wires ; Draw a model wires (with texture if set)
;; draw-model-wires-ex ; Draw a model wires (with texture if set) with extended parameters
;; draw-bounding-box ; Draw bounding box (wires)
draw-billboard ; Draw a billboard texture
;; draw-billboard-rec ; Draw a billboard texture defined by sourceRec
;; Collision detection functions
;; check-collision-spheres ; Detect collision between two spheres
check-collision-boxes ; Detect collision between
; two bounding boxes
check-collision-box-sphere ; Detect collision between box and sphere
;; check-collision-ray-sphere ; Detect collision between ray and sphere
;; check-collision-ray-sphere-ex ; Detect collision between ray and sphere, returns collision point
check-collision-ray-box ; Detect collision between ray and box
;; get-collision-ray-model ; Get collision info between ray and model
;; get-collision-ray-triangle ; Get collision info between ray and triangle
;; get-collision-ray-ground ; Get collision info between ray and ground plane (Y-normal plane)
;;; Shaders System Functions (Module: rlgl)
;;; NOTE: This functions are useless when using OpenGL 1.1
;; Shader loading/unloading functions
;; load-text ; Load chars array from text file
load-shader ; Load shader from files and bind
; default locations
;; load-shader-code ; Load shader from code strings and bind default locations
unload-shader ; Unload shader from GPU memory (VRAM)
;; get-shader-default ; Get default shader
;; get-texture-default ; Get default texture
;; Shader configuration functions
get-shader-location ; Get shader uniform location
set-shader-value! ; Set shader uniform value
;; set-shader-value-v ; Set shader uniform value vector
;; set-shader-value-matrix ; Set shader uniform value (matrix 4x4)
;; set-matrix-projection ; Set a custom projection matrix (replaces internal projection matrix)
;; set-matrix-modelview ; Set a custom modelview matrix (replaces internal modelview matrix)
;; get-matrix-modelview ; Get internal modelview matrix
;; Texture maps generation (PBR)
;; NOTE: Required shaders should be provided
gen-texture-cubemap ; Generate cubemap texture from HDR texture
;; gen-texture-irradiance ; Generate irradiance texture using cubemap data
;; gen-texture-prefilter ; Generate prefilter texture using cubemap data
;; gen-texture-brdf ; Generate BRDF texture using cubemap data
;; Shading begin/end functions
begin-shader-mode ; Begin custom shader drawing
end-shader-mode ; End custom shader drawing
; (use default shader)
begin-blend-mode ; Begin blending mode
; (alpha, additive, multiplied)
end-blend-mode ; End blending mode (reset to default:
; alpha blending)
;; begin-scissor-mode ; Begin scissor mode (define screen area for following drawing)
;; end-scissor-mode ; End scissor mode
;; VR control functions
;; get-vr-device-info ; Get VR device information for some standard devices
;; init-vr-simulator ; Init VR simulator for selected device parameters
;; close-vr-simulator ; Close VR simulator for current device
;; is-vr-simulator-ready ; Detect if VR simulator is ready
;; set-vr-distortion-shader ; Set VR distortion shader for stereoscopic rendering
;; update-vr-tracking ; Update VR tracking (position and orientation) and camera
;; toggle-vr-mode ; Enable/Disable VR experience
;; begin-vr-drawing ; Begin VR simulator stereo rendering
;; end-vr-drawing ; End VR simulator stereo rendering
;;; Audio Loading and Playing Functions (Module: audio)
;; Audio device management functions
init-audio-device ; Initialize audio device and context
close-audio-device ; Close the audio device and context
;; is-audio-device-ready ; Check if audio device has been initialized successfully
;; set-master-volume ; Set master volume (listener)
;; Wave/Sound loading/unloading functions
;; load-wave ; Load wave data from file
;; load-wave-ex ; Load wave data from raw array data
load-sound ; Load sound from file
;; load-sound-from-wave ; Load sound from wave data
;; update-sound ; Update sound buffer with new data
;; unload-wave ; Unload wave data
unload-sound ; Unload sound
;; export-wave ; Export wave data to file
;; export-wave-as-code ; Export wave sample data to code (.h)
;; Wave/Sound management functions
play-sound ; Play a sound
;; pause-sound ; Pause a sound
;; resume-sound ; Resume a paused sound
;; stop-sound ; Stop playing a sound
;; is-sound-playing ; Check if a sound is currently playing
;; set-sound-volume ; Set volume for a sound (1.0 is max level)
;; set-sound-pitch ; Set pitch for a sound (1.0 is base level)
;; wave-format ; Convert wave data to desired format
;; wave-copy ; Copy a wave to a new wave
;; wave-crop ; Crop a wave to defined samples range
;; get-wave-data ; Get samples data from wave as a floats array
;; Music management functions
;; load-music-stream ; Load music stream from file
;; unload-music-stream ; Unload music stream
;; play-music-stream ; Start music playing
;; update-music-stream ; Updates buffers for music streaming
;; stop-music-stream ; Stop music playing
;; pause-music-stream ; Pause music playing
;; resume-music-stream ; Resume playing paused music
;; is-music-playing ; Check if music is playing
;; set-music-volume ; Set volume for music (1.0 is max level)
;; set-music-pitch ; Set pitch for a music (1.0 is base level)
;; set-music-loop-count ; Set music loop count (loop repeats)
;; get-music-time-length ; Get music time length (in seconds)
;; get-music-time-played ; Get current music time played (in seconds)
;; AudioStream management functions
;; init-audio-stream ; Init audio stream (to stream raw audio pcm data)
;; update-audio-stream ; Update audio stream buffers with data
;; close-audio-stream ; Close audio stream and free memory
;; is-audio-buffer-processed? ; Check if any audio stream buffers requires refill
;; play-audio-stream ; Play audio stream
;; pause-audio-stream ; Pause audio stream
;; resume-audio-stream ; Resume audio stream
;; is-audio-stream-playing? ; Check if audio stream is playing
;; stop-audio-stream ; Stop audio stream
;; set-audio-stream-volume ; Set volume for audio stream (1.0 is max level)
;; set-audio-stream-pitch ; Set pitch for audio stream (1.0 is base level)
;; raymath
make-matrix
matrix-identity
matrix-invert
matrix-multiply
matrix-rotate
matrix-rotate-x
matrix-rotate-y
matrix-rotate-z
vector-3-add
vector-3-negate
vector-3-scale
vector-3-substract
vector-3-transform
;; Data structure helper functions
bounding-box-max
bounding-box-min
camera-position
camera-target
camera-up
camera-fovy
camera-type
color-r
color-g
color-b
color-a
get-diffuse-texture
make-bounding-box
make-camera
make-color
make-ray
make-rectangle
make-render-texture-2d
make-vector-2
make-vector-3
model-mesh
model-transform
model-material
rectangle-x
rectangle-y
rectangle-width
rectangle-height
render-texture-texture
set-cubemap-texture
set-diffuse-texture
set-material-shader!
set-transform
set-transform!
texture-2d-width
texture-2d-height
vector-2-x
vector-2-y
vector-3-x
vector-3-y
vector-3-z
;; Utilities
allocate-float
allocate-int
deg->rad
rad->deg
LIGHTGRAY
GRAY
DARKGRAY
YELLOW
GOLD
ORANGE
PINK
RED
MAROON
GREEN
LIME
DARKGREEN
SKYBLUE
BLUE
DARKBLUE
PURPLE
VIOLET
DARKPURPLE
BEIGE
BROWN
DARKBROWN
WHITE
BLACK
BLANK
MAGENTA
RAYWHITE)
(import chicken scheme foreign foreigners lolevel)
(use foreigners lolevel)
(include "raylib-macros.scm")
(include "raylib-core.scm")
(include "raylib-camera.scm")
(include "raylib-shapes.scm")
(include "raylib-textures.scm")
(include "raylib-text.scm")
(include "raylib-models.scm")
(include "rlgl.scm")
(include "raylib-audio.scm")
(include "raymath.scm")
(include "raylib-utils.scm"))