#include <aurore/test/headless_platform.hpp>
◆ HeadlessVideoContext()
| aurore::HeadlessVideoContext::HeadlessVideoContext |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
◆ ~HeadlessVideoContext()
| aurore::HeadlessVideoContext::~HeadlessVideoContext |
( |
| ) |
|
|
override |
◆ beginFrame()
| void aurore::HeadlessVideoContext::beginFrame |
( |
| ) |
|
|
overridevirtual |
Called at the beginning of every frame to begin it.
Implements VideoContext.
◆ clear()
| void aurore::HeadlessVideoContext::clear |
( |
NVGcolor |
color | ) |
|
|
overridevirtual |
Called at the beginning of every frame to clear the window
Implements VideoContext.
◆ endFrame()
| void aurore::HeadlessVideoContext::endFrame |
( |
| ) |
|
|
overridevirtual |
Called at the end of every frame to end it (swap buffers...).
Implements VideoContext.
◆ getNVGContext()
| NVGcontext * aurore::HeadlessVideoContext::getNVGContext |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getScaleFactor()
| double aurore::HeadlessVideoContext::getScaleFactor |
( |
| ) |
|
|
inlineoverridevirtual |
◆ isValid()
| bool aurore::HeadlessVideoContext::isValid |
( |
| ) |
const |
|
inline |
◆ readPixels()
| bool aurore::HeadlessVideoContext::readPixels |
( |
std::vector< unsigned char > * |
rgba, |
|
|
int * |
width, |
|
|
int * |
height |
|
) |
| |
|
overridevirtual |
Reads back the frame drawn so far (before endFrame() presents it): top-down rows of opaque RGBA pixels, at the drawable's size. Returns false where the driver cannot (only the OpenGL ones do for now).
Reimplemented from VideoContext.
◆ resetState()
| void aurore::HeadlessVideoContext::resetState |
( |
| ) |
|
|
overridevirtual |
Can be called by the application to reset the graphics state, in case there is a need to use the graphics API directly (for instance direct OpenGL calls).
Implements VideoContext.
◆ resize()
| void aurore::HeadlessVideoContext::resize |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
◆ setSwapInterval()
| void aurore::HeadlessVideoContext::setSwapInterval |
( |
int |
interval | ) |
|
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: