Public Member Functions | |
| None | __init__ (self, "App" app, str|Path path, *, str|Path textures="", str|Path texture_directory="", float scale=1.0) |
| A loadable 3D model with one-call setup. | |
| None | cleanup (self, "App" app) |
| None | close (self) |
| None | shaders (self, "App" app, str|Path vertex, str|Path fragment) |
Public Attributes | |
| native = None | |
Explicitly free model GPU resources before closing app. | |
Protected Attributes | |
| _app = app | |
| Load a model and retain its application lifetime. | |
Definition at line 154 of file graphics.py.
| None mxvk_wrap.graphics.Model.__init__ | ( | self, | |
| "App" | app, | ||
| str | Path | path, | ||
| * | , | ||
| str | Path | textures = "", | ||
| str | Path | texture_directory = "", | ||
| float | scale = 1.0 ) |
A loadable 3D model with one-call setup.
Definition at line 157 of file graphics.py.
| None mxvk_wrap.graphics.Model.cleanup | ( | self, | |
| "App" | app ) |
Definition at line 174 of file graphics.py.
| None mxvk_wrap.graphics.Model.close | ( | self | ) |
Definition at line 180 of file graphics.py.
| None mxvk_wrap.graphics.Model.shaders | ( | self, | |
| "App" | app, | ||
| str | Path | vertex, | ||
| str | Path | fragment ) |
Definition at line 170 of file graphics.py.
|
protected |
Load a model and retain its application lifetime.
Free model GPU resources and drop its native handle.
Definition at line 159 of file graphics.py.
| mxvk_wrap.graphics.Model.native = None |
Explicitly free model GPU resources before closing app.
Definition at line 160 of file graphics.py.