Divooka Reference

Realtime Application

78 nodes

On this page 78

Make Realtime Application

Function

This node carries no documentation.

Signature
RealtimeApplication() -> Realtime Application
RealtimeApplication RealtimeApplication()

Returns

Realtime ApplicationRealtime Application
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Clear

Function

This node carries no documentation.

Signature
Clear
    Realtime Application: Realtime Application
    background: Optional Color
void Clear(
    RealtimeApplication Realtime Application,
    ColorElement? background)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
backgroundOptional Color—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Close Microphone

Function

This node carries no documentation.

Signature
CloseMicrophone
    Realtime Application: Realtime Application
    microphone: Any
void CloseMicrophone(
    RealtimeApplication Realtime Application,
    object microphone)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
microphoneAny—From Open Microphone.
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Draw Arc

Function

This node carries no documentation.

Overload 1 of 2

Signature
DrawArc
    Realtime Application: Realtime Application
    x: Number
    y: Number
    radius: Number
    startAngle: Number
    endAngle: Number
    outlineThickness: Number
    outlineColor: Optional Color
void DrawArc(
    RealtimeApplication Realtime Application,
    double x,
    double y,
    double radius,
    double startAngle,
    double endAngle,
    double outlineThickness,
    ColorElement? outlineColor)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
xNumber—
yNumber—
radiusNumber—
startAngleNumber—
endAngleNumber—
outlineThicknessNumber—
outlineColorOptional Color—

Overload 2 of 2

Signature
DrawArc
    Realtime Application: Realtime Application
    x: Number
    y: Number
    width: Number
    height: Number
    startAngle: Number
    endAngle: Number
    outlineThickness: Number
    outlineColor: Optional Color
void DrawArc(
    RealtimeApplication Realtime Application,
    double x,
    double y,
    double width,
    double height,
    double startAngle,
    double endAngle,
    double outlineThickness,
    ColorElement? outlineColor)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
xNumber—
yNumber—
widthNumber—
heightNumber—
startAngleNumber—
endAngleNumber—
outlineThicknessNumber—
outlineColorOptional Color—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Draw Circle

Function

This node carries no documentation.

Signature
DrawCircle
    Realtime Application: Realtime Application
    x: Number
    y: Number
    radius: Number
    outlineThickness: Number
    fillColor: Optional Color
    outlineColor: Optional Color
    centered: Truth
void DrawCircle(
    RealtimeApplication Realtime Application,
    double x,
    double y,
    double radius,
    double outlineThickness,
    ColorElement? fillColor,
    ColorElement? outlineColor,
    bool centered)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
xNumber—
yNumber—
radiusNumber—
outlineThicknessNumber—
fillColorOptional Color—
outlineColorOptional Color—
centeredTruth—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Draw Ellipse

Function

This node carries no documentation.

Signature
DrawEllipse
    Realtime Application: Realtime Application
    x: Number
    y: Number
    width: Number
    height: Number
    rotation: Number
    outlineThickness: Number
    fillColor: Optional Color
    outlineColor: Optional Color
void DrawEllipse(
    RealtimeApplication Realtime Application,
    double x,
    double y,
    double width,
    double height,
    double rotation,
    double outlineThickness,
    ColorElement? fillColor,
    ColorElement? outlineColor)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
xNumber—
yNumber—
widthNumber—
heightNumber—
rotationNumber—
outlineThicknessNumber—
fillColorOptional Color—
outlineColorOptional Color—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Draw Gradient

Function

A rectangle shaded smoothly from one colour to another, top to bottom or left to right: a sky, a fade, a highlight.

Signature
DrawGradient
    Realtime Application: Realtime Application
    x: Number
    y: Number
    width: Number
    height: Number
    from: Color
    to: Color
    vertical: Truth
void DrawGradient(
    RealtimeApplication Realtime Application,
    double x,
    double y,
    double width,
    double height,
    ColorElement from,
    ColorElement to,
    bool vertical = true)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
xNumber—Left edge.
yNumber—Top edge.
widthNumber—Width.
heightNumber—Height.
fromColor—The colour at the top, or the left.
toColor—The colour at the bottom, or the right.
verticalTruthTrueTop to bottom; left to right when false.
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Draw Image

Function

This node carries no documentation.

Overload 1 of 2

Signature
DrawImage
    Realtime Application: Realtime Application
    path: Text
    location: Vector 2D
void DrawImage(
    RealtimeApplication Realtime Application,
    string path,
    Vector2D location)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
pathText—
locationVector 2D—

Overload 2 of 2

Signature
DrawImage
    Realtime Application: Realtime Application
    image: Pixel Image
    location: Vector 2D
void DrawImage(
    RealtimeApplication Realtime Application,
    PixelImage image,
    Vector2D location)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
imagePixel Image—
locationVector 2D—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Draw Line

Function

This node carries no documentation.

Signature
DrawLine
    Realtime Application: Realtime Application
    x1: Number
    y1: Number
    x2: Number
    y2: Number
    outlineThickness: Number
    outlineColor: Optional Color
void DrawLine(
    RealtimeApplication Realtime Application,
    double x1,
    double y1,
    double x2,
    double y2,
    double outlineThickness,
    ColorElement? outlineColor)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
x1Number—
y1Number—
x2Number—
y2Number—
outlineThicknessNumber—
outlineColorOptional Color—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Draw Polygon

Function

This node carries no documentation.

Signature
DrawPolygon
    Realtime Application: Realtime Application
    points: Vector 2D Array
    outlineThickness: Number
    fillColor: Optional Color
    outlineColor: Optional Color
void DrawPolygon(
    RealtimeApplication Realtime Application,
    Vector2D[] points,
    double outlineThickness,
    ColorElement? fillColor,
    ColorElement? outlineColor)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
pointsVector 2D Array—
outlineThicknessNumber—
fillColorOptional Color—
outlineColorOptional Color—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Draw Polyline

Function

A line through several points, joined smoothly: a path traced between two tiles, a trail behind a comet, a graph.

Signature
DrawPolyline
    Realtime Application: Realtime Application
    points: Vector 2D Array
    thickness: Number
    color: Color
    rounded: Truth
void DrawPolyline(
    RealtimeApplication Realtime Application,
    Vector2D[] points,
    double thickness,
    ColorElement color,
    bool rounded = true)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
pointsVector 2D Array—The points, in order; at least two.
thicknessNumber—Pixels across.
colorColor—Its colour, transparency included.
roundedTruthTrueRound ends and corners; square ones when false.
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Draw Quad

Function

This node carries no documentation.

Signature
DrawQuad
    Realtime Application: Realtime Application
    x: Number
    y: Number
    width: Number
    height: Number
    angle: Number
    rotation: Number
    outlineThickness: Number
    fillColor: Optional Color
    outlineColor: Optional Color
void DrawQuad(
    RealtimeApplication Realtime Application,
    double x,
    double y,
    double width,
    double height,
    double angle,
    double rotation,
    double outlineThickness,
    ColorElement? fillColor,
    ColorElement? outlineColor)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
xNumber—
yNumber—
widthNumber—
heightNumber—
angleNumber—
rotationNumber—
outlineThicknessNumber—
fillColorOptional Color—
outlineColorOptional Color—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Draw Rectangle

Function

This node carries no documentation.

Signature
DrawRectangle
    Realtime Application: Realtime Application
    x: Number
    y: Number
    width: Number
    height: Number
    outlineThickness: Number
    fillColor: Optional Color
    outlineColor: Optional Color
    centered: Truth
void DrawRectangle(
    RealtimeApplication Realtime Application,
    double x,
    double y,
    double width,
    double height,
    double outlineThickness,
    ColorElement? fillColor,
    ColorElement? outlineColor,
    bool centered)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
xNumber—
yNumber—
widthNumber—
heightNumber—
outlineThicknessNumber—
fillColorOptional Color—
outlineColorOptional Color—
centeredTruth—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Draw Rounded Rectangle

Function

A rectangle with rounded corners: a button, a panel, a card.

Signature
DrawRoundedRectangle
    Realtime Application: Realtime Application
    x: Number
    y: Number
    width: Number
    height: Number
    radius: Number
    outlineThickness: Number
    fillColor: Optional Color
    outlineColor: Optional Color
void DrawRoundedRectangle(
    RealtimeApplication Realtime Application,
    double x,
    double y,
    double width,
    double height,
    double radius,
    double outlineThickness,
    ColorElement? fillColor,
    ColorElement? outlineColor)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
xNumber—Left edge.
yNumber—Top edge.
widthNumber—Width.
heightNumber—Height.
radiusNumber—The corners' radius; no more than half the shorter side.
outlineThicknessNumber—The outline's width; 0 for none.
fillColorOptional Color—The inside; none when not given.
outlineColorOptional Color—The outline; none when not given.
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Draw Sprite

Function

Overload 1 of 5

Signature
DrawSprite
    Realtime Application: Realtime Application
    path: Text
    location: Vector 2D
    sourceStart: Vector 2D
    size: Vector 2D
void DrawSprite(
    RealtimeApplication Realtime Application,
    string path,
    Vector2D location,
    Vector2D sourceStart,
    Vector2D size)

This node carries no documentation.

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
pathText—
locationVector 2D—
sourceStartVector 2D—
sizeVector 2D—

Overload 2 of 5

Signature
DrawSprite
    Realtime Application: Realtime Application
    image: Pixel Image
    location: Vector 2D
    sourceStart: Vector 2D
    size: Vector 2D
void DrawSprite(
    RealtimeApplication Realtime Application,
    PixelImage image,
    Vector2D location,
    Vector2D sourceStart,
    Vector2D size)

This node carries no documentation.

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
imagePixel Image—
locationVector 2D—
sourceStartVector 2D—
sizeVector 2D—

Overload 3 of 5

Signature
DrawSprite
    Realtime Application: Realtime Application
    sprite: GlazeSprite
    location: Vector 2D
void DrawSprite(
    RealtimeApplication Realtime Application,
    GlazeSprite sprite,
    Vector2D location)

This node carries no documentation.

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
spriteGlazeSprite—
locationVector 2D—

Overload 4 of 5

Signature
DrawSprite
    Realtime Application: Realtime Application
    sprite: GlazeSprite
    location: Vector 2D
    rotation: Number
    scale: Number
    tint: Color
    blend: Sprite Blend
void DrawSprite(
    RealtimeApplication Realtime Application,
    GlazeSprite sprite,
    Vector2D location,
    double rotation,
    double scale,
    ColorElement tint,
    SpriteBlend blend = SpriteBlend.Normal)

A sprite tinted, faded, scaled and turned, and blended as light or shadow: a glowing tile, a coloured spark, a sprite fading out.

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
spriteGlazeSprite—The sprite.
locationVector 2D—Where; its centre if it was made centred, its corner otherwise.
rotationNumber—Degrees, clockwise.
scaleNumber—How much larger than the sprite's own scale; 1 as it is.
tintColor—Each pixel multiplied by this colour, its transparency included: white leaves it as it is, white at half alpha fades it to half.
blendSprite BlendNormalHow it combines with what is beneath.

Overload 5 of 5

Signature
DrawSprite
    Realtime Application: Realtime Application
    sprite: GlazeSprite
    location: Vector 2D
    rotation: Number
void DrawSprite(
    RealtimeApplication Realtime Application,
    GlazeSprite sprite,
    Vector2D location,
    double rotation)

This node carries no documentation.

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
spriteGlazeSprite—
locationVector 2D—
rotationNumber—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Draw Text

Function

This node carries no documentation.

Overload 1 of 3

Signature
DrawText
    Realtime Application: Realtime Application
    text: Text
    fontName: Text
    size: Integer
    location: Vector 2D
    color: Color
void DrawText(
    RealtimeApplication Realtime Application,
    string text,
    string fontName,
    int size,
    Vector2D location,
    ColorElement color)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
textText—
fontNameText—
sizeInteger—
locationVector 2D—
colorColor—

Overload 2 of 3

Signature
DrawText
    Realtime Application: Realtime Application
    text: Text
    fontName: Text
    size: Integer
    location: Vector 2D
    color: Color
    centered: Truth
    centeredHorizontally: Truth
    centeredVertically: Truth
void DrawText(
    RealtimeApplication Realtime Application,
    string text,
    string fontName,
    int size,
    Vector2D location,
    ColorElement color,
    bool centered,
    bool centeredHorizontally = true,
    bool centeredVertically = true)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
textText—
fontNameText—
sizeInteger—
locationVector 2D—
colorColor—
centeredTruth—
centeredHorizontallyTruthTrue
centeredVerticallyTruthTrue

Overload 3 of 3

Signature
DrawText
    Realtime Application: Realtime Application
    text: Text
    fontName: Text
    fontSize: Integer
    location: Vector 2D
    maxWidth: Integer
    color: Color
void DrawText(
    RealtimeApplication Realtime Application,
    string text,
    string fontName,
    int fontSize,
    Vector2D location,
    int maxWidth,
    ColorElement color)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
textText—
fontNameText—
fontSizeInteger—
locationVector 2D—
maxWidthInteger—
colorColor—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Draw Tiled Image

Function

An image repeated across a rectangle, shifted by an offset: a texture of grain or cloth, a scrolling background.

Signature
DrawTiledImage
    Realtime Application: Realtime Application
    image: Pixel Image
    x: Number
    y: Number
    width: Number
    height: Number
    scale: Number
    offset: Vector 2D
    tint: Color
void DrawTiledImage(
    RealtimeApplication Realtime Application,
    PixelImage image,
    double x,
    double y,
    double width,
    double height,
    double scale,
    Vector2D offset,
    ColorElement tint)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
imagePixel Image—The image to repeat.
xNumber—Left edge.
yNumber—Top edge.
widthNumber—Width.
heightNumber—Height.
scaleNumber—How large one repeat is drawn; 1 as it is.
offsetVector 2D—How far the pattern is shifted, in the image's own pixels: change it every frame to scroll.
tintColor—Each pixel multiplied by this colour; white at a low alpha for a faint texture.
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Audio Output

Function

Where this application's sound comes out. Attached by whatever is running it.

Signature
AudioOutput(Realtime Application: Realtime Application) -> I Realtime Audio Output
IRealtimeAudioOutput AudioOutput(RealtimeApplication Realtime Application)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—

Returns

resultI Realtime Audio Output

Remarks

Settable rather than constructed here, because the package a graph is authored against must not
depend on an audio backend - SFML lives in the framework, behind IRealtimeAudioOutput. A run with
nothing attached REFUSES BY NAME rather than going quietly silent, which is the failure the thirty-
nine forwarders this class used to carry produced whenever their handle was unset.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Audio Output If Attached

Function

The audio output if one was attached, and null if this run has been silent.

Signature
AudioOutputIfAttached(Realtime Application: Realtime Application) -> I Realtime Audio Output
IRealtimeAudioOutput AudioOutputIfAttached(RealtimeApplication Realtime Application)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—

Returns

resultI Realtime Audio Output
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Close Requested

Function

Whether the application has asked to stop. A host reads this and ends its loop.

Signature
CloseRequested(Realtime Application: Realtime Application) -> Truth
bool CloseRequested(RealtimeApplication Realtime Application)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—

Returns

resultTruth

Remarks

ShadowGUI's FrameResult.ExitRequested, in the one shape that works here: a program that wants to end
says so, and whatever is driving it decides what that means. It used to reach through its service
provider to call Close on the window, which is a program holding its host.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Cursor Visible

Function

Whether the application wants a cursor shown. A host reads this.

Signature
CursorVisible(Realtime Application: Realtime Application) -> Truth
bool CursorVisible(RealtimeApplication Realtime Application)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Debugging

Function

Whether the application draws its own frame-rate readout.

Signature
Debugging(Realtime Application: Realtime Application) -> Truth
bool Debugging(RealtimeApplication Realtime Application)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—

Returns

resultTruth

Remarks

A flag the application reads rather than something a host does for it. The overlay used to be SFML
`Text` drawn onto the window AFTER the frame, which a host that only uploads a framebuffer cannot
do - so it becomes the application's own drawing, like everything else here.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Desired Background Color

Function

What Clear paints when it is given no colour of its own.

Signature
DesiredBackgroundColor(Realtime Application: Realtime Application) -> Optional Color
ColorElement? DesiredBackgroundColor(RealtimeApplication Realtime Application)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—

Returns

resultOptional Color
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Desired Frame Rate

Function

The frame rate the application asks for, in hertz; 0, the default, for as fast as the display allows. A host that was given a rate of its own keeps it.

Signature
DesiredFrameRate(Realtime Application: Realtime Application) -> Number
double DesiredFrameRate(RealtimeApplication Realtime Application)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Desired Window Size

Function

The size the application wants. A host may show it larger and scale, but this is what drawing is
laid out against and what the framebuffer is built at.

Signature
DesiredWindowSize(Realtime Application: Realtime Application) -> Size
Size DesiredWindowSize(RealtimeApplication Realtime Application)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—

Returns

resultSize
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Desired Window Title

Function

The window's title.

Signature
DesiredWindowTitle(Realtime Application: Realtime Application) -> Text
string DesiredWindowTitle(RealtimeApplication Realtime Application)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—

Returns

resultText

Remarks

Round 25: a game published as a program is a window of its own, and its title bar said "Divoka - Glaze!" whatever the game was; the window now says what the document sets here, "Divooka" until it does.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Elapsed Time

Function

Milliseconds the last frame took. Set by whatever drives the loop.

Signature
ElapsedTime(Realtime Application: Realtime Application) -> Number
double ElapsedTime(RealtimeApplication Realtime Application)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Framebuffer

Function

The pixels. Valid between frames; rebuilt when the window is resized.

Signature
Framebuffer(Realtime Application: Realtime Application) -> Pixel Image
PixelImage Framebuffer(RealtimeApplication Realtime Application)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—

Returns

resultPixel Image

Remarks

The application owns its framebuffer, exactly as ShadowGUI's does - there is no host holding pixels
and no conversion step between drawing and reading, so `Capture` is a copy of this and nothing else.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Input

Function

Where the pointer is and which keys are down.

Signature
Input(Realtime Application: Realtime Application) -> Glaze Input State
GlazeInputState Input(RealtimeApplication Realtime Application)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—

Returns

resultGlaze Input State

Remarks

The SFML backend reads `SFML.Window.Mouse` and `SFML.Window.Keyboard` STATICS - process-wide state
belonging to a real device - which is exactly why an offline run could not synthesise input. Here it
is ordinary state on the window, so a driver sets it and the document reads it back through the same
contract it always used.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

In Update Loop

Function

Whether a frame is being drawn.

Signature
InUpdateLoop(Realtime Application: Realtime Application) -> Truth
bool InUpdateLoop(RealtimeApplication Realtime Application)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—

Returns

resultTruth

Remarks

Ten drawing routines consult this. Drawing outside the loop is refused rather than ignored because
the pixels it produced would be overwritten by the next Clear without ever being shown, and a draw
that silently does nothing is worse than one that says why.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Is Rasterizing

Function

Whether this window rasterizes, or merely records.

Signature
IsRasterizing(Realtime Application: Realtime Application) -> Truth
bool IsRasterizing(RealtimeApplication Realtime Application)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Requested Cursor

Function

What cursor the application would like. A host reads this; an application draws no cursor itself.

Signature
RequestedCursor(Realtime Application: Realtime Application) -> Cursor Type
CursorType RequestedCursor(RealtimeApplication Realtime Application)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—

Returns

resultCursor Type
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Sink

Function

Where drawing goes: the framebuffer's rasterizer by default, or whatever was composed in.

Signature
Sink(Realtime Application: Realtime Application) -> IGeometrySink
IGeometrySink Sink(RealtimeApplication Realtime Application)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—

Returns

resultIGeometrySink

Remarks

Settable so a test can swap in a recorder mid-run - the drawing code neither knows nor can tell,
because everything below is written against the interface.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Storage

Function

Per-run storage a node can keep something in, cleared when a run starts.

Signature
Storage(Realtime Application: Realtime Application) -> Dictionary of Text to Any
Dictionary<string, object> Storage(RealtimeApplication Realtime Application)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—

Returns

resultDictionary of Text to Any
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Get Actual Window Size

Function

This node carries no documentation.

Signature
GetActualWindowSize(Realtime Application: Realtime Application) -> Vector 2D
Vector2D GetActualWindowSize(RealtimeApplication Realtime Application)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—

Returns

resultVector 2D
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Get Elapsed Time

Function

This node carries no documentation.

Signature
GetElapsedTime(Realtime Application: Realtime Application) -> Number
double GetElapsedTime(RealtimeApplication Realtime Application)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Get Mouse Button States

Function

This node carries no documentation.

Signature
GetMouseButtonStates(Realtime Application: Realtime Application) -> (LLMDown: Truth, LLMUp: Truth, MMMDown: Truth, MMMUp: Truth, RMBDown: Truth, RMBUp: Truth)
void GetMouseButtonStates(
    RealtimeApplication Realtime Application,
    out bool LLMDown,
    out bool LLMUp,
    out bool MMMDown,
    out bool MMMUp,
    out bool RMBDown,
    out bool RMBUp)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—

Returns

LLMDownTruth
LLMUpTruth
MMMDownTruth
MMMUpTruth
RMBDownTruth
RMBUpTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Get Mouse Position

Function

This node carries no documentation.

Overload 1 of 2

Signature
GetMousePosition(Realtime Application: Realtime Application) -> Vector 2D
Vector2D GetMousePosition(RealtimeApplication Realtime Application)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—

Returns

resultVector 2D

Overload 2 of 2

Signature
GetMousePosition(Realtime Application: Realtime Application) -> (x: Number, y: Number)
void GetMousePosition(
    RealtimeApplication Realtime Application,
    out double x,
    out double y)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—

Returns

xNumber
yNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Get Recording Devices

Function

The recording devices on this machine, by name, for Open Microphone.

Signature
GetRecordingDevices(Realtime Application: Realtime Application) -> Text Array
string[] GetRecordingDevices(RealtimeApplication Realtime Application)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—

Returns

DevicesText Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Get Sound Level

Function

How loud the sound is now: 0 for silence, 1 for a sine at full scale, over the newest 2048 samples, about 45 ms - what a level meter shows.

Signature
GetSoundLevel -> Number
    Realtime Application: Realtime Application
    microphone: Any
double GetSoundLevel(
    RealtimeApplication Realtime Application,
    object microphone)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
microphoneAny—From Open Microphone, to measure what it hears; what is playing when not connected.

Returns

LevelNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Get Sound Spectrum

Function

How loud each part of the sound is now, from the bass on the left to the treble on the right: bands spaced evenly in pitch from 40 Hz to 16 kHz, each 0 at -60 dB or quieter and 1 at full scale - the bars of a spectrum visualizer.

Signature
GetSoundSpectrum -> Number Array
    Realtime Application: Realtime Application
    bands: Integer
    microphone: Any
double[] GetSoundSpectrum(
    RealtimeApplication Realtime Application,
    int bands = 16,
    object microphone)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
bandsInteger16How many bars, 1 to 128.
microphoneAny—From Open Microphone, to measure what it hears; what is playing when not connected.

Returns

LevelsNumber Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Get Sound Waveform

Function

The newest samples of the sound, oldest first, for an oscilloscope to draw: each -1 to 1.

Signature
GetSoundWaveform -> Number Array
    Realtime Application: Realtime Application
    samples: Integer
    microphone: Any
double[] GetSoundWaveform(
    RealtimeApplication Realtime Application,
    int samples = 735,
    object microphone)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
samplesInteger735How many, 1 to 8192: 735 is one frame at 60 frames a second.
microphoneAny—From Open Microphone, to draw what it hears; what is playing when not connected.

Returns

WaveformNumber Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Get Storage

Function

This node carries no documentation.

Signature
GetStorage(Realtime Application: Realtime Application) -> Dictionary of Text to Any
Dictionary<string, object> GetStorage(RealtimeApplication Realtime Application)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—

Returns

resultDictionary of Text to Any
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Get Window Size

Function

Get design-time or specified window size.

Signature
GetWindowSize(Realtime Application: Realtime Application) -> Vector 2D
Vector2D GetWindowSize(RealtimeApplication Realtime Application)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—

Returns

resultVector 2D
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Hide Cursor

Function

This node carries no documentation.

Signature
HideCursor(Realtime Application: Realtime Application)
void HideCursor(RealtimeApplication Realtime Application)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Is Key Down

Function

This node carries no documentation.

Signature
IsKeyDown -> Truth
    Realtime Application: Realtime Application
    key: Keyboard Key
bool IsKeyDown(
    RealtimeApplication Realtime Application,
    KeyboardKey key)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
keyKeyboard Key—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Is Sound Playing

Function

This node carries no documentation.

Signature
IsSoundPlaying -> Truth
    Realtime Application: Realtime Application
    sound: Any
bool IsSoundPlaying(
    RealtimeApplication Realtime Application,
    object sound)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
soundAny—A sound, music or signal from one of the Play nodes.

Returns

PlayingTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Make Sprite

Function

This node carries no documentation.

Overload 1 of 4

Signature
MakeSprite -> GlazeSprite
    Realtime Application: Realtime Application
    imagePath: Text
    scale: Number
    centered: Truth
GlazeSprite MakeSprite(
    RealtimeApplication Realtime Application,
    string imagePath,
    double scale = 1,
    bool centered = false)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
imagePathText—
scaleNumber1
centeredTruthFalse

Returns

resultGlazeSprite

Overload 2 of 4

Signature
MakeSprite -> GlazeSprite
    Realtime Application: Realtime Application
    image: Pixel Image
    scale: Number
    centered: Truth
GlazeSprite MakeSprite(
    RealtimeApplication Realtime Application,
    PixelImage image,
    double scale = 1,
    bool centered = false)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
imagePixel Image—
scaleNumber1
centeredTruthFalse

Returns

resultGlazeSprite

Overload 3 of 4

Signature
MakeSprite -> GlazeSprite
    Realtime Application: Realtime Application
    imagePath: Text
    sourceStart: Vector 2D
    size: Vector 2D
    scale: Number
    centered: Truth
GlazeSprite MakeSprite(
    RealtimeApplication Realtime Application,
    string imagePath,
    Vector2D sourceStart,
    Vector2D size,
    double scale,
    bool centered)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
imagePathText—
sourceStartVector 2D—
sizeVector 2D—
scaleNumber—
centeredTruth—

Returns

resultGlazeSprite

Overload 4 of 4

Signature
MakeSprite -> GlazeSprite
    Realtime Application: Realtime Application
    image: Pixel Image
    sourceStart: Vector 2D
    size: Vector 2D
    scale: Number
    centered: Truth
GlazeSprite MakeSprite(
    RealtimeApplication Realtime Application,
    PixelImage image,
    Vector2D sourceStart,
    Vector2D size,
    double scale,
    bool centered)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
imagePixel Image—
sourceStartVector 2D—
sizeVector 2D—
scaleNumber—
centeredTruth—

Returns

resultGlazeSprite
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Open Microphone

Function

Starts listening to a microphone, so the measuring nodes can hear it: pass what this returns as their Microphone.

Signature
OpenMicrophone -> Any
    Realtime Application: Realtime Application
    device: Text
object OpenMicrophone(
    RealtimeApplication Realtime Application,
    string device = "")

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
deviceText—A name from Get Recording Devices; empty for the default.

Returns

MicrophoneAny
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Play Clip

Function

Plays a clip from memory - one the audio nodes made, generated rather than recorded.

Signature
PlayClip -> Any
    Realtime Application: Realtime Application
    audio: AudioBuffer
    volume: Number
    pan: Number
    pitch: Number
    loop: Truth
object PlayClip(
    RealtimeApplication Realtime Application,
    AudioBuffer audio,
    double volume = 1,
    double pan = 0,
    double pitch = 1,
    bool loop = false)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
audioAudioBuffer—The clip.
volumeNumber10 to 1.
panNumber0-1 (left) to 1 (right).
pitchNumber1Playback speed: 2 is an octave up and twice as fast.
loopTruthFalseWhether it repeats until stopped.

Returns

SoundAny
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Play Music

Function

Plays a music file, looping by default: WAV, OGG/Vorbis, FLAC or MP3. Music is never cut short to make room for another sound.

Signature
PlayMusic -> Any
    Realtime Application: Realtime Application
    filePath: Text
    loop: Truth
object PlayMusic(
    RealtimeApplication Realtime Application,
    string filePath,
    bool loop = true)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
filePathText—The file.
loopTruthTrueWhether it repeats.

Returns

MusicAny
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Play Signal

Function

Plays a signal, synthesized as it plays, until it is stopped: the same on both sides. A Microphone in it is heard live.

Signature
PlaySignal -> Any
    Realtime Application: Realtime Application
    signal: Signal
    volume: Number
object PlaySignal(
    RealtimeApplication Realtime Application,
    Signal signal,
    double volume = 1)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
signalSignal—What to play.
volumeNumber10 to 1.

Returns

SoundAny
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Play Sound

Function

Plays a sound file once: WAV, OGG/Vorbis, FLAC or MP3.

Signature
PlaySound -> Any
    Realtime Application: Realtime Application
    filePath: Text
object PlaySound(
    RealtimeApplication Realtime Application,
    string filePath)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
filePathText—The file.

Returns

SoundAny
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Play Stereo Signal

Function

Plays a stereo signal - a panned voice, a stereo reverb or chorus - synthesized as it plays, until it is stopped.

Signature
PlayStereoSignal -> Any
    Realtime Application: Realtime Application
    stereo: Stereo Signal
    volume: Number
object PlayStereoSignal(
    RealtimeApplication Realtime Application,
    StereoSignal stereo,
    double volume = 1)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
stereoStereo Signal—What to play.
volumeNumber10 to 1.

Returns

SoundAny
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Present

Function

Make sure every draw has reached the pixels, then answer them.

Signature
Present(Realtime Application: Realtime Application) -> Pixel Image
PixelImage Present(RealtimeApplication Realtime Application)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Request Close

Function

Ask to stop after this frame.

Signature
RequestClose(Realtime Application: Realtime Application)
void RequestClose(RealtimeApplication Realtime Application)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Set Cursor

Function

This node carries no documentation.

Signature
SetCursor
    Realtime Application: Realtime Application
    cursorType: Cursor Type
void SetCursor(
    RealtimeApplication Realtime Application,
    CursorType cursorType)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
cursorTypeCursor Type—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Set Frame Rate

Function

Paces the frames at a steady rate, so every frame's delta is the same and motion is smooth: 60 for most games, 120 for a fast one; 0 for as fast as the display allows.

Signature
SetFrameRate
    Realtime Application: Realtime Application
    framesPerSecond: Number
void SetFrameRate(
    RealtimeApplication Realtime Application,
    double framesPerSecond = 60)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
framesPerSecondNumber600 to 1000.
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Set Loop

Function

This node carries no documentation.

Signature
SetLoop
    Realtime Application: Realtime Application
    sound: Any
    loop: Truth
void SetLoop(
    RealtimeApplication Realtime Application,
    object sound,
    bool loop = true)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
soundAny—A sound or music from one of the Play nodes.
loopTruthTrueWhether it repeats.
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Set Master Volume

Function

The volume of everything at once, on top of each sound's own: a game's volume setting.

Signature
SetMasterVolume
    Realtime Application: Realtime Application
    volume: Number
void SetMasterVolume(
    RealtimeApplication Realtime Application,
    double volume = 1)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
volumeNumber10 to 1.
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Set Pan

Function

This node carries no documentation.

Signature
SetPan
    Realtime Application: Realtime Application
    sound: Any
    pan: Number
void SetPan(
    RealtimeApplication Realtime Application,
    object sound,
    double pan = 0)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
soundAny—A sound, music or signal from one of the Play nodes.
panNumber0-1 (left) to 1 (right).
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Set Pitch

Function

This node carries no documentation.

Signature
SetPitch
    Realtime Application: Realtime Application
    sound: Any
    pitch: Number
void SetPitch(
    RealtimeApplication Realtime Application,
    object sound,
    double pitch = 1)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
soundAny—A sound, music or signal from one of the Play nodes.
pitchNumber1Playback speed: 1 as recorded, 2 an octave up and twice as fast.
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Set Volume

Function

This node carries no documentation.

Signature
SetVolume
    Realtime Application: Realtime Application
    sound: Any
    volume: Number
void SetVolume(
    RealtimeApplication Realtime Application,
    object sound,
    double volume = 1)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
soundAny—A sound, music or signal from one of the Play nodes.
volumeNumber10 to 1.
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Set Window Background

Function

This node carries no documentation.

Signature
SetWindowBackground
    Realtime Application: Realtime Application
    background: Optional Color
void SetWindowBackground(
    RealtimeApplication Realtime Application,
    ColorElement? background)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
backgroundOptional Color—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Set Window Size

Function

This node carries no documentation.

Signature
SetWindowSize
    Realtime Application: Realtime Application
    width: Number
    height: Number
void SetWindowSize(
    RealtimeApplication Realtime Application,
    double width = 1024,
    double height = 768)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
widthNumber1024
heightNumber768
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Set Window Title

Function

Set the window's title.

Signature
SetWindowTitle
    Realtime Application: Realtime Application
    title: Text
void SetWindowTitle(
    RealtimeApplication Realtime Application,
    string title = "Divooka")

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
titleTextDivooka
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Show Cursor

Function

This node carries no documentation.

Overload 1 of 2

Signature
ShowCursor
    Realtime Application: Realtime Application
    cursorType: Cursor Type
void ShowCursor(
    RealtimeApplication Realtime Application,
    CursorType cursorType)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
cursorTypeCursor Type—

Overload 2 of 2

Signature
ShowCursor(Realtime Application: Realtime Application)
void ShowCursor(RealtimeApplication Realtime Application)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Show Debug Information

Function

This node carries no documentation.

Signature
ShowDebugInformation
    Realtime Application: Realtime Application
    show: Truth
void ShowDebugInformation(
    RealtimeApplication Realtime Application,
    bool show)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
showTruth—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Sprite Collide

Function

This node carries no documentation.

Signature
SpriteCollide -> Truth
    Realtime Application: Realtime Application
    sprite1: GlazeSprite
    position1: Vector 2D
    rotation1: Integer
    sprite2: GlazeSprite
    position2: Vector 2D
    rotation2: Integer
bool SpriteCollide(
    RealtimeApplication Realtime Application,
    GlazeSprite sprite1,
    Vector2D position1,
    int rotation1,
    GlazeSprite sprite2,
    Vector2D position2,
    int rotation2)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
sprite1GlazeSprite—
position1Vector 2D—
rotation1Integer—
sprite2GlazeSprite—
position2Vector 2D—
rotation2Integer—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Stop All Sounds

Function

Stops everything playing, fading it out over some seconds.

Signature
StopAllSounds
    Realtime Application: Realtime Application
    fade: Number
void StopAllSounds(
    RealtimeApplication Realtime Application,
    double fade = 0)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
fadeNumber0Seconds.
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Stop Sound

Function

Stops a sound, fading it out over some seconds; 0 stops it at once.

Signature
StopSound
    Realtime Application: Realtime Application
    sound: Any
    fade: Number
void StopSound(
    RealtimeApplication Realtime Application,
    object sound,
    double fade = 0)

Parameters

nametypedefaultdescription
Realtime ApplicationRealtime Application—
soundAny—A sound, music or signal from one of the Play nodes.
fadeNumber0Seconds.
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Initialized

Event

Window is created.

Signature
Initialized()
void Initialized()
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Key Down

Event

A key went down.

Signature
KeyDown(key: Keyboard Key)
void KeyDown(KeyboardKey key)

Parameters

nametypedefaultdescription
keyKeyboard Key—The key pressed.
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Key Up

Event

A key came back up.

Signature
KeyUp(key: Keyboard Key)
void KeyUp(KeyboardKey key)

Parameters

nametypedefaultdescription
keyKeyboard Key—The key released.
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Mouse Down

Event

A pointer button went down - a click begins, a drag starts.

Signature
MouseDown(button: Mouse Button, position: Vector 2D)
void MouseDown(MouseButton button, Vector2D position)

Parameters

nametypedefaultdescription
buttonMouse Button—Which button.
positionVector 2D—Where, in the framebuffer's pixels, whatever size the window is.
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Mouse Up

Event

A pointer button came back up - a click ends, a drag drops.

Signature
MouseUp(button: Mouse Button, position: Vector 2D)
void MouseUp(MouseButton button, Vector2D position)

Parameters

nametypedefaultdescription
buttonMouse Button—Which button.
positionVector 2D—Where, in the framebuffer's pixels.
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Start

Event

Divooka procedural program entry, equivalent to "Main" in many programming language. Runs before
the window exists; RealtimeApplication.Initialized is the one that runs when it does.

Signature
Start()
void Start()
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime

Update

Event

Called once per frame. Procedural context entrance.

Signature
Update(deltaTimeMiliseconds: Number)
void Update(double deltaTimeMiliseconds)

Parameters

nametypedefaultdescription
deltaTimeMilisecondsNumber—Time elapsed since the previous frame.
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events StateMachineState
Declared by
Realtime Application
Package
Glaze Realtime