|
VisuTwin Canvas
C++ 3D Engine — Metal Backend
|
#include <framework/handlers/resourceLoader.h>
Public Member Functions | |
| std::unique_ptr< LoadedData > | load (const std::string &url) override |
| Public Member Functions inherited from visutwin::canvas::ResourceHandler | |
| virtual | ~ResourceHandler ()=default |
Reads raw file bytes and, for GLB files, also pre-parses the tinygltf model on the background thread. The main-thread callback only performs GPU resource creation (fast) rather than the full parse. For OBJ/STL etc. only raw bytes are read — parsing still runs on the main thread.
Definition at line 236 of file resourceLoader.h.
|
overridevirtual |
Load raw data from disk.
| url | Local file-system path. |
Implements visutwin::canvas::ResourceHandler.
Definition at line 236 of file resourceLoader.cpp.
References visutwin::canvas::GlbParser::loadImageData(), and visutwin::canvas::GlbParser::prepareFromModel().