No matching definitions.

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.

sdfSdfExpr handle to render
widthwindow width in pixels
heightwindow height in pixels
scalerender divisor (1 = full res, 4 = quarter res recommended)
titlewindow title string

:void Blocks until the window is closed.

(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.

csdfColoredSDF handle
widthwindow width in pixels
heightwindow height in pixels
titlewindow title string

:void Blocks until the window is closed.

(csdf-preview-window scene 800 600 "GPU Preview")

Since: Phase 3