Download Now

    Reference Codebot.Render.Scenes.pas

    Part of the Codebot Render package

    Each version implies all earlier versions

    The Codebot.Render.Scenes unit defines TScene, which is the base class of everything a host shows. A program descends from TScene to draw each frame and to handle keyboard, text, mouse, and wheel input. A scene can also be stepped at a fixed interval on its own thread.

    TSceneHost runs scenes and provides what they share: the canvas, a default font, the window, the clipboard, the timer, and vertical sync. The two scene hosts are TSceneController in the codebot_render_controls package and TApplication in the codebot_render_sdl package.

    Items 86 items

    NameKindLine
    SceneHostfunction119
    SceneLogicStepconstant203
    SetSceneHostprocedure121
    TMouseActionenum20
    maPressenum value20
    maMoveenum value20
    maReleaseenum value20
    TSceneclass127
    Createconstructor146
    Destroydestructor147
    DoKeyDownprocedure156
    DoKeyUpprocedure157
    DoMouseDownprocedure158
    DoMouseMoveprocedure159
    DoMouseUpprocedure160
    DoMouseWheelprocedure161
    DoTextInputprocedure162
    Finalizeprocedure169
    Initializeprocedure167
    KeyEventprocedure151
    Logicprocedure171
    MouseEventprocedure153
    Namefunction149
    Renderprocedure173
    Resizeprocedure143
    Stepprocedure181
    StepIntervalfunction177
    Updateprocedure165
    Animatedproperty183
    Canvasproperty189
    Contextproperty185
    Fontproperty190
    Heightproperty196
    Hostproperty187
    Timeproperty192
    Widthproperty194
    TSceneClassclassref200
    TSceneHostclass77
    FCanvasfield79
    FFontfield80
    FFrameRatefield83
    FMouseXfield84
    FMouseYfield85
    FTimefield82
    FTimerfield81
    FVSyncfield87
    FWindowfield86
    GetClipboardfunction89
    GetVSyncfunction92
    SetClipboardprocedure90
    SetVSyncprocedure93
    Canvasproperty96
    Clipboardproperty109
    Fontproperty98
    FrameRateproperty104
    MouseXproperty106
    MouseYproperty107
    Timeproperty102
    Timerproperty100
    VSyncproperty114
    Windowproperty111
    TSceneKeyArgsrecord25
    Handledfield32
    Keyfield27
    Repeatedfield31
    Shiftfield29
    TSceneKeyEventprocedural65
    TSceneMouseArgsrecord36
    Buttonfield38
    Handledfield43
    Shiftfield42
    Xfield40
    XRelfield40
    Yfield40
    YRelfield40
    TSceneMouseEventprocedural67
    TSceneTextArgsrecord58
    Handledfield61
    Textfield60
    TSceneWheelArgsrecord47
    Deltafield49
    Handledfield54
    Shiftfield53
    Xfield51
    Yfield51
    TShiftKeysset18