Download Now

    Reference TVertexBuffer

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

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

    See also

    Float in Codebot.System.pas
    TVec3 in Codebot.Geometry.pas