Reference Codebot.Render.Shaders.pas
Part of the Codebot Render package
Each version implies all earlier versions
The Codebot.Render.Shaders unit compiles and links OpenGL shaders. TVertexShader and TFragmentShader compile a shader from source code, and TShaderProgram links the two together into a program used for drawing. Source code without a #version directive is given one that matches the OpenGL version chosen in render.inc. Ctx.Shaders holds shader programs by name, loading name.vert and name.frag from the shaders folder of the assets.
Items 32 items
| Name | Kind | Line |
|---|---|---|
| TFragmentShader | class | 59 |
| Create | constructor | 61 |
| TShaderCollection | class | 101 |
| Create | constructor | 106 |
| Prog | property | 110 |
| Source | property | 108 |
| TShaderExtension | helper | 115 |
| Shaders | function | 118 |
| TShaderObject | class | 15 |
| Create | constructor | 22 |
| ErrorObject | property | 27 |
| ErrorString | property | 25 |
| Handle | property | 31 |
| Valid | property | 29 |
| TShaderProgram | class | 66 |
| Attach | procedure | 89 |
| Create | constructor | 74 |
| CreateFromAsset | constructor | 78 |
| CreateFromFile | constructor | 80, 82 |
| CreateFromSource | constructor | 76 |
| Destroy | destructor | 83 |
| Link | function | 91 |
| Pop | procedure | 87 |
| Push | procedure | 85 |
| UpdateMatrix | procedure | 93 |
| Active | property | 95 |
| TShaderSource | class | 36 |
| Compile | function | 45 |
| Destroy | destructor | 41 |
| Source | property | 47 |
| TVertexShader | class | 52 |
| Create | constructor | 54 |