picogl.protocols
Submodules
Classes
Protocol for OpenGL buffer/VAO objects that can be bound, drawn, and deleted. |
Package Contents
- class picogl.protocols.DrawableBuffer[source]
Bases:
ProtocolProtocol for OpenGL buffer/VAO objects that can be bound, drawn, and deleted.
Implementors must provide bind(), unbind(), draw(), and delete(). Optional: is_valid() for validity checks; __enter__/__exit__ for context-manager support (with obj: obj.draw()).
Legacy VBO groups and modern VAOs (AtomVAO, BondsVAO, RibbonVAO, CalphasVAO, RibbonVBG, etc.) conform to this protocol.