Download Now
Forums

    Reference Codebot.Render.Contexts.pas

    Part of the Codebot Render package

    The Codebot.Render.Contexts unit gives you TRenderContext, the heart of all rendering in the library. Ctx returns the render context of the calling thread. A render context holds the matrix stacks, finds asset files, and can save what was rendered to a bitmap.

    TContextManagedObject is the base class of objects that need a render context, such as shaders, textures, and vertex buffers. They must be created on a thread with a current render context, such as in the Initialize of your scene, and any you forget to free are freed when the context is destroyed. TContextCollection is the base class of the collections other units add to the context, such as Ctx.Shaders and Ctx.Textures.

    Items 82 items

    NameKindLine
    Ctxfunction334
    EContextAssetErrorclass18
    EContextCollectionErrorclass19
    EContextErrorclass17
    EOpenGLErrorclass20
    RestoreContextStateprocedure340
    SAssetNotFoundconstant345
    SAssetNotUnderstoodconstant346
    SDuplicateCollectionNameconstant348
    SNoCollectionNameconstant347
    SNoContextconstant344
    SNoOpenGLconstant343
    TContextCollectionclass110
    Createconstructor120
    Destroydestructor121
    GetObjectfunction116
    Nameproperty123
    Objectsproperty117
    TContextManagedObjectclass77
    Createconstructor95
    Destroydestructor97
    FreeManagedprocedure91
    QueryInterfacefunction84
    _AddReffunction85
    _Releasefunction86
    Nameproperty99
    TManagedObjectCollectionclass129
    Objectsproperty131
    TRenderContextclass136
    Clearprocedure181
    Createconstructor175
    Destroydestructor176
    FindAssetFilefunction235
    Frustumprocedure324
    GetAssetFilefunction232
    GetAssetStreamfunction226
    GetCollectionfunction239
    GetModelviewfunction296
    GetProgramfunction245
    GetProjectionfunction316
    GetTexturefunction286
    GetTextureSlotfunction284
    GetUniformfunction253, 255
    GetViewportfunction203
    GetWorldfunction211
    Identityprocedure304
    LookAtprocedure302
    Objectsfunction241
    Perspectiveprocedure322
    PopCullingprocedure185
    PopDepthTestingprocedure189
    PopDepthWritingprocedure193
    PopModelviewprocedure300
    PopProgramprocedure249
    PopProjectionprocedure320
    PopTextureprocedure290
    PopViewportprocedure209
    PushCullingprocedure183
    PushDepthTestingprocedure187
    PushDepthWritingprocedure191
    PushModelviewprocedure298
    PushProgramprocedure247
    PushProjectionprocedure318
    PushTextureprocedure288
    PushViewportprocedure207
    RestoreStateprocedure199
    Rotateprocedure310
    SaveToBitmapprocedure215
    SaveToFileprocedure219
    SaveToStreamprocedure217
    Scaleprocedure312
    SetAssetFolderprocedure237
    SetClearColorprocedure179
    SetModelviewprocedure294
    SetProgramMatrixprocedure251
    SetProjectionprocedure314
    SetTextureSlotprocedure282
    SetUniformprocedure257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278
    SetViewportprocedure205
    SetWorldprocedure213
    Transformprocedure306
    Translateprocedure308