Download Now

    Reference TTextureBuffer

    Declared in Codebot.Render.Buffers.pas on line 17

    TTextureBuffer is used to render to a texture
      TTextureBuffer = class(TContextManagedObject)
      public
        { Create a new texture buffer using a specific size in pixels }
        constructor Create(Width, Height: Integer);
        destructor Destroy; override;
        { Change the size of the buffer }
        procedure Resize(Width, Height: Integer);
        { Start recording to a texture }
        procedure StartRecording;
        { Stop recording leaving texture with the rendered pixels }
        procedure StopRecording;
        { Texture is the location where the render is recorded }
        property Texture: Integer read FTexture;
        { The width of the texture in pixels }
        property Width: Integer read FWidth;
        { The height of the Integer in pixels }
        property Height: Integer read FHeight;
      end;

    See also

    TContextManagedObject in Codebot.Render.Contexts.pas