Module Expr Str Assign NameStore Str Assign NameStore Str Import alias Import alias ImportFrom alias ImportFrom alias Assign NameStore Dict NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Dict FunctionDef arguments args NameParam NameParam defaults body Return BinOpAdd BinOpBitAnd BinOpSub NameLoad Num UnaryOpInvert BinOpSub NameLoad Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Num Assign NameStore Num For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad AugAssignAdd NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad For NameStore NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Num For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad AugAssignAdd NameStore BinOpMult NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign TupleStore NameStore NameStore SubscriptLoad NameLoad Index NameLoad Return Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert NameLoad BinOpMod Str NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad Assign NameStore TupleLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad orelse If NameLoad body Assign NameStore NameLoad Assign NameStore TupleLoad Call NameLoad NameLoad NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad NameLoad Index NameLoad If AttributeLoad NameLoad attr body Assert CompareEq NameLoad AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Assign NameStore TupleLoad NameLoad orelse Assign NameStore TupleLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad TupleLoad NameLoad NameLoad Return Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assert CompareIn NameLoad TupleLoad Num Num Num Num Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpMult NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore BinOpMult AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMult AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMult AttributeLoad NameLoad attr NameLoad If BoolOpOr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse AugAssignAdd NameStore AttributeLoad NameLoad attr AugAssignSub NameStore AttributeLoad NameLoad attr Assign NameStore BinOpFloorDiv AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpFloorDiv AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr BinOpSub BinOpMult NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore BinOpMult AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMult AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMult AttributeLoad NameLoad attr NameLoad Assign NameStore Call BinOpMult AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Slice NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assert CompareIn NameLoad TupleLoad Num Num Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Num FunctionDef arguments args NameParam NameParam defaults body Assert CompareIn NameLoad TupleLoad NameLoad NameLoad NameLoad Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Num FunctionDef arguments args NameParam NameParam defaults body Assert CompareIn NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Num FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assert CompareIn NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assert CompareIn NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad BinOpAdd NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assert CompareGt NameLoad Num Str Assert CompareIn NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Assign NameStore Dict Str Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad
N/A N/A Access byte arrays as arrays of vertex attributes.

Use `create_attribute` to create an attribute accessor given a simple format
string.  Alternatively, the classes may be constructed directly.

Attribute format strings
========================

An attribute format string specifies the format of a vertex attribute.  Format
strings are accepted by the `create_attribute` function as well as most
methods in the `pyglet.graphics` module.

Format strings have the following (BNF) syntax::

    attribute ::= ( name | index 'g' 'n'? | texture 't' ) count type

``name`` describes the vertex attribute, and is one of the following
constants for the predefined attributes:

``c``
    Vertex color
``e``
    Edge flag
``f``
    Fog coordinate
``n``
    Normal vector
``s``
    Secondary color
``t``
    Texture coordinate
``v``
    Vertex coordinate

You can alternatively create a generic indexed vertex attribute by
specifying its index in decimal followed by the constant ``g``.  For
example, ``0g`` specifies the generic vertex attribute with index 0.
If the optional constant ``n`` is present after the ``g``, the
attribute is normalised to the range ``[0, 1]`` or ``[-1, 1]`` within
the range of the data type.

Texture coordinates for multiple texture units can be specified with the 
texture number before the constant 't'.  For example, ``1t`` gives the
texture coordinate attribute for texture unit 1.

``count`` gives the number of data components in the attribute.  For
example, a 3D vertex position has a count of 3.  Some attributes
constrain the possible counts that can be used; for example, a normal
vector must have a count of 3.

``type`` gives the data type of each component of the attribute.  The
following types can be used:

``b``
    ``GLbyte``
``B``
    ``GLubyte``
``s``
    ``GLshort``
``S``
    ``GLushort``
``i``
    ``GLint``
``I``
    ``GLuint``
``f``
    ``GLfloat``
``d``
    ``GLdouble``

Some attributes constrain the possible data types; for example,
normal vectors must use one of the signed data types.  The use of
some data types, while not illegal, may have severe performance
concerns.  For example, the use of ``GLdouble`` is discouraged,
and colours should be specified with ``GLubyte``.

Whitespace is prohibited within the format string.

Some examples follow:

``v3f``
    3-float vertex position
``c4b``
    4-byte colour
``1eb``
    Edge flag
``0g3f``
    3-float generic vertex attribute 0
``1gn1i``
    Integer generic vertex attribute 1, normalized to [-1, 1]
``2gn4B``
    4-byte generic vertex attribute 2, normalized to [0, 1] (because
    the type is unsigned)
``3t2f``
    2-float texture coordinate for texture unit 3.

 N/A __docformat__ restructuredtext N/A __version__ $Id: $ N/A ctypes N/A re pyglet.gl * pyglet.graphics vertexbuffer N/A _c_types N/A GL_BYTE GL_UNSIGNED_BYTE GL_SHORT GL_UNSIGNED_SHORT GL_INT GL_UNSIGNED_INT GL_FLOAT GL_DOUBLE N/A ctypes c_byte N/A ctypes c_ubyte N/A ctypes c_short N/A ctypes c_ushort N/A ctypes c_int N/A ctypes c_uint N/A ctypes c_float N/A ctypes c_double N/A _gl_types N/A b B s S i I f d GL_BYTE GL_UNSIGNED_BYTE GL_SHORT GL_UNSIGNED_SHORT GL_INT GL_UNSIGNED_INT GL_FLOAT GL_DOUBLE N/A _attribute_format_re N/A N/A re compile 
    (?P<name>
       [cefnstv] | 
       (?P<generic_index>[0-9]+) g (?P<generic_normalized>n?) |
       (?P<texcoord_texture>[0-9]+) t)
    (?P<count>[1234])
    (?P<type>[bBsSiIfd])
 N/A re VERBOSE N/A _attribute_cache N/A _align N/A N/A v align N/A N/A N/A N/A N/A N/A v 1 N/A N/A align 1 align N/A interleave_attributes N/A N/A attributes N/A N/A N/A Interleave attribute offsets.

    Adjusts the offsets and strides of the given attributes so that
    they are interleaved.  Alignment constraints are respected.

    :Parameters:
        `attributes` : sequence of `AbstractAttribute`
            Attributes to interleave in-place.

     N/A stride 0 N/A max_size 0 N/A attribute attributes N/A N/A stride N/A _align stride N/A attribute align N/A N/A attribute offset stride N/A stride N/A attribute size N/A max_size N/A max max_size N/A attribute size N/A stride N/A _align stride max_size N/A attribute attributes N/A N/A N/A attribute stride stride N/A serialize_attributes N/A N/A count attributes N/A N/A N/A Serialize attribute offsets.
    
    Adjust the offsets of the given attributes so that they are
    packed serially against each other for `count` vertices.

    :Parameters:
        `count` : int
            Number of vertices.
        `attributes` : sequence of `AbstractAttribute`
            Attributes to serialize in-place.

     N/A offset 0 N/A attribute attributes N/A N/A offset N/A _align offset N/A attribute align N/A N/A attribute offset offset N/A offset N/A count N/A attribute stride N/A create_attribute N/A N/A format N/A N/A N/A Create a vertex attribute description from a format string.
    
    The initial stride and offset of the attribute will be 0.

    :Parameters:
        `format` : str
            Attribute format string.  See the module summary for details.

    :rtype: `AbstractAttribute`
     N/A N/A N/A N/A cls args N/A _attribute_cache N/A format N/A N/A cls args N/A N/A N/A KeyError N/A N/A N/A match N/A N/A _attribute_format_re match format N/A match N/A Invalid attribute format %r format N/A count N/A int N/A N/A match group count N/A gl_type N/A _gl_types N/A N/A N/A match group type N/A generic_index N/A N/A match group generic_index N/A texcoord_texture N/A N/A match group texcoord_texture N/A generic_index N/A N/A normalized N/A N/A match group generic_normalized N/A attr_class GenericAttribute N/A args N/A N/A int generic_index normalized count gl_type N/A N/A texcoord_texture N/A N/A attr_class MultiTexCoordAttribute N/A args N/A N/A int texcoord_texture count gl_type N/A N/A name N/A N/A match group name N/A attr_class N/A _attribute_classes N/A name N/A N/A attr_class _fixed_count N/A N/A N/A count N/A attr_class _fixed_count N/A Attributes named "%s" must have count of %d N/A name N/A attr_class _fixed_count N/A args N/A gl_type N/A N/A args N/A count gl_type N/A N/A _attribute_cache N/A format N/A attr_class args N/A N/A attr_class args N/A AbstractAttribute N/A object N/A N/A Abstract accessor for an attribute in a mapped buffer.
     N/A _fixed_count None __init__ N/A N/A self count gl_type N/A N/A N/A Create the attribute accessor.

        :Parameters:
            `count` : int
                Number of components in the attribute.
            `gl_type` : int
                OpenGL type enumerant; for example, ``GL_FLOAT``

         N/A N/A count N/A 1 2 3 4 Component count out of range N/A N/A self gl_type gl_type N/A N/A self c_type N/A _c_types N/A gl_type N/A N/A self count count N/A N/A self align N/A N/A ctypes sizeof N/A self c_type N/A N/A self size N/A count N/A self align N/A N/A self stride N/A self size N/A N/A self offset 0 N/A enable N/A N/A self N/A N/A N/A Enable the attribute using ``glEnableClientState``. N/A N/A NotImplementedError abstract N/A set_pointer N/A N/A self offset N/A N/A N/A Setup this attribute to point to the currently bound buffer at
        the given offset.

        ``offset`` should be based on the currently bound buffer's ``ptr``
        member.

        :Parameters:
            `offset` : int
                Pointer offset to the currently bound buffer for this
                attribute.

         N/A N/A NotImplementedError abstract N/A get_region N/A N/A self buffer start count N/A N/A N/A Map a buffer region using this attribute as an accessor.

        The returned region can be modified as if the buffer was a contiguous
        array of this attribute (though it may actually be interleaved or
        otherwise non-contiguous).

        The returned region consists of a contiguous array of component
        data elements.  For example, if this attribute uses 3 floats per
        vertex, and the `count` parameter is 4, the number of floats mapped
        will be ``3 * 4 = 12``.

        :Parameters:
            `buffer` : `AbstractMappable`
                The buffer to map.
            `start` : int
                Offset of the first vertex to map.
            `count` : int
                Number of vertices to map

        :rtype: `AbstractBufferRegion`
         N/A byte_start N/A N/A self stride start N/A byte_size N/A N/A self stride count N/A array_count N/A N/A self count count N/A N/A N/A N/A self stride N/A self size N/A array_count N/A N/A ptr_type N/A N/A ctypes POINTER N/A N/A self c_type array_count N/A N/A N/A buffer get_region byte_start byte_size ptr_type N/A N/A byte_start N/A self offset N/A byte_size N/A self offset N/A elem_stride N/A N/A self stride N/A N/A ctypes sizeof N/A self c_type N/A elem_offset N/A N/A self offset N/A N/A ctypes sizeof N/A self c_type N/A ptr_type N/A N/A ctypes POINTER N/A N/A self c_type N/A N/A count elem_stride elem_offset N/A region N/A N/A buffer get_region byte_start byte_size ptr_type N/A N/A N/A vertexbuffer IndirectArrayRegion region array_count N/A self count elem_stride N/A set_region N/A N/A self buffer start count data N/A N/A N/A Set the data over a region of the buffer.

        :Parameters:
            `buffer` : AbstractMappable`
                The buffer to modify.
            `start` : int
                Offset of the first vertex to set.
            `count` : int
                Number of vertices to set.
            `data` : sequence
                Sequence of data components.

         N/A N/A N/A self stride N/A self size N/A N/A byte_start N/A N/A self stride start N/A byte_size N/A N/A self stride count N/A array_count N/A N/A self count count N/A data N/A N/A N/A self c_type array_count data N/A N/A N/A buffer set_data_region data byte_start byte_size N/A N/A region N/A N/A self get_region buffer start count N/A N/A region N/A data N/A N/A ColorAttribute N/A AbstractAttribute N/A N/A Color vertex attribute. N/A plural colors __init__ N/A N/A self count gl_type N/A N/A N/A N/A count N/A 3 4 Color attributes must have count of 3 or 4 N/A N/A N/A N/A super ColorAttribute self __init__ count gl_type N/A enable N/A N/A self N/A N/A N/A N/A glEnableClientState GL_COLOR_ARRAY N/A set_pointer N/A N/A self pointer N/A N/A N/A N/A glColorPointer N/A self count N/A self gl_type N/A self stride N/A N/A self offset pointer N/A N/A EdgeFlagAttribute N/A AbstractAttribute N/A N/A Edge flag attribute. N/A plural edge_flags N/A _fixed_count 1 __init__ N/A N/A self gl_type N/A N/A N/A N/A gl_type N/A GL_BYTE GL_UNSIGNED_BYTE GL_BOOL Edge flag attribute must have boolean type N/A N/A N/A N/A super EdgeFlagAttribute self __init__ 1 gl_type N/A enable N/A N/A self N/A N/A N/A N/A glEnableClientState GL_EDGE_FLAG_ARRAY N/A set_pointer N/A N/A self pointer N/A N/A N/A N/A glEdgeFlagPointer N/A self stride N/A N/A self offset pointer N/A N/A FogCoordAttribute N/A AbstractAttribute N/A N/A Fog coordinate attribute. N/A plural fog_coords __init__ N/A N/A self count gl_type N/A N/A N/A N/A N/A N/A super FogCoordAttribute self __init__ count gl_type N/A enable N/A N/A self N/A N/A N/A N/A glEnableClientState GL_FOG_COORD_ARRAY N/A set_pointer N/A N/A self pointer N/A N/A N/A N/A glFogCoordPointer N/A self count N/A self gl_type N/A self stride N/A N/A self offset pointer N/A N/A NormalAttribute N/A AbstractAttribute N/A N/A Normal vector attribute. N/A plural normals N/A _fixed_count 3 __init__ N/A N/A self gl_type N/A N/A N/A N/A gl_type N/A GL_BYTE GL_SHORT GL_INT GL_FLOAT GL_DOUBLE Normal attribute must have signed type N/A N/A N/A N/A super NormalAttribute self __init__ 3 gl_type N/A enable N/A N/A self N/A N/A N/A N/A glEnableClientState GL_NORMAL_ARRAY N/A set_pointer N/A N/A self pointer N/A N/A N/A N/A glNormalPointer N/A self gl_type N/A self stride N/A N/A self offset pointer N/A N/A SecondaryColorAttribute N/A AbstractAttribute N/A N/A Secondary color attribute. N/A plural secondary_colors N/A _fixed_count 3 __init__ N/A N/A self gl_type N/A N/A N/A N/A N/A N/A super SecondaryColorAttribute self __init__ 3 gl_type N/A enable N/A N/A self N/A N/A N/A N/A glEnableClientState GL_SECONDARY_COLOR_ARRAY N/A set_pointer N/A N/A self pointer N/A N/A N/A N/A glSecondaryColorPointer 3 N/A self gl_type N/A self stride N/A N/A self offset pointer N/A N/A TexCoordAttribute N/A AbstractAttribute N/A N/A Texture coordinate attribute. N/A plural tex_coords __init__ N/A N/A self count gl_type N/A N/A N/A N/A gl_type N/A GL_SHORT GL_INT GL_INT GL_FLOAT GL_DOUBLE Texture coord attribute must have non-byte signed type N/A N/A N/A N/A super TexCoordAttribute self __init__ count gl_type N/A enable N/A N/A self N/A N/A N/A N/A glEnableClientState GL_TEXTURE_COORD_ARRAY N/A set_pointer N/A N/A self pointer N/A N/A N/A N/A glTexCoordPointer N/A self count N/A self gl_type N/A self stride N/A N/A self offset pointer N/A convert_to_multi_tex_coord_attribute N/A N/A self N/A N/A N/A Changes the class of the attribute to `MultiTexCoordAttribute`.
         N/A N/A self __class__ MultiTexCoordAttribute N/A N/A self texture 0 N/A N/A MultiTexCoordAttribute N/A AbstractAttribute N/A N/A Texture coordinate attribute. __init__ N/A N/A self texture count gl_type N/A N/A N/A N/A gl_type N/A GL_SHORT GL_INT GL_INT GL_FLOAT GL_DOUBLE Texture coord attribute must have non-byte signed type N/A N/A self texture texture N/A N/A N/A N/A super MultiTexCoordAttribute self __init__ count gl_type N/A enable N/A N/A self N/A N/A N/A N/A glClientActiveTexture N/A GL_TEXTURE0 N/A self texture N/A N/A glEnableClientState GL_TEXTURE_COORD_ARRAY N/A set_pointer N/A N/A self pointer N/A N/A N/A N/A glTexCoordPointer N/A self count N/A self gl_type N/A self stride N/A N/A self offset pointer N/A N/A VertexAttribute N/A AbstractAttribute N/A N/A Vertex coordinate attribute. N/A plural vertices __init__ N/A N/A self count gl_type N/A N/A N/A N/A count 1 Vertex attribute must have count of 2, 3 or 4 N/A N/A gl_type N/A GL_SHORT GL_INT GL_INT GL_FLOAT GL_DOUBLE Vertex attribute must have signed type larger than byte N/A N/A N/A N/A super VertexAttribute self __init__ count gl_type N/A enable N/A N/A self N/A N/A N/A N/A glEnableClientState GL_VERTEX_ARRAY N/A set_pointer N/A N/A self pointer N/A N/A N/A N/A glVertexPointer N/A self count N/A self gl_type N/A self stride N/A N/A self offset pointer N/A N/A GenericAttribute N/A AbstractAttribute N/A N/A Generic vertex attribute, used by shader programs. __init__ N/A N/A self index normalized count gl_type N/A N/A N/A N/A self normalized N/A bool normalized N/A N/A self index index N/A N/A N/A N/A super GenericAttribute self __init__ count gl_type N/A enable N/A N/A self N/A N/A N/A N/A glEnableVertexAttribArray N/A self index N/A set_pointer N/A N/A self pointer N/A N/A N/A N/A glVertexAttribPointer N/A self index N/A self count N/A self gl_type N/A self normalized N/A self stride N/A N/A self offset pointer N/A N/A N/A _attribute_classes N/A c e f n s t v ColorAttribute EdgeFlagAttribute FogCoordAttribute NormalAttribute SecondaryColorAttribute TexCoordAttribute VertexAttribute