A ColorStopAtlas is a common location to all color stop data of an application. Ideally, all color stop sequences are placed into a single ColorStopAtlas (changes of ColorStopAtlas force draw-call breaks).
More...
#include <colorstop_atlas.hpp>
A ColorStopAtlas is a common location to all color stop data of an application. Ideally, all color stop sequences are placed into a single ColorStopAtlas (changes of ColorStopAtlas force draw-call breaks).
Definition at line 131 of file colorstop_atlas.hpp.
◆ ColorStopAtlas()
◆ backing_store()
Returns a handle to the backing store of the atlas.
◆ create()
Create a ColorStopSequence onto this ColorStopAtlas.
- Parameters
-
color_stops | source color stops to use |
pwidth | specifies number of texels to occupy on the ColorStopAtlas. The discretization of the color stop values is specified by the width. Additionally, the width is clamped to max_width(). |
◆ flush()
void fastuidraw::ColorStopAtlas::flush |
( |
void |
| ) |
const |
◆ lock_resources()
void fastuidraw::ColorStopAtlas::lock_resources |
( |
void |
| ) |
|
Increments an internal counter. If this internal counter is greater than zero, then the reurning of interval to the free store for later use is -delayed- until the counter reaches zero again (see unlock_resources()). The use case is for buffered painting where the GPU calls are delayed for later (to batch commands) and an Image may go out of scope before the GPU commands are sent to the GPU. By delaying the return of intervals to the freestore, the color stop data is valid still for rendering even if the owning ColorStopSequence has been deleted.
◆ max_width()
unsigned int fastuidraw::ColorStopAtlas::max_width |
( |
void |
| ) |
const |
◆ unlock_resources()
void fastuidraw::ColorStopAtlas::unlock_resources |
( |
void |
| ) |
|
Decrements an internal counter. If this internal counter reaches zero, those intervals from those ColorStopSequence objects that were deleted while the counter was non-zero, are then returned to the interval free store. See lock_resources() for more details.
The documentation for this class was generated from the following file: