VertexSpecification.addGeneric

Adds a generic attribute to the vertex specification.

  1. void addGeneric(GLenum glType, int n, GLuint location, GLboolean normalize)
  2. void addGeneric(GLenum glType, int n, string name, GLboolean normalize)
    class VertexSpecification
    void
    addGeneric
    (
    GLenum glType
    ,
    int n
    ,
    string name
    ,
    GLboolean normalize = GL_FALSE
    )

Parameters

n int

1, 2, 3 or 4, is the number of components of the attribute; For compatibility, you should not define more than 16 attributes

Meta