Companion
object Companion
Generates various standard 3D meshes.
When generating a mesh using these functions, the mesh data is automatically uploaded to the GPU. Therefore, there is no need to call upload manually. As a result, the generated meshes are ready for rendering immediately after creation. However, you should not call this method in the Window.lifecycle block, as it will repeatedly generate and upload the mesh on every frame, leading to performance issues. Instead, generate the mesh once outside the lifecycle block and reuse it as needed.