All the major stacks used by PowerUI. Each one represents a stack of texture atlases which are shared across all UI's.
Static Public Member Functions | |
static void | SetRate (int rate) |
Called when the global UI rate changes. More... | |
static void | Start () |
Creates our stacks. More... | |
static void | Update () |
Called at the global rate to e.g. optimise the atlases or trigger threaded draws. More... | |
static void | Optimise () |
Attempts to optimise the major atlases. Only does anything if they need it. More... | |
static void | Clear () |
Clears all stacks. More... | |
static void | Flush () |
Flushes all atlases that require it. More... | |
Static Public Attributes | |
static int | InitialSize =1024 |
The minimum starting atlas size. More... | |
static AtlasStack | Text |
The atlas stack used for rendering SDF text. All fonts share the same atlases. More... | |
static AtlasStack | Graphics |
A stack of temporarily buffered atlases. More... | |
Properties | |
static int | TextSpacing [get, set] |
The spacing around letters on the text atlas. More... | |
static int | GraphicsSpacing [get, set] |
The spacing around images on the graphics atlas. More... | |
static int | MaxSize [get] |
The maximum possible size that atlases can be on this hardware. More... | |
static int | AtlasSize [get, set] |
The size of atlases to use. Auto clipped by MaxSize. More... | |
Private Attributes | |
const int | OptimiseFrequency =20 |
The max frequency of optimise calls, in seconds. More... | |
Static Private Attributes | |
static int | RawTextSpacing =2 |
The spacing around letters on the text atlas. More... | |
static int | RawGraphicsSpacing =0 |
The spacing around images on the graphics atlas. More... | |
static int | OptimiseCount |
A counter which tracks optimise calls and throttles them to at most once every 30s. More... | |
static int | OptimiseFrameCount =OptimiseFrequency*UI.DefaultRate |
The max frame count until an optimise happens. More... | |
static int | RawMaxSize =2048 |
The max available atlas size. See MaxSize. More... | |
|
inlinestatic |
Clears all stacks.
|
inlinestatic |
Flushes all atlases that require it.
|
inlinestatic |
Attempts to optimise the major atlases. Only does anything if they need it.
|
inlinestatic |
Called when the global UI rate changes.
|
inlinestatic |
Creates our stacks.
|
inlinestatic |
Called at the global rate to e.g. optimise the atlases or trigger threaded draws.
|
static |
A stack of temporarily buffered atlases.
The stack used for rendering all graphics. Shared across all UI's.
|
static |
The minimum starting atlas size.
|
staticprivate |
A counter which tracks optimise calls and throttles them to at most once every 30s.
|
staticprivate |
The max frame count until an optimise happens.
|
private |
The max frequency of optimise calls, in seconds.
|
staticprivate |
The spacing around images on the graphics atlas.
|
staticprivate |
The max available atlas size. See MaxSize.
|
staticprivate |
The spacing around letters on the text atlas.
|
static |
The atlas stack used for rendering SDF text. All fonts share the same atlases.
|
staticgetset |
The size of atlases to use. Auto clipped by MaxSize.
|
staticgetset |
The spacing around images on the graphics atlas.
|
staticget |
The maximum possible size that atlases can be on this hardware.
|
staticgetset |
The spacing around letters on the text atlas.