FastUIDraw
|
A PainterPackedValue represents a handle to an object that stores packed state data and tracks if that underlying data is already is already copied to PainterDraw::m_store. More...
#include <painter_packed_value.hpp>
Public Member Functions | |
PainterPackedValue (void) | |
c_array< const reference_counted_ptr< const Image > > | bind_images (void) const |
void * | opaque_data (void) const |
operator unspecified_bool_type (void) const | |
bool | operator!= (const PainterPackedValue &rhs) const |
bool | operator< (const PainterPackedValue &rhs) const |
bool | operator== (const PainterPackedValue &rhs) const |
c_array< uvec4 > | packed_data (void) const |
void | reset (void) |
void | swap (PainterPackedValue &obj) |
Friends | |
class | PainterPackedValuePool |
A PainterPackedValue represents a handle to an object that stores packed state data and tracks if that underlying data is already is already copied to PainterDraw::m_store.
If already on a store, then rather than copying the data again, the data is reused. The object behind the handle is NOT thread safe. In addition the underlying reference count is not either. Hence any access (even dtor, copy ctor and equality operator) on a fixed object cannot be done from multiple threads simutaneously. A fixed PainterPackedValue can be used by different Painter objects, subject to that the access is done from same thread.
Definition at line 33 of file painter_packed_value.hpp.
|
inline |
Ctor, initializes handle to nullptr, i.e. no underlying value object.
Definition at line 96 of file painter_packed_value.hpp.
|
inline |
Returns the images needed for binding, only makes sense when T = PainterBrushShaderData
Definition at line 138 of file painter_packed_value.hpp.
|
inline |
Pointer to opaque data of PainterPackedValueBase, used internally by fastuidraw. Do not touch!
Definition at line 192 of file painter_packed_value.hpp.
|
inline |
Used to allow using object as a boolean without accidentally converting to a boolean (since it returns a pointer to a function).
Definition at line 149 of file painter_packed_value.hpp.
|
inline |
Comparison operator to underlying object storing value.
rhs | handle to which to compare |
Definition at line 171 of file painter_packed_value.hpp.
|
inline |
Comparison operator to underlying object storing value.
rhs | handle to which to compare |
Definition at line 182 of file painter_packed_value.hpp.
|
inline |
Comparison operator to underlying object storing value.
rhs | handle to which to compare |
Definition at line 160 of file painter_packed_value.hpp.
|
inline |
Returns the data of the PainterPackedValue
Definition at line 128 of file painter_packed_value.hpp.
|
inline |
Resets the object to not refer to anything. Provided as a conveniance, equivalent to
Definition at line 118 of file painter_packed_value.hpp.
|
inline |
Swap operation
obj | object with which to swap |
Definition at line 104 of file painter_packed_value.hpp.