VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
visutwin::canvas::TextureResourceHandler Class Reference

#include <framework/handlers/resourceLoader.h>

Inheritance diagram for visutwin::canvas::TextureResourceHandler:
[legend]

Public Member Functions

std::unique_ptr< LoadedDataload (const std::string &url) override
Public Member Functions inherited from visutwin::canvas::ResourceHandler
virtual ~ResourceHandler ()=default

Detailed Description

Reads an image file and decodes pixels using stb_image on the background thread. The main-thread callback only needs to create the Texture object and upload to the GPU.

Definition at line 226 of file resourceLoader.h.

Member Function Documentation

◆ load()

std::unique_ptr< LoadedData > visutwin::canvas::TextureResourceHandler::load ( const std::string & url)
overridevirtual

The documentation for this class was generated from the following files: