![]() |
XII Release 0.1.0
|
#include <Window.h>
Public Member Functions | |
| virtual bool | GetVSyncEnabled () const =0 |
| Returns whether VSync is enabled for this output target. | |
| virtual void | SetVSyncEnabled (bool bEnableVSync)=0 |
| Enables or disables VSync for this output target. | |
| virtual void | PresentImage ()=0 |
| Presents the current back buffer to the screen. This should be called every frame after rendering is done. | |
| virtual void | Resize (const xiiSizeU32 &newSize)=0 |
| Resizes the output target to the new size. This should be called when the window is resized. | |
| virtual xiiResult | CaptureImage (xiiImage &out_image)=0 |
| Captures the current back buffer and stores it in the given image. This can be used for screenshots or similar purposes. | |
Base class for window output targets
A window output target is usually tied tightly to a window (
Captures the current back buffer and stores it in the given image. This can be used for screenshots or similar purposes.
Implemented in xiiWindowOutputTargetGAL.
|
pure virtual |
Returns whether VSync is enabled for this output target.
Implemented in xiiWindowOutputTargetGAL.
|
pure virtual |
Presents the current back buffer to the screen. This should be called every frame after rendering is done.
Implemented in xiiWindowOutputTargetGAL.
|
pure virtual |
Resizes the output target to the new size. This should be called when the window is resized.
Implemented in xiiWindowOutputTargetGAL.
|
pure virtual |
Enables or disables VSync for this output target.
Implemented in xiiWindowOutputTargetGAL.