Download Now

    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

    NameKindLine
    TFragmentShaderclass59
    Createconstructor61
    TShaderCollectionclass101
    Createconstructor106
    Progproperty110
    Sourceproperty108
    TShaderExtensionhelper115
    Shadersfunction118
    TShaderObjectclass15
    Createconstructor22
    ErrorObjectproperty27
    ErrorStringproperty25
    Handleproperty31
    Validproperty29
    TShaderProgramclass66
    Attachprocedure89
    Createconstructor74
    CreateFromAssetconstructor78
    CreateFromFileconstructor80, 82
    CreateFromSourceconstructor76
    Destroydestructor83
    Linkfunction91
    Popprocedure87
    Pushprocedure85
    UpdateMatrixprocedure93
    Activeproperty95
    TShaderSourceclass36
    Compilefunction45
    Destroydestructor41
    Sourceproperty47
    TVertexShaderclass52
    Createconstructor54