Reference Codebot.Render.Contexts.pas
Part of the Codebot Render package
Each version implies all earlier versions
The Codebot.Render.Contexts unit defines TRenderContext, which is the interface to 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. Any of these objects that the program does not free are freed when the context is destroyed. TContextCollection is the base class of the collections that other units add to the context, such as Ctx.Shaders.
Items 80 items
| Name | Kind | Line |
|---|---|---|
| Ctx | function | 323 |
| EContextAssetError | class | 17 |
| EContextCollectionError | class | 18 |
| EContextError | class | 16 |
| EOpenGLError | class | 19 |
| SAssetNotFound | constant | 328 |
| SAssetNotUnderstood | constant | 329 |
| SDuplicateCollectionName | constant | 331 |
| SNoCollectionName | constant | 330 |
| SNoContext | constant | 327 |
| SNoOpenGL | constant | 326 |
| TContextCollection | class | 109 |
| Create | constructor | 119 |
| Destroy | destructor | 120 |
| GetObject | function | 115 |
| Name | property | 122 |
| Objects | property | 116 |
| TContextManagedObject | class | 76 |
| Create | constructor | 94 |
| Destroy | destructor | 96 |
| FreeManaged | procedure | 90 |
| QueryInterface | function | 83 |
| _AddRef | function | 84 |
| _Release | function | 85 |
| Name | property | 98 |
| TManagedObjectCollection | class | 128 |
| Objects | property | 130 |
| TRenderContext | class | 135 |
| Clear | procedure | 181 |
| Create | constructor | 175 |
| Destroy | destructor | 176 |
| FindAssetFile | function | 224 |
| Frustum | procedure | 313 |
| GetAssetFile | function | 221 |
| GetAssetStream | function | 218 |
| GetCollection | function | 228 |
| GetModelview | function | 285 |
| GetProgram | function | 234 |
| GetProjection | function | 305 |
| GetTexture | function | 275 |
| GetTextureSlot | function | 273 |
| GetUniform | function | 242, 244 |
| GetViewport | function | 197 |
| GetWorld | function | 205 |
| Identity | procedure | 293 |
| LookAt | procedure | 291 |
| Objects | function | 230 |
| Perspective | procedure | 311 |
| PopCulling | procedure | 185 |
| PopDepthTesting | procedure | 189 |
| PopDepthWriting | procedure | 193 |
| PopModelview | procedure | 289 |
| PopProgram | procedure | 238 |
| PopProjection | procedure | 309 |
| PopTexture | procedure | 279 |
| PopViewport | procedure | 203 |
| PushCulling | procedure | 183 |
| PushDepthTesting | procedure | 187 |
| PushDepthWriting | procedure | 191 |
| PushModelview | procedure | 287 |
| PushProgram | procedure | 236 |
| PushProjection | procedure | 307 |
| PushTexture | procedure | 277 |
| PushViewport | procedure | 201 |
| Rotate | procedure | 299 |
| SaveToBitmap | procedure | 209 |
| SaveToFile | procedure | 213 |
| SaveToStream | procedure | 211 |
| Scale | procedure | 301 |
| SetAssetFolder | procedure | 226 |
| SetClearColor | procedure | 179 |
| SetModelview | procedure | 283 |
| SetProgramMatrix | procedure | 240 |
| SetProjection | procedure | 303 |
| SetTextureSlot | procedure | 271 |
| SetUniform | procedure | 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267 |
| SetViewport | procedure | 199 |
| SetWorld | procedure | 207 |
| Transform | procedure | 295 |
| Translate | procedure | 297 |