Package glitter :: Package arrays :: Module vertexarray :: Class VertexArray
[hide private]
[frames] | no frames]

Class VertexArray

source code

              object --+        
                       |        
  utils.objects.GLObject --+    
                           |    
 utils.objects.ManagedObject --+
                               |
              object --+       |
                       |       |
  utils.objects.GLObject --+   |
                           |   |
              object --+   |   |
                       |   |   |
utils.objects.StateMixin --+   |
                           |   |
utils.objects.BindableObject --+
                               |
                              VertexArray

Instance Methods [hide private]
 
__init__(self, *attributes, **kwargs)
Create a new vertex array.
source code
 
__getitem__(self, index) source code
 
__setitem__(self, index, value) source code
 
__delitem__(self, index) source code
 
draw(self, mode=None, count=None, first=0, instances=None, index=None) source code

Inherited from utils.objects.ManagedObject: __del__

Inherited from utils.objects.BindableObject: __enter__, __exit__, bind

Inherited from utils.objects.StateMixin: __call__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  _generate_id = _libraries ['libGL.so.1'].glGenVertexArrays
Constructor function.
  _delete_id = _libraries ['libGL.so.1'].glDeleteVertexArrays
Destructor function.
  _db = 'vertex_arrays'
The name of the corresponding object database in the Context.
  _binding = 'vertex_array_binding'
Name of the corresponding property in the Context.

Inherited from utils.objects.ManagedObject (private): _type

Instance Variables [hide private]

Inherited from utils.objects.ManagedObject (private): _id

Inherited from utils.objects.BindableObject (private): _stack

Inherited from utils.objects.GLObject (private): _context

Properties [hide private]
  elements

Inherited from utils.objects.GLObject: context

Inherited from object: __class__

Method Details [hide private]

__init__(self, *attributes, **kwargs)
(Constructor)

source code 

Create a new vertex array.

Parameters:
  • attributes (list of ArrayBuffers or numpy.ndarrays) - Buffers to bind to vertex attributes.
  • kwargs (dict) - Named arguments.
  • context (Context) - The context in which to create the vertex array.
  • elements (ElementArrayBuffer or numpy.ndarray) - A buffer containing the element indices.
Overrides: object.__init__

Property Details [hide private]

elements

Get Method:
unreachable.elements(self)
Set Method:
unreachable.elements(self, elements)
Delete Method:
unreachable.elements(self)