Download Now
Forums

    Reference Codebot.Render.World.pas

    Part of the Codebot Render package

    The Codebot.Render.World unit gives you TWorld, a 2D world within a 3D space, which you reach through Ctx.World. It can draw a grid, and gives you a TCamera, which places a point of view in the world and moves it forward, backward, left, and right, and a TSkybox, a textured cube that faces inward and is drawn as the background.

    Items 33 items

    NameKindLine
    TCameraclass22
    ApplyDirectionprocedure36
    ApplyPositionprocedure38
    Createconstructor33
    Destroydestructor34
    MoveBackwardprocedure42
    MoveForwardprocedure40
    MoveLeftprocedure44
    MoveRightprocedure46
    Directionproperty48
    Positionproperty50
    TSkyboxclass56
    Createconstructor62
    Destroydestructor63
    Drawprocedure65
    Textureproperty67
    TWorldclass73
    Createconstructor96
    Defineprocedure99
    DepthToWorldfunction110
    DrawGridprocedure114
    SpaceToWorldfunction104, 105
    Updateprocedure102
    WorldToDepthfunction112
    WorldToSpacefunction107, 108
    Cameraproperty124
    Depthproperty120
    FieldOfViewproperty122
    Heightproperty118
    Skyboxproperty126
    Widthproperty116
    TWorldExtensionhelper131
    Worldfunction134