#include <aurore/core/video.hpp>
◆ ~VideoContext()
| virtual VideoContext::~VideoContext |
( |
| ) |
|
|
virtualdefault |
◆ beginFrame()
| virtual void VideoContext::beginFrame |
( |
| ) |
|
|
pure virtual |
◆ clear()
| virtual void VideoContext::clear |
( |
NVGcolor |
color | ) |
|
|
pure virtual |
◆ endFrame()
| virtual void VideoContext::endFrame |
( |
| ) |
|
|
pure virtual |
◆ fullScreen()
| virtual void VideoContext::fullScreen |
( |
bool |
fs | ) |
|
|
inlinevirtual |
◆ getCurrentMonitorIndex()
| virtual int VideoContext::getCurrentMonitorIndex |
( |
| ) |
|
|
inlinevirtual |
◆ getNVGContext()
| virtual NVGcontext * VideoContext::getNVGContext |
( |
| ) |
|
|
pure virtual |
◆ getScaleFactor()
| virtual double VideoContext::getScaleFactor |
( |
| ) |
|
|
pure virtual |
◆ readPixels()
| virtual bool VideoContext::readPixels |
( |
std::vector< unsigned char > * |
rgba, |
|
|
int * |
width, |
|
|
int * |
height |
|
) |
| |
|
inlinevirtual |
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 in aurore::HeadlessVideoContext.
◆ resetState()
| virtual void VideoContext::resetState |
( |
| ) |
|
|
pure virtual |
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).
Implemented in aurore::HeadlessVideoContext.
◆ setSwapInterval()
| virtual void VideoContext::setSwapInterval |
( |
int |
interval | ) |
|
|
pure virtual |
◆ FULLSCREEN
| bool VideoContext::FULLSCREEN = false |
|
inlinestatic |
◆ monitorIndex
| int VideoContext::monitorIndex = 0 |
|
inlinestatic |
◆ posX
| float VideoContext::posX = NAN |
|
inlinestatic |
◆ posY
| float VideoContext::posY = NAN |
|
static |
◆ sizeH
| uint32_t VideoContext::sizeH = 0 |
|
static |
◆ sizeW
| uint32_t VideoContext::sizeW = 0 |
|
inlinestatic |
◆ swapInterval
| int VideoContext::swapInterval = 1 |
|
inlinestatic |
The documentation for this class was generated from the following file: