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
| Name | Kind | Line |
|---|---|---|
| TCamera | class | 21 |
| ApplyDirection | procedure | 35 |
| ApplyPosition | procedure | 37 |
| Create | constructor | 32 |
| Destroy | destructor | 33 |
| MoveBackward | procedure | 41 |
| MoveForward | procedure | 39 |
| MoveLeft | procedure | 43 |
| MoveRight | procedure | 45 |
| Direction | property | 47 |
| Position | property | 49 |
| TSkybox | class | 55 |
| Create | constructor | 61 |
| Destroy | destructor | 62 |
| Draw | procedure | 64 |
| Texture | property | 66 |
| TWorld | class | 72 |
| Create | constructor | 95 |
| Define | procedure | 98 |
| DepthToWorld | function | 109 |
| DrawGrid | procedure | 113 |
| SpaceToWorld | function | 103, 104 |
| Update | procedure | 101 |
| WorldToDepth | function | 111 |
| WorldToSpace | function | 106, 107 |
| Camera | property | 123 |
| Depth | property | 119 |
| FieldOfView | property | 121 |
| Height | property | 117 |
| Skybox | property | 125 |
| Width | property | 115 |
| TWorldExtension | helper | 130 |
| World | function | 133 |