Class

VideoContext

On this page
aurore/core/video.hpp
#include <aurore/core/video.hpp>

class VideoContext

Constructors 1

virtual ~VideoContext() =default

Functions 10

virtual void clear(NVGcolor color) =0

Called at the beginning of every frame to clear the window

video.hpp:37
virtual void beginFrame() =0

Called at the beginning of every frame to begin it.

video.hpp:42
virtual void endFrame() =0

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

video.hpp:47
virtual void resetState() =0

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

video.hpp:54
virtual double getScaleFactor() =0
virtual void fullScreen(bool fs)
virtual NVGcontext * getNVGContext() =0
virtual bool readPixels(std::vector< unsigned char > *rgba,int *width,int *height)

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

video.hpp:73
virtual void setSwapInterval(int interval) =0
virtual int getCurrentMonitorIndex()

Static attributes 7

static bool FULLSCREEN = false
static float posX = NAN
static float posY = NAN
static uint32_t sizeW = 0
static uint32_t sizeH = 0
static int monitorIndex = 0
static int swapInterval = 1

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