19 #ifndef FASTUIDRAW_PAINTER_IMAGE_BRUSH_SHADER_HPP 20 #define FASTUIDRAW_PAINTER_IMAGE_BRUSH_SHADER_HPP 22 #include <fastuidraw/painter/painter_custom_brush.hpp> 23 #include <fastuidraw/painter/shader_data/painter_image_brush_shader_data.hpp> #define FASTUIDRAW_MASK(BIT0, NUMBITS)
A PainterPackedValuePool can be used to create PainterPackedValue objects.
all classes and functions of FastUIDraw are in the namespace fastuidraw.
A wrapper over a pointer to implement reference counting.
A PainterImageBrushShader represents a single PainterBrushShader together with sub-shaders of it that...
file painter_brush_shader.hpp
An Image represents an image comprising of RGBA8 values. The texel values themselves are stored in a ...
sub_shader_bits
Enumeration describing the roles of the bits for the sub-shader ID's.
A PainterCustomBrush is just a conveniance to wrap a pointer to a PainterBrushShader together with a ...
static uint32_t sub_shader_id(const Image *image, enum filter_t image_filter, enum mipmap_t mip_mapping)
PainterCustomBrush create_brush(PainterPackedValuePool &pool, const reference_counted_ptr< const Image > &image, uvec2 xy, uvec2 wh, enum filter_t image_filter=filter_linear, enum mipmap_t mip_mapping=apply_mipmapping) const
A c_array is a wrapper over a C pointer with a size parameter to facilitate bounds checking and provi...
c_array< const reference_counted_ptr< PainterBrushShader > > sub_shaders(void) const
Defines default reference counting base classes.
filter_t
Enumeration specifying what filter to apply to an image.
PainterImageBrushShader(const reference_counted_ptr< PainterBrushShader > &parent_shader)
const reference_counted_ptr< PainterBrushShader > & sub_shader(const Image *image, enum filter_t image_filter, enum mipmap_t mip_mapping) const
Class to contain various enumerations needed for describing a brush.