Ignore:
Timestamp:
Oct 1, 2012, 1:49:53 AM (8 years ago)
Author:
sam
Message:

gpu: add support for triangle strips and fans, and change the DrawElement
calls so that they take a number of vertices or indexes, not elements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gpu/vertexbuffer.h

    r1788 r1963  
    7373    {
    7474        Triangles,
     75        TriangleStrips,
     76        TriangleFans,
    7577        Points,
    7678    }
     
    185187
    186188    void Bind();
     189
     190    /* Draw elements. See MeshPrimitive for a list of all available
     191     * types. Both skip and count are numbers of vertices, not primitives. */
    187192    void DrawElements(MeshPrimitive type, int skip, int count);
     193
     194    /* Draw elements. See MeshPrimitive for a list of all available
     195     * types. Both skip and count are numbers of indices, not primitives. */
    188196    void DrawIndexedElements(MeshPrimitive type, int vbase, int vskip,
    189197                             int vcount, int skip, int count);
     198
    190199    void Unbind();
    191200    void SetStream(VertexBuffer *vb, ShaderAttrib attr1,
Note: See TracChangeset for help on using the changeset viewer.