Concrete drawable Texture.
More...
#include <le2d/resource/texture.hpp>
|
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.
|
|
virtual auto | get_image () const -> vk::ImageView=0 |
|
virtual auto | get_size () const -> glm::ivec2=0 |
|
virtual auto | descriptor_info () const -> vk::DescriptorImageInfo=0 |
|
virtual auto | is_ready () const -> bool=0 |
| Check if resource is ready to use.
|
|
Concrete drawable Texture.
◆ 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_image | Bytes 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
-
The documentation for this class was generated from the following file: