Support Forum       G3D Web Page     
Public Member Functions | Protected Attributes | List of all members
G3D::EventCoordinateMapper Class Reference

Used by Widgets for mapping between 2D events and 3D rendering. More...

Public Member Functions

 EventCoordinateMapper ()
 
Ray eventPixelToCameraSpaceRay (const Point2 &pixel) const
 
bool ready () const
 True if update has been called, so eventPixelToCameraSpaceRay may be used. More...
 
void update (RenderDevice *rd)
 

Protected Attributes

CFrame m_lastCameraToWorldMatrix
 
Vector2 m_lastGuardBandOffset
 
Projection m_lastProjection
 
Rect2D m_lastViewport
 

Detailed Description

Used by Widgets for mapping between 2D events and 3D rendering.

Constructor & Destructor Documentation

◆ EventCoordinateMapper()

G3D::EventCoordinateMapper::EventCoordinateMapper ( )
inline

Member Function Documentation

◆ eventPixelToCameraSpaceRay()

Ray G3D::EventCoordinateMapper::eventPixelToCameraSpaceRay ( const Point2 pixel) const

◆ ready()

bool G3D::EventCoordinateMapper::ready ( ) const
inline

True if update has been called, so eventPixelToCameraSpaceRay may be used.

◆ update()

void G3D::EventCoordinateMapper::update ( RenderDevice rd)

Member Data Documentation

◆ m_lastCameraToWorldMatrix

CFrame G3D::EventCoordinateMapper::m_lastCameraToWorldMatrix
protected

◆ m_lastGuardBandOffset

Vector2 G3D::EventCoordinateMapper::m_lastGuardBandOffset
protected

Referenced by ready().

◆ m_lastProjection

Projection G3D::EventCoordinateMapper::m_lastProjection
protected

◆ m_lastViewport

Rect2D G3D::EventCoordinateMapper::m_lastViewport
protected

documentation generated on Wed Nov 24 2021 08:01:54 using doxygen 1.8.15