Allows simple creation of basic geometry in a style similar to OpenGL immediate mode. Can be used to construct a gl::Batch for better performance, or can draw() directly. Used with a series of calls to color() , normal() , and/or texCoord() , followed by a call to vertex() , per-vertex.


Public Member Functions


Static Public Member Functions


Protected Member Functions

  • void
    addVertex (const vec4 &v)
  • void
    setupBuffers ()
  • size_t
    getNumVertices () const override
  • size_t
    getNumIndices () const override
  • getPrimitive () const override
  • uint8_t
    getAttribDims (geom::Attrib attr) const override
  • void
    loadInto (geom::Target *target, const geom::AttribSet &requestedAttribs) const override
  • clone () const override
  • getAvailableAttribs () const override
  • void
    forceCopyIndicesTrianglesImpl (T *dest) const

Protected Attributes

  • GLenum
    mPrimType
  • std::vector< vec4 >
    mVertices
  • std::vector< vec3 >
    mNormals
  • std::vector< ColorAf >
    mColors
  • std::vector< vec4 >
    mTexCoords0
  • std::vector< vec4 >
    mTexCoords1
  • bool
    mOwnsBuffers
  • bool
    mForceUpdate
  • Vao *
    mVao
  • mVaoStorage
  • mVbo