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
| Name | Kind | Line |
|---|---|---|
| TCamera | class | 22 |
| ApplyDirection | procedure | 36 |
| ApplyPosition | procedure | 38 |
| Create | constructor | 33 |
| Destroy | destructor | 34 |
| MoveBackward | procedure | 42 |
| MoveForward | procedure | 40 |
| MoveLeft | procedure | 44 |
| MoveRight | procedure | 46 |
| Direction | property | 48 |
| Position | property | 50 |
| TSkybox | class | 56 |
| Create | constructor | 62 |
| Destroy | destructor | 63 |
| Draw | procedure | 65 |
| Texture | property | 67 |
| TWorld | class | 73 |
| Create | constructor | 96 |
| Define | procedure | 99 |
| DepthToWorld | function | 110 |
| DrawGrid | procedure | 114 |
| SpaceToWorld | function | 104, 105 |
| Update | procedure | 102 |
| WorldToDepth | function | 112 |
| WorldToSpace | function | 107, 108 |
| Camera | property | 124 |
| Depth | property | 120 |
| FieldOfView | property | 122 |
| Height | property | 118 |
| Skybox | property | 126 |
| Width | property | 116 |
| TWorldExtension | helper | 131 |
| World | function | 134 |