Class image_handle

Class Documentation

class legion::core::image_handle

Save to pass around handle to a raw image in the image cache.

Public Functions

math::ivec2 size()
const std::vector<math::color> &read_colors()

Convert the binary image representation to a more usable representation if it hasn’t been converted before and return the new representation.


const std::vector<math::color>& List with all the colors in the image.

std::pair<async::rw_spinlock&, image&> get_raw_image()

Get the image and the attached lock. Will return invalid_image if the handle was invalid.

void destroy()
inline bool operator==(const image_handle &other)
inline operator id_type()

Public Members

id_type id