Reference Codebot.Render.Contexts.pas
Part of the Codebot Render package
The Codebot.Render.Contexts unit gives you TRenderContext, the heart of 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. They must be created on a thread with a current render context, such as in the Initialize of your scene, and any you forget to free are freed when the context is destroyed. TContextCollection is the base class of the collections other units add to the context, such as Ctx.Shaders and Ctx.Textures.
Items 82 items
| Name | Kind | Line |
|---|---|---|
| Ctx | function | 334 |
| EContextAssetError | class | 18 |
| EContextCollectionError | class | 19 |
| EContextError | class | 17 |
| EOpenGLError | class | 20 |
| RestoreContextState | procedure | 340 |
| SAssetNotFound | constant | 345 |
| SAssetNotUnderstood | constant | 346 |
| SDuplicateCollectionName | constant | 348 |
| SNoCollectionName | constant | 347 |
| SNoContext | constant | 344 |
| SNoOpenGL | constant | 343 |
| TContextCollection | class | 110 |
| Create | constructor | 120 |
| Destroy | destructor | 121 |
| GetObject | function | 116 |
| Name | property | 123 |
| Objects | property | 117 |
| TContextManagedObject | class | 77 |
| Create | constructor | 95 |
| Destroy | destructor | 97 |
| FreeManaged | procedure | 91 |
| QueryInterface | function | 84 |
| _AddRef | function | 85 |
| _Release | function | 86 |
| Name | property | 99 |
| TManagedObjectCollection | class | 129 |
| Objects | property | 131 |
| TRenderContext | class | 136 |
| Clear | procedure | 181 |
| Create | constructor | 175 |
| Destroy | destructor | 176 |
| FindAssetFile | function | 235 |
| Frustum | procedure | 324 |
| GetAssetFile | function | 232 |
| GetAssetStream | function | 226 |
| GetCollection | function | 239 |
| GetModelview | function | 296 |
| GetProgram | function | 245 |
| GetProjection | function | 316 |
| GetTexture | function | 286 |
| GetTextureSlot | function | 284 |
| GetUniform | function | 253, 255 |
| GetViewport | function | 203 |
| GetWorld | function | 211 |
| Identity | procedure | 304 |
| LookAt | procedure | 302 |
| Objects | function | 241 |
| Perspective | procedure | 322 |
| PopCulling | procedure | 185 |
| PopDepthTesting | procedure | 189 |
| PopDepthWriting | procedure | 193 |
| PopModelview | procedure | 300 |
| PopProgram | procedure | 249 |
| PopProjection | procedure | 320 |
| PopTexture | procedure | 290 |
| PopViewport | procedure | 209 |
| PushCulling | procedure | 183 |
| PushDepthTesting | procedure | 187 |
| PushDepthWriting | procedure | 191 |
| PushModelview | procedure | 298 |
| PushProgram | procedure | 247 |
| PushProjection | procedure | 318 |
| PushTexture | procedure | 288 |
| PushViewport | procedure | 207 |
| RestoreState | procedure | 199 |
| Rotate | procedure | 310 |
| SaveToBitmap | procedure | 215 |
| SaveToFile | procedure | 219 |
| SaveToStream | procedure | 217 |
| Scale | procedure | 312 |
| SetAssetFolder | procedure | 237 |
| SetClearColor | procedure | 179 |
| SetModelview | procedure | 294 |
| SetProgramMatrix | procedure | 251 |
| SetProjection | procedure | 314 |
| SetTextureSlot | procedure | 282 |
| SetUniform | procedure | 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278 |
| SetViewport | procedure | 205 |
| SetWorld | procedure | 213 |
| Transform | procedure | 306 |
| Translate | procedure | 308 |