Use a Raster State Cache to look up a Kanzi graphics Raster State. More...
#include <kanzi/core.ui/graphics/raster_state_cache.hpp>
Public Member Functions | |
| gfx::RasterStateHandleGuard | get (GraphicsFillMode fillMode, GraphicsCullMode cullMode, GraphicsPrimitiveType topology, Vector2 depthOffset) |
| Gets or creates a graphics Raster State for the requested state. | |
| void | invalidate () |
| Invalidates the cache and releases all Kanzi graphics handles. | |
| RasterStateCache & | operator= (const RasterStateCache &)=delete |
| RasterStateCache & | operator= (RasterStateCache &&)=delete |
| RasterStateCache ()=default | |
| Constructor. | |
| RasterStateCache (const RasterStateCache &)=delete | |
| RasterStateCache (RasterStateCache &&)=delete | |
Use a Raster State Cache to look up a Kanzi graphics Raster State.
|
default |
Constructor.
|
delete |
|
delete |
|
delete |
|
delete |
| gfx::RasterStateHandleGuard kanzi::RasterStateCache::get | ( | GraphicsFillMode | fillMode, |
| GraphicsCullMode | cullMode, | ||
| GraphicsPrimitiveType | topology, | ||
| Vector2 | depthOffset ) |
Gets or creates a graphics Raster State for the requested state.
| fillMode | The graphics fill mode. |
| cullMode | The graphics cull mode. |
| topology | The primitive topology. |
| depthOffset | The depth bias. The first component represents a constant depth, and the second component represents a slope factor. |
| void kanzi::RasterStateCache::invalidate | ( | ) |
Invalidates the cache and releases all Kanzi graphics handles.