19 #ifndef FASTUIDRAW_PAINTER_IMAGE_BRUSH_SHADER_DATA_HPP 20 #define FASTUIDRAW_PAINTER_IMAGE_BRUSH_SHADER_DATA_HPP 25 #include <fastuidraw/painter/painter_custom_brush.hpp> 152 m_image(obj.m_image),
153 m_image_xy(obj.m_image_xy),
154 m_image_wh(obj.m_image_wh)
163 m_image = rhs.m_image;
164 m_image_xy = rhs.m_image_xy;
165 m_image_wh = rhs.m_image_wh;
213 uvec2 m_image_xy, m_image_wh;
unsigned int number_resources(void) const override
all classes and functions of FastUIDraw are in the namespace fastuidraw.
void save_resources(c_array< reference_counted_ptr< const resource_base > > dst) const override
A wrapper over a pointer to implement reference counting.
offset_t
Offsets for image data packing. The offsets are in units of uint32_t, NOT units of uvec4...
A PainterImageBrushShaderData defines the PainterBrushShaderData that the shaders of a PainterImageBr...
file painter_brush_shader.hpp
c_array< const reference_counted_ptr< const Image > > bind_images(void) const override
unsigned int data_size(void) const override
file painter_brush_shader_data.hpp
void pack_data(c_array< uvec4 > dst) const override
atlas_location_encoding
Bit packing for the master index tile of a Image.
Base class to hold custom data for custom brush shaders.
PainterImageBrushShaderData(void)
PainterImageBrushShaderData & operator=(const PainterImageBrushShaderData &rhs)
PainterImageBrushShaderData(const PainterImageBrushShaderData &obj)
A c_array is a wrapper over a C pointer with a size parameter to facilitate bounds checking and provi...
void sub_image(const reference_counted_ptr< const Image > &im, uvec2 xy, uvec2 wh)
const reference_counted_ptr< const Image > & image(void) const
Class to contain various enumerations needed for describing a brush.
uvec2_encoding
Bit packing for an uvec2 value.