Main interface with the component system. More...
Main interface with the component system.
Used to initialize or shuts all of its sub parts, also used for framing or running.
|
noexcept |
Constructor.
nkGraphics::System::~System | ( | ) |
Destructor.
nkWinUi::System* nkGraphics::System::getUiSystem | ( | ) | const |
Renderer* nkGraphics::System::getRenderer | ( | ) | const |
ContentLoader* nkGraphics::System::getContentLoader | ( | ) | const |
MeshDataLinkTracker* nkGraphics::System::getMeshDataLinkTracker | ( | ) | const |
AsyncWorker* nkGraphics::System::getAsyncWorker | ( | ) | const |
BlendStateManager* nkGraphics::System::getBlendStateManager | ( | ) | const |
BufferManager* nkGraphics::System::getBufferManager | ( | ) | const |
CameraManager* nkGraphics::System::getCameraManager | ( | ) | const |
CompositorManager* nkGraphics::System::getCompositorManager | ( | ) | const |
DepthStencilStateManager* nkGraphics::System::getDepthStencilStateManager | ( | ) | const |
LogManager* nkGraphics::System::getLogManager | ( | ) | const |
MeshManager* nkGraphics::System::getMeshManager | ( | ) | const |
NodeManager* nkGraphics::System::getNodeManager | ( | ) | const |
ProgramManager* nkGraphics::System::getProgramManager | ( | ) | const |
RasterStateManager* nkGraphics::System::getRasterStateManager | ( | ) | const |
RenderContextManager* nkGraphics::System::getRenderContextManager | ( | ) | const |
RenderQueueManager* nkGraphics::System::getRenderQueueManager | ( | ) | const |
ResourceManager* nkGraphics::System::getResourceManager | ( | ) | const |
SamplerManager* nkGraphics::System::getSamplerManager | ( | ) | const |
ShaderManager* nkGraphics::System::getShaderManager | ( | ) | const |
TextureManager* nkGraphics::System::getTextureManager | ( | ) | const |
ViewportManager* nkGraphics::System::getViewportManager | ( | ) | const |
bool nkGraphics::System::getIsInitialized | ( | ) | const |
bool nkGraphics::System::getHasRunToContinue | ( | ) | const |
bool nkGraphics::System::getIsShuttingDown | ( | ) | const |
void nkGraphics::System::setHasRunToContinue | ( | bool | value | ) |
Sets whether the run should proceed. Can be used to halt the run.
value | If the rendering should be stopped (true) or not (false). |
bool nkGraphics::System::initialize | ( | const Configuration & | config = Configuration() | ) |
Initializes the component and all of its sub part. This implies launching the graphic system and initializing the renderer.
config | The configuration to use during initialization. |
void nkGraphics::System::run | ( | RenderContext * | context, |
std::function< void()> | loopCallback = []() {} |
||
) |
Runs the component. This means entering an internal running loop. This loop can be sufficient for most use cases. It ticks inputs and rendering for a given context, before calling the potential callback provided. For more complex usage (multi windowing for instance), it is recommended to manually frame in a custom rendering loop.
context | The context to run with. |
loopCallback | A potential callback to call at each loop iteration. |
void nkGraphics::System::shutdown | ( | ) |
Shuts down the component. This frees all memory linked to it and ensure a clean leave.
bool nkGraphics::System::frame | ( | RenderContext * | context | ) |
Frames the component, once. This will update input, and render, only once.
context | The context to render for. |
void nkGraphics::System::tickForNewFrame | ( | RenderContext * | context | ) |
Ticks the engine for a new frame, without rendering. This implies setting everything up for a clean rendering for a context, and checking how async work is going. Called automatically by a frame() call.
context | The context to tick for. |