API Documentation
Public Member Functions | List of all members
nkGraphics::RasterStateManager Class Reference

Manages the raster states available in the component. More...

Inheritance diagram for nkGraphics::RasterStateManager:
nkGraphics::Manager< RasterState >

Public Member Functions

RasterStategetDefaultState () const
 
- Public Member Functions inherited from nkGraphics::Manager< RasterState >
RasterStatecreateOrRetrieve (nkMemory::StringView name)
 
RasterStaterecord (nkMemory::StringView name, nkMemory::UniquePtr< RasterState > resource)
 
RasterStateget (nkMemory::StringView name) const
 
RasterStategetByIndex (unsigned int index) const
 
void rename (nkMemory::StringView currentName, nkMemory::StringView newName)
 
void erase (nkMemory::StringView name)
 
nkMemory::UniquePtr< RasterStaterelinquish (nkMemory::StringView name)
 

Detailed Description

Manages the raster states available in the component.

The manager owns the memory it allocates. External code should never free memory returned.

Member Function Documentation

◆ getDefaultState()

RasterState* nkGraphics::RasterStateManager::getDefaultState ( ) const
Returns
The default state used during rendering if no overload within a pass is provided.

The documentation for this class was generated from the following file: