Download Now

    Reference TFlatVertexBuffer

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

    TFlatVertexBuffer is a buffer of 2D positions
      TFlatVertexBuffer = class(TDrawingBuffer<TFlatVertex>)
      protected
        function CountAttributes: Integer; override;
        procedure BindAttributes; override;
      public
        { Add a vertex, returning the buffer so calls can be chained }
        function Add(const V: TVec2): TFlatVertexBuffer; overload;
        function Add(X, Y: Float): TFlatVertexBuffer; overload;
      end;

    See also

    Float in Codebot.System.pas
    TVec2 in Codebot.Geometry.pas