HPS::DrawWindowEvent Class Reference
#include <hps.h>
Inheritance diagram for HPS::DrawWindowEvent:

Public Types | |
enum | BackgroundTextureFormat { BackgroundTextureFormat::RGBA, BackgroundTextureFormat::BGRA, BackgroundTextureFormat::ImageExternal, BackgroundTextureFormat::LumaChromaPair } |
![]() | |
enum | StereoMatrix { ViewLeft, ViewRight, ProjectionLeft, ProjectionRight } |
Public Member Functions | |
void | DrawTexturedBackground (OpaqueHandle in_texture, BackgroundTextureFormat in_format, MatrixKit const &in_matrix, IntRectangle const &in_extent) const |
DrawWindowEvent (OpaqueHandle in_nr=0) | |
virtual | ~DrawWindowEvent () |
The screen extent for the window being drawn. | |
![]() | |
intptr_t | GetClassID () const |
OpaqueHandle | GetGraphicsContext () const |
OpaqueHandle | GetSurface (int index) const |
void | SetStereoMatrix (StereoMatrix id, HPS::MatrixKit const &in_matrix) const |
Public Attributes | |
IntRectangle | Extent |
Additional Inherited Members | |
![]() | |
DriverEvent (OpaqueHandle in_nr) | |
![]() | |
OpaqueHandle | nr |
Detailed Description
The DrawWindowEvent class is the event generated when the driver draws the window background for each subwindow.
Member Enumeration Documentation
◆ BackgroundTextureFormat
|
strong |
Enumerates the various texture formats supported by the DrawTexturedBackground function .
Member Function Documentation
◆ DrawTexturedBackground()
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.
- Parameters
-
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.
The documentation for this class was generated from the following file:
- include/hps.h