PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
pixelbullet::Graphics Class Reference

Host-facing graphics subsystem shell. More...

#include <graphics.h>

Public Types

enum class  FrameOutcome { Skipped , Rebuilt , Rendered }

Public Member Functions

 Graphics (GraphicsConfig config, Window &window)
 Graphics (const Graphics &)=delete
Graphics & operator= (const Graphics &)=delete
 Graphics (Graphics &&)=delete
Graphics & operator= (Graphics &&)=delete
FrameOutcome Update ()
void WaitIdle () const
void CaptureScreenshot (const std::filesystem::path &filename, std::size_t id=0) const
const WindowGetWindow () const
WindowGetWindow ()

Friends

class GraphicsFrameRuntimeAccess
class GraphicsRendererBindingAccess
class GraphicsStateAccess

Detailed Description

Host-facing graphics subsystem shell.

Member Function Documentation

◆ 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
filenameThe file to save the screenshot as.

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