19 #ifndef FASTUIDRAW_IMAGE_HPP 20 #define FASTUIDRAW_IMAGE_HPP 31 class ImageSourceBase;
252 all_same_color(
ivec2 location,
int square_size,
u8vec4 *dst)
const = 0;
261 number_levels(
void)
const = 0;
286 fetch_texels(
unsigned int level,
ivec2 location,
287 unsigned int w,
unsigned int h,
322 all_same_color(
ivec2 location,
int square_size,
u8vec4 *dst)
const;
326 number_levels(
void)
const;
330 fetch_texels(
unsigned int mimpap_level,
ivec2 location,
331 unsigned int w,
unsigned int h,
Image(ImageAtlas &atlas, int w, int h, unsigned int m, enum type_t type, uint64_t handle, enum format_t fmt, const reference_counted_ptr< ResourceReleaseAction > &action=reference_counted_ptr< ResourceReleaseAction >())
all classes and functions of FastUIDraw are in the namespace fastuidraw.
A wrapper over a pointer to implement reference counting.
uint64_t bindless_handle(void) const
ivec3 master_index_tile(void) const
An Image represents an image comprising of RGBA8 values. The texel values themselves are stored in a ...
An implementation of ImageSourceBase where the data is backed by a c_array<const u8vec4> data...
vec2 master_index_tile_dims(void) const
virtual void action(void)=0
unsigned int number_mipmap_levels(void) const
A c_array is a wrapper over a C pointer with a size parameter to facilitate bounds checking and provi...
A common base class to use for resources that need to be saved opaquely.
Defines default reference counting base classes.
An ImageAtlas is a common location to place images of an application.
float dimensions_index_divisor(void) const
ivec2 dimensions(void) const
enum format_t format(void) const
unsigned int number_index_lookups(void) const
file reference_counted.hpp
ImageSourceBase defines the inteface for copying texel data from a source (CPU memory, a file, etc) to an AtlasColorBackingStoreBase derived object.