Download Now

    Reference TContextCollection

    Declared in Codebot.Render.Contexts.pas on line 109

    Other units may define TContextCollection extensions to provide managed access to objects such as shaders, textures, effects, and so on.
    Class helpers can add to a context using functions such as:
    function TShaderExtention.Shaders: TShaderCollection;
    function TTextureExtention.Textures: TTextureCollection;
      TContextCollection = class
      protected
        function GetObject(const Name: string): TContextManagedObject;
        property Objects[AName: string]: TContextManagedObject read GetObject;
      public
        { Collection name must not be blank and must be unique }
        constructor Create(const Name: string);
        destructor Destroy; override;
        { The read only name of the collection }
        property Name: string read FName;
      end;

    See also