Class · aurore

aurore::HeadlessVideoContext

On this page
aurore/test/headless_platform.hpp
#include <aurore/test/headless_platform.hpp>

class aurore::HeadlessVideoContext : public VideoContext

Constructors 2

HeadlessVideoContext(int width, int height)
~HeadlessVideoContext() override

Functions 10

virtual NVGcontext * getNVGContext() override
virtual void clear(NVGcolor color) override

Called at the beginning of every frame to clear the window

Overrides VideoContext::clear

headless_platform.hpp:44
virtual void beginFrame() override

Called at the beginning of every frame to begin it.

Overrides VideoContext::beginFrame

headless_platform.hpp:45
virtual void endFrame() override

Called at the end of every frame to end it (swap buffers...).

Overrides VideoContext::endFrame

headless_platform.hpp:46
virtual void setSwapInterval(int interval) override
virtual void resetState() override

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).

Overrides VideoContext::resetState

headless_platform.hpp:48
virtual double getScaleFactor() override
virtual bool readPixels(std::vector< unsigned char > *rgba,int *width,int *height) override

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).

Overrides VideoContext::readPixels

headless_platform.hpp:50
void resize(int width, int height)
bool isValid() const

Also the functions of VideoContext (10).

Read from Aurore's headers by Doxygen at each build · library/include