picogl.renderer.legacy_mesh_loader
Load an OBJ into a LegacyGLMesh (CPU-side; upload after a GL context exists).
Functions
|
Load an OBJ file as a legacy mesh. |
Module Contents
- picogl.renderer.legacy_mesh_loader.load_legacy_mesh(path: pathlib.Path | str, color: tuple[float, float, float] = (1.0, 0.0, 0.0), *, upload: bool = False) picogl.renderer.legacy_glmesh.LegacyGLMesh[source]
Load an OBJ file as a legacy mesh.
- Parameters:
path – Path to an
.objfile.color – Solid RGB color applied to every vertex.
upload – If True, call
mesh.upload()immediately (requires a current GL context). Prefer False and upload after GLUT/Qt creates a context.