Class Tex2D
Defined in File Tex2D.hpp
Inheritance Relationships
Base Type
public Cacao::Asset
(Class Asset)
Class Documentation
-
class Tex2D : public Cacao::Asset
Asset type for 2D textures.
Public Functions
-
virtual void Realize()
Synchronously convert the image data into a form suitable for rendering.
- Throws:
BadRealizeStateException – If the texture is already realized
BadInitStateException – If the graphics backend is not initialized or connected
-
virtual std::shared_future<void> RealizeAsync()
Asynchronously convert the image data into a form suitable for rendering.
- Throws:
BadRealizeStateException – If the texture is already realized
BadInitStateException – If the graphics backend is not initialized or connected
- Returns:
A future that will resolve when realization is complete or fails
-
virtual void Realize()