Download Now

    Reference Codebot.Render.Controls.pas

    Part of the Codebot Render Controls package

    The Codebot.Render.Controls unit defines TGraphicsBox, which is a windowed LCL control for hosting OpenGL graphics. When the control is first shown, it creates an SDL window that fills it, and SDL creates the OpenGL context for that window. A render thread then calls OnRenderStart, OnRender, and OnRenderStop with the context made current, and a step thread can call OnStep at a fixed rate.

    Because the SDL window covers the control, SDL reads the keyboard and mouse input over it. Before each frame, the graphics box passes those events on as its own LCL key and mouse events, and through OnInput. TGraphicsBoxOptions chooses the depth bits, stencil bits, and multisampling of the OpenGL context.

    Items 56 items

    NameKindLine
    TGraphicsBoxclass122
    BeginFrameprocedure175
    Createconstructor171
    Destroydestructor172
    DestroyWndprocedure164
    EndFrameprocedure177
    EraseBackgroundprocedure173
    Flipprocedure180
    Paintprocedure167
    PaintWindowprocedure166
    Resizeprocedure165
    StartSteppingprocedure185
    StopSteppingprocedure187
    WSRegisterClassprocedure163
    Alignproperty214
    Anchorsproperty215
    BorderSpacingproperty216
    Canvasproperty192
    Constraintsproperty217
    Contextproperty195
    ControlCanvasproperty169
    Enabledproperty218
    ErrorMessageproperty209
    Failedproperty206
    OnClickproperty221
    OnDblClickproperty222
    OnFailedproperty237
    OnInputproperty212
    OnKeyDownproperty223
    OnKeyUpproperty224
    OnMouseDownproperty226
    OnMouseEnterproperty227
    OnMouseLeaveproperty228
    OnMouseMoveproperty229
    OnMouseUpproperty230
    OnMouseWheelproperty231
    OnRenderproperty247
    OnRenderStartproperty240
    OnRenderStopproperty243
    OnResizeproperty232
    OnUTF8KeyPressproperty225
    Optionsproperty234
    Renderingproperty199
    Steppingproperty201
    TabStopproperty219
    Visibleproperty220
    TGraphicsBoxOptionsclass28
    Assignprocedure39
    Createconstructor38
    DepthBitsproperty42
    MultiSamplesproperty50
    MultiSamplingproperty47
    StencilBitsproperty45
    TGraphicsInputEventprocedural66
    TGraphicsRenderEventprocedural56
    TGraphicsStepEventprocedural61