|
Flint Engine
Modular C++20 2D game engine powered by SDL3
|
| GPUTexture & Flint::AssetManager::getTexture | ( | const std::string & | path | ) |
Return a GPU texture for path, uploading it on first access.
Subsequent calls with the same path return the cached texture without re-uploading.
| path | Asset path relative to the loader's root. |
| std::runtime_error | if the asset cannot be retrieved or uploaded. |