The DrawWindowEvent class is the event generated when the driver draws the window background for each subwindow. More...
#include <hps.h>
Public Types | |
enum | BackgroundTextureFormat { BackgroundTextureFormat::RGBA, BackgroundTextureFormat::BGRA, BackgroundTextureFormat::ImageExternal, BackgroundTextureFormat::LumaChromaPair } |
Enumerates the various texture formats supported by the DrawTexturedBackground function . More... | |
enum | StereoMatrix { StereoMatrix::ViewLeft, StereoMatrix::ViewRight, StereoMatrix::ProjectionLeft, StereoMatrix::ProjectionRight } |
Public Member Functions | |
DrawWindowEvent (OpaqueHandle in_nr=0) | |
virtual | ~DrawWindowEvent () |
The screen extent for the window being drawn. More... | |
void | DrawTexturedBackground (OpaqueHandle in_texture, BackgroundTextureFormat in_format, MatrixKit const &in_matrix, IntRectangle const &in_extent) const |
Function for drawing a platform-specific texture in place of the normal window background. More... | |
intptr_t | GetClassID () const |
Returns a unique identifier that is shared by all objects of the same class. More... | |
void | SetStereoMatrix (StereoMatrix id, HPS::MatrixKit const &in_matrix) const |
OpaqueHandle | GetSurface (int index) const |
OpaqueHandle | GetGraphicsContext () const |
Public Attributes | |
IntRectangle | Extent |
Protected Attributes | |
OpaqueHandle | nr |
Private Attributes | |
HPS::FloatArray | matrix_elements |
The DrawWindowEvent class is the event generated when the driver draws the window background for each subwindow.
|
strong |
Enumerates the various texture formats supported by the DrawTexturedBackground function .
|
stronginherited |
HPS::DrawWindowEvent::DrawWindowEvent | ( | OpaqueHandle | in_nr = 0 | ) |
|
virtual |
The screen extent for the window being drawn.
void HPS::DrawWindowEvent::DrawTexturedBackground | ( | OpaqueHandle | in_texture, |
BackgroundTextureFormat | in_format, | ||
MatrixKit const & | in_matrix, | ||
IntRectangle const & | in_extent | ||
) | const |
Function for drawing a platform-specific texture in place of the normal window background.
in_texture | The platform-specific texture handle(s) |
in_format | The format of the texture(s) provided through the 'in_texture' parameter. |
in_matrix | A transformation to apply to the uv coordinates used to draw the texture to the window. |
in_extent | The screen extent for the window background to be drawn. |
|
inherited |
Returns a unique identifier that is shared by all objects of the same class.
|
inherited |
|
inherited |
|
inherited |
IntRectangle HPS::DrawWindowEvent::Extent |
|
mutableprivate |
|
protectedinherited |