A collection is a container for several (optionally indexed) objects having the same vertex structure (vtype) and same uniforms type (utype). A collection allows to manipulate objects individually and each object can have its own set of uniforms provided they are a combination of floats.
vispy.visuals.collections.base_collection.
BaseCollection
Bases: object
object
append
An array whose dtype is compatible with self.vdtype
An array whose dtype is compatible with self.utype
An array whose dtype is compatible with self.idtype All index values must be between 0 and len(vertices)
If `itemsize is an integer, N, the array will be divided into elements of size N. If such partition is not possible, an error is raised.
If itemsize is 1-D array, the array will be divided into elements whose succesive sizes will be picked from itemsize. If the sum of itemsize values is different from array size, an error is raised.
itype
Indices dtype
utype
Uniforms dtype
vtype
Vertices dtype
Item
An item represent an object within a collection and is created on demand when accessing a specific object of the collection.
indices
uniforms
vertices
next_power_of_2
Return next power of 2 greater than or equal to n