Table Of Contents
New in version 1.2.0.
This class manages a registry of all created graphics instructions. It has the ability to flush and delete them.
(internal) Add a callback to be called after the whole graphics context has been reloaded. This is where you can reupload your custom data into the GPU.
- callback: func(context) -> return None
The first parameter will be the context itself
- before: boolean, defaults to False
If True, the callback will be executed before all the reloading processes. Use it if you want to clear your cache for example.
Changed in version 1.4.0: before parameter added.