VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
makVrv::DtVrsGazeMapUpdater Class Reference

A Varjo implementation of the DtVariableRateShadingImageUpdater Supports updating the vrs map as foavated with eye tracking.

Inheritance diagram for makVrv::DtVrsGazeMapUpdater:
Inheritance graph
[legend]

Public Member Functions

 DtVrsGazeMapUpdater (DtDe &de, DtVariableRateShadingImage *vrsImage)
 
virtual ~DtVrsGazeMapUpdater ()
 
void setEyeCenters (osg::Vec2 leftEye, osg::Vec2 rightEye)
 
- Public Member Functions inherited from makVrv::DtVariableRateShadingImageUpdater
 DtVariableRateShadingImageUpdater (DtDe &de, DtVariableRateShadingImage *vrsImage)
 
virtual void drawImplementation (osg::RenderInfo &info) const
 
virtual void releaseGLObjects (osg::State *state) const
 
virtual void shouldUpdate (bool shouldUpdate)
 
virtual void restoreLastFboTarget (GLenum fboTarget)
 

Protected Member Functions

virtual void update (osg::State *state) const
 
virtual void initProgram (osg::State *state) const
 
- Protected Member Functions inherited from makVrv::DtVariableRateShadingImageUpdater
virtual ~DtVariableRateShadingImageUpdater ()
 

Protected Attributes

GLint myEyeCenterUniformLocation
 
GLint myEyeCenterLeftUniformLocation
 
GLint myEyeCenterRightUniformLocation
 
GLint myEdgeUniformLocation
 
GLint myStepsUniformLocation
 
osg::Vec2 myEyeCenters [2]
 
- Protected Attributes inherited from makVrv::DtVariableRateShadingImageUpdater
DtDemyDe
 
DtVariableRateShadingImagemyVariableRateShadingImage
 
DtGlProgrammyProgram
 
std::string myVertexShaderSource
 
std::string myFragmentShaderSource
 
osg::ref_ptr< osg::StateSet > myVrsFillStateSet
 
bool myShouldUpdate
 
GLenum myRestoreFboTarget
 

Private Member Functions

 DtVrsGazeMapUpdater ()
 
 DtVrsGazeMapUpdater (const DtVrsGazeMapUpdater &)
 
DtVrsGazeMapUpdateroperator= (const DtVrsGazeMapUpdater &)
 

Constructor & Destructor Documentation

makVrv::DtVrsGazeMapUpdater::DtVrsGazeMapUpdater ( DtDe de,
DtVariableRateShadingImage vrsImage 
)

CTOR.

virtual makVrv::DtVrsGazeMapUpdater::~DtVrsGazeMapUpdater ( )
virtual

DTOR.

makVrv::DtVrsGazeMapUpdater::DtVrsGazeMapUpdater ( )
private

default CTOR.

makVrv::DtVrsGazeMapUpdater::DtVrsGazeMapUpdater ( const DtVrsGazeMapUpdater )
private

default copy constructor

Member Function Documentation

void makVrv::DtVrsGazeMapUpdater::setEyeCenters ( osg::Vec2  leftEye,
osg::Vec2  rightEye 
)

set new eye centers

DtVrsGazeMapUpdater& makVrv::DtVrsGazeMapUpdater::operator= ( const DtVrsGazeMapUpdater )
private

assignment operator

virtual void makVrv::DtVrsGazeMapUpdater::update ( osg::State *  state) const
protectedvirtual

pre draw callback so concrete implementations can update uniforms etc at this point the shader will be bound

Reimplemented from makVrv::DtVariableRateShadingImageUpdater.

virtual void makVrv::DtVrsGazeMapUpdater::initProgram ( osg::State *  state) const
protectedvirtual

called by draw if program is null so concrete implementation can create program

Reimplemented from makVrv::DtVariableRateShadingImageUpdater.

Member Data Documentation

GLint makVrv::DtVrsGazeMapUpdater::myEyeCenterUniformLocation
mutableprotected
GLint makVrv::DtVrsGazeMapUpdater::myEyeCenterLeftUniformLocation
mutableprotected
GLint makVrv::DtVrsGazeMapUpdater::myEyeCenterRightUniformLocation
mutableprotected
GLint makVrv::DtVrsGazeMapUpdater::myEdgeUniformLocation
mutableprotected
GLint makVrv::DtVrsGazeMapUpdater::myStepsUniformLocation
mutableprotected
osg::Vec2 makVrv::DtVrsGazeMapUpdater::myEyeCenters[2]
mutableprotected

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

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)