Texture with a TileSet.
More...
#include <le2d/resource/texture.hpp>
|
| auto | get_uv (TileId const id) const -> kvf::UvRect |
| | Get the UV coordinates for a given Tile ID.
|
| |
| 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.
|
| |
◆ get_uv()
| auto le::ITileSheet::get_uv |
( |
TileId const |
id | ) |
const -> kvf::UvRect |
|
inline |
Get the UV coordinates for a given Tile ID.
- Parameters
-
- Returns
- UV rect for tile if found, else uv_rect_v.
◆ tile_set
| TileSet le::ITileSheet::tile_set {} |
The documentation for this class was generated from the following file: