HPS::DrawWindowEvent Class Reference

#include <hps.h>

Inheritance diagram for HPS::DrawWindowEvent:
HPS::DriverEvent

Public Types

enum  BackgroundTextureFormat { BackgroundTextureFormat::RGBA, BackgroundTextureFormat::BGRA, BackgroundTextureFormat::ImageExternal, BackgroundTextureFormat::LumaChromaPair }
 
- Public Types inherited from HPS::DriverEvent
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.
 
- Public Member Functions inherited from HPS::DriverEvent
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

- Protected Member Functions inherited from HPS::DriverEvent
DriverEvent (OpaqueHandle in_nr)
 
- Protected Attributes inherited from HPS::DriverEvent
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

Enumerates the various texture formats supported by the DrawTexturedBackground function .

Enumerator
RGBA 

Handle to single GL_RGBA format texture.

BGRA 

Same as RGBA but with swapped red and blue channels.

ImageExternal 

Handle to single OES_EGL_image_external texture.

LumaChromaPair 

Pointer to array of two GL texture handles for YpCbCr texture pair (GL_LUMINANCE, GL_LUMINANCE_ALPHA formats).

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_textureThe platform-specific texture handle(s)
in_formatThe format of the texture(s) provided through the 'in_texture' parameter.
in_matrixA transformation to apply to the uv coordinates used to draw the texture to the window.
in_extentThe screen extent for the window background to be drawn.

The documentation for this class was generated from the following file: