Platform video backend owning the frame lifecycle (init/render/clear, screen size, refresh rate, delta time) and handing out an ImageRenderer and a GlyphRenderer.
More...
#include <VideoDriver.h>
Platform video backend owning the frame lifecycle (init/render/clear, screen size, refresh rate, delta time) and handing out an ImageRenderer and a GlyphRenderer.
GuiImage/GuiText never touch a platform texture type directly, only these two renderers.
Definition at line 27 of file VideoDriver.h.
◆ clearScreen()
| virtual void VideoDriver::clearScreen |
( |
const PixelColor & | color | ) |
|
|
pure virtual |
◆ getDeltaTime()
| virtual float VideoDriver::getDeltaTime |
( |
| ) |
const |
|
pure virtual |
◆ getFrameTimer()
| virtual uint32_t VideoDriver::getFrameTimer |
( |
| ) |
|
|
pure virtual |
◆ getGlyphRenderer()
◆ getImageRenderer()
◆ getRefreshRate()
| virtual int VideoDriver::getRefreshRate |
( |
| ) |
const |
|
pure virtual |
◆ getScreenHeight()
| virtual int VideoDriver::getScreenHeight |
( |
| ) |
const |
|
pure virtual |
◆ getScreenWidth()
| virtual int VideoDriver::getScreenWidth |
( |
| ) |
const |
|
pure virtual |
◆ getUIScale()
| virtual float VideoDriver::getUIScale |
( |
| ) |
const |
|
inlinevirtual |
Ratio of physical render-target pixels to design-canvas pixels (the width/height passed to init()).
Greater than 1.0 wherever the driver upscales the design canvas to fill a higher-resolution.
Reimplemented in WutVideoDriver.
Definition at line 58 of file VideoDriver.h.
◆ init()
| virtual void VideoDriver::init |
( |
int | width, |
|
|
int | height ) |
|
pure virtual |
◆ render()
| virtual void VideoDriver::render |
( |
| ) |
|
|
pure virtual |
◆ shutdown()
| virtual void VideoDriver::shutdown |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: