Download Now

    Reference Codebot.Render.Contexts.pas

    Part of the Codebot Render package

    Each version implies all earlier versions

    The Codebot.Render.Contexts unit defines TRenderContext, which is the interface to 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. Any of these objects that the program does not free are freed when the context is destroyed. TContextCollection is the base class of the collections that other units add to the context, such as Ctx.Shaders.

    Items 80 items

    NameKindLine
    Ctxfunction323
    EContextAssetErrorclass17
    EContextCollectionErrorclass18
    EContextErrorclass16
    EOpenGLErrorclass19
    SAssetNotFoundconstant328
    SAssetNotUnderstoodconstant329
    SDuplicateCollectionNameconstant331
    SNoCollectionNameconstant330
    SNoContextconstant327
    SNoOpenGLconstant326
    TContextCollectionclass109
    Createconstructor119
    Destroydestructor120
    GetObjectfunction115
    Nameproperty122
    Objectsproperty116
    TContextManagedObjectclass76
    Createconstructor94
    Destroydestructor96
    FreeManagedprocedure90
    QueryInterfacefunction83
    _AddReffunction84
    _Releasefunction85
    Nameproperty98
    TManagedObjectCollectionclass128
    Objectsproperty130
    TRenderContextclass135
    Clearprocedure181
    Createconstructor175
    Destroydestructor176
    FindAssetFilefunction224
    Frustumprocedure313
    GetAssetFilefunction221
    GetAssetStreamfunction218
    GetCollectionfunction228
    GetModelviewfunction285
    GetProgramfunction234
    GetProjectionfunction305
    GetTexturefunction275
    GetTextureSlotfunction273
    GetUniformfunction242, 244
    GetViewportfunction197
    GetWorldfunction205
    Identityprocedure293
    LookAtprocedure291
    Objectsfunction230
    Perspectiveprocedure311
    PopCullingprocedure185
    PopDepthTestingprocedure189
    PopDepthWritingprocedure193
    PopModelviewprocedure289
    PopProgramprocedure238
    PopProjectionprocedure309
    PopTextureprocedure279
    PopViewportprocedure203
    PushCullingprocedure183
    PushDepthTestingprocedure187
    PushDepthWritingprocedure191
    PushModelviewprocedure287
    PushProgramprocedure236
    PushProjectionprocedure307
    PushTextureprocedure277
    PushViewportprocedure201
    Rotateprocedure299
    SaveToBitmapprocedure209
    SaveToFileprocedure213
    SaveToStreamprocedure211
    Scaleprocedure301
    SetAssetFolderprocedure226
    SetClearColorprocedure179
    SetModelviewprocedure283
    SetProgramMatrixprocedure240
    SetProjectionprocedure303
    SetTextureSlotprocedure271
    SetUniformprocedure246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267
    SetViewportprocedure199
    SetWorldprocedure207
    Transformprocedure295
    Translateprocedure297