Module that manages the Vulkan instance_, Surface, Window and the renderpass structure.
More...
#include <graphics.h>
|
| enum class | PrepareFrameOutcome { Skipped
, Rebuilt
, Ready
} |
| |
| enum class | RenderFrameOutcome { Skipped
, Rendered
} |
| |
| enum class | FrameOutcome { Skipped
, Rebuilt
, Rendered
} |
| |
|
|
static std::string | StringifyResultVk (VkResult result) |
| |
|
static void | CheckVk (VkResult result) |
| |
|
|
class | RenderDevice |
| |
|
class | RenderDevice::InternalAccess |
| |
Module that manages the Vulkan instance_, Surface, Window and the renderpass structure.
◆ CaptureScreenshot()
| void pixelbullet::Graphics::CaptureScreenshot |
( |
const std::filesystem::path & | filename, |
|
|
std::size_t | id = 0 ) const |
Takes a screenshot of the current image of the display and saves it into a image file.
- Parameters
-
| filename | The file to save the screenshot as. |
◆ GetRenderer()
| Renderer * pixelbullet::Graphics::GetRenderer |
( |
| ) |
const |
|
inline |
Gets the current renderer.
- Returns
- The renderer.
◆ SetRenderer()
| void pixelbullet::Graphics::SetRenderer |
( |
std::unique_ptr< Renderer > && | renderer | ) |
|
Sets the current renderer to a new renderer.
- Parameters
-
| renderer | The new renderer. |
The documentation for this class was generated from the following files:
- engine/include/pixelbullet/graphics/graphics.h
- engine/src/graphics/graphics.cc