Download Now
Forums

    Reference Codebot.Render.Shaders.pas

    Part of the Codebot Render package

    The Codebot.Render.Shaders unit compiles and links OpenGL shaders. TVertexShader and TFragmentShader compile a shader from source, and TShaderProgram links the two together into a program you draw with. ErrorString tells you what went wrong when a shader doesn't compile or link. If your source has no #version directive, one is added to match 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 your assets.

    Items 35 items

    NameKindLine
    ShadowLightingconstant154
    ShadowPrecisionconstant147
    ShadowSamplesconstant148
    TFragmentShaderclass60
    Createconstructor62
    TShaderCollectionclass102
    Createconstructor107
    Progproperty111
    Sourceproperty109
    TShaderExtensionhelper116
    Shadersfunction119
    TShaderObjectclass16
    Createconstructor23
    ErrorObjectproperty28
    ErrorStringproperty26
    Handleproperty32
    Validproperty30
    TShaderProgramclass67
    Attachprocedure90
    Createconstructor75
    CreateFromAssetconstructor79
    CreateFromFileconstructor81, 83
    CreateFromSourceconstructor77
    Destroydestructor84
    Linkfunction92
    Popprocedure88
    Pushprocedure86
    UpdateMatrixprocedure94
    Activeproperty96
    TShaderSourceclass37
    Compilefunction46
    Destroydestructor42
    Sourceproperty48
    TVertexShaderclass53
    Createconstructor55