| Trees | Indices | Help |
|---|
|
|
object --+
|
GLObject --+
|
ManagedObject
Base class for objects that can be created and deleted in OpenGL.
When a ManagedObject instance is garbage collected, the
corresponding OpenGL object is deleted as well.
For each ManagedObject subclass, the context keeps a
database of existing objects.
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
_generate_id = NotImplementedConstructor function. |
|||
_delete_id = NotImplementedDestructor function. |
|||
_type = NotImplementedAn optional parameter for _generate_id.
|
|||
_db = NotImplementedThe name of the corresponding object database in the Context. |
|||
|
|||
|
_id ID generated by OpenGL. |
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
Create a new
|
Delete the OpenGL object using _delete_id. Any errors will be ignored because the OpenGL module may already have been garbage collected when the interpreter exits. |
|
|||
_generate_idConstructor function. Example: If the function has an
|
_delete_idDestructor function. Example: If the function has an
|
_typeAn optional parameter for Example:
|
_dbThe name of the corresponding object database in the Context. Example:
|
|
|||
_idID generated by OpenGL. The ID is only unique per context. |
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Fri Mar 16 17:56:04 2012 | http://epydoc.sourceforge.net |