Download Now

    Reference Codebot.Render.World.pas

    Part of the Codebot Render package

    Each version implies all earlier versions

    The Codebot.Render.World unit defines TWorld, which provides a 2D world within a 3D space and can optionally show a grid. The world is accessed through Ctx.World. TCamera places a point of view in the world and can move it forward, backward, left, and right. TSkybox is a textured cube that faces inward and is drawn as the background.

    Items 33 items

    NameKindLine
    TCameraclass21
    ApplyDirectionprocedure35
    ApplyPositionprocedure37
    Createconstructor32
    Destroydestructor33
    MoveBackwardprocedure41
    MoveForwardprocedure39
    MoveLeftprocedure43
    MoveRightprocedure45
    Directionproperty47
    Positionproperty49
    TSkyboxclass55
    Createconstructor61
    Destroydestructor62
    Drawprocedure64
    Textureproperty66
    TWorldclass72
    Createconstructor95
    Defineprocedure98
    DepthToWorldfunction109
    DrawGridprocedure113
    SpaceToWorldfunction103, 104
    Updateprocedure101
    WorldToDepthfunction111
    WorldToSpacefunction106, 107
    Cameraproperty123
    Depthproperty119
    FieldOfViewproperty121
    Heightproperty117
    Skyboxproperty125
    Widthproperty115
    TWorldExtensionhelper130
    Worldfunction133