Download Now

    Reference TShaderObject

    Declared in Codebot.Render.Shaders.pas on line 15

    TShaderObject is the base class of shaders and shader programs
      TShaderObject = class(TContextManagedObject)
      public
        constructor Create;
        { ErrorString contains the error if any generated when a shader is compiled
          or linked }
        property ErrorString: string read FErrorString;
        { ErrorObject referrs to the shader or program generating the error }
        property ErrorObject: TShaderObject read FErrorObject;
        { Valid is true if the shader is compiled and linked }
        property Valid: Boolean read FValid;
        { The underlying handle of the object }
        property Handle: Integer read FHandle;
      end;

    See also

    TContextManagedObject in Codebot.Render.Contexts.pas