le2d v0.4.3
2D game engine framework
 
Loading...
Searching...
No Matches
le::ITexture Class Referenceabstract

Concrete drawable Texture. More...

#include <le2d/resource/texture.hpp>

Inheritance diagram for le::ITexture:
le::ITextureBase le::IResource le::IAsset le::ITileSheet

Public Member Functions

virtual void overwrite (kvf::Bitmap const &bitmap)=0
 Write bitmap to image.
 
virtual auto load_and_write (std::span< std::byte const > compressed_image) -> bool=0
 Load a compressed bitmap and write to image.
 
- Public Member Functions inherited from le::ITextureBase
virtual auto get_image () const -> vk::ImageView=0
 
virtual auto get_size () const -> glm::ivec2=0
 
virtual auto descriptor_info () const -> vk::DescriptorImageInfo=0
 
- Public Member Functions inherited from le::IResource
virtual auto is_ready () const -> bool=0
 Check if resource is ready to use.
 

Detailed Description

Concrete drawable Texture.

Member Function Documentation

◆ load_and_write()

virtual auto le::ITexture::load_and_write ( std::span< std::byte const >  compressed_image) -> bool
pure virtual

Load a compressed bitmap and write to image.

Parameters
compressed_imageBytes of compressed image.
Returns
true if successfully decompressed.

◆ overwrite()

virtual void le::ITexture::overwrite ( kvf::Bitmap const &  bitmap)
pure virtual

Write bitmap to image.

Parameters
bitmapBitmap to write.

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