raylib/integration
src/raylib/integration.tur
CPU ray-marching preview window using raylib.
Since: Phase 1
defn
sdf-preview-window
(sdf-preview-window [sdf :int width :int height :int scale :int title :cstr] :void)
open a window and live-preview an SdfExpr scene.
Parameters
| sdf | SdfExpr handle to render | |
| width | window width in pixels | |
| height | window height in pixels | |
| scale | render divisor (1 = full res, 4 = quarter res recommended) | |
| title | window title string |
Returns
:void Blocks until the window is closed.
Example
(sdf-preview-window (sdf-sphere 0.0 0.0 0.0 1.0) 800 600 4 "Preview")
Since: Phase 1
defn
csdf-preview-window
(csdf-preview-window [csdf :int width :int height :int title :cstr] :void)
open a window and GPU-raytrace a ColoredSDF scene.
Parameters
| csdf | ColoredSDF handle | |
| width | window width in pixels | |
| height | window height in pixels | |
| title | window title string |
Returns
:void Blocks until the window is closed.
Example
(csdf-preview-window scene 800 600 "GPU Preview")
Since: Phase 3