VR-Forces 4.10 Class Documentation
 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

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

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

Public Member Functions

 DtVarjoVrsUpdater (DtDe &de, DtVariableRateShadingImage *vrsImage)
 CTOR. More...
 
virtual ~DtVarjoVrsUpdater ()
 DTOR. More...
 
void setEyeCenters (osg::Vec2 leftEye, osg::Vec2 rightEye)
 set new eye centers More...
 
- Public Member Functions inherited from makVrv::DtVariableRateShadingImageUpdater
 DtVariableRateShadingImageUpdater (DtDe &de, DtVariableRateShadingImage *vrsImage)
 CTOR. More...
 
virtual void drawImplementation (osg::RenderInfo &info) const
 draw the vrs image update pass More...
 
virtual void releaseGLObjects (osg::State *state) const
 frees resources on context release More...
 
virtual void shouldUpdate (bool shouldUpdate)
 flags if the vrs image should be updated More...
 
virtual void restoreLastFboTarget (GLenum fboTarget)
 /brief set the fb rebind target type for resetting the last applied fbo (0 to not rebind) More...
 

Protected Member Functions

virtual void update (osg::State *state) const
 pre draw callback so concrete implementations can update uniforms etc at this point the shader will be bound More...
 
virtual void initProgram (osg::State *state) const
 called by draw if program is null so concrete implementation can create program More...
 
- Protected Member Functions inherited from makVrv::DtVariableRateShadingImageUpdater
virtual ~DtVariableRateShadingImageUpdater ()
 DTOR. More...
 

Protected Attributes

GLint myEyeCenterUniformLocation
 
GLint myEyeCenterLeftUniformLocation
 
GLint myEyeCenterRightUniformLocation
 
GLint myEdgeUniformLocation
 
GLint myStepsUniformLocation
 
osg::Vec2 myEyeCenters [2]
 
- Protected Attributes inherited from makVrv::DtVariableRateShadingImageUpdater
DtDemyDe
 
DtVariableRateShadingImagemyVariableRateShadingImage
 handle to the vrs images so we can bind it's textures fbo More...
 
DtGlProgrammyProgram
 shader to update the vrs texture image More...
 
std::string myVertexShaderSource
 vertex shader source More...
 
std::string myFragmentShaderSource
 fragment shader source More...
 
osg::ref_ptr< osg::StateSet > myVrsFillStateSet
 state set to encapsulate state changes when doing vrs fill More...
 
bool myShouldUpdate
 should we update on the next drawImplementation More...
 
GLenum myRestoreFboTarget
 the framebuffer target to bind last fbo to More...
 

Private Member Functions

 DtVarjoVrsUpdater ()
 default CTOR. More...
 
 DtVarjoVrsUpdater (const DtVarjoVrsUpdater &)
 default copy constructor More...
 
DtVarjoVrsUpdateroperator= (const DtVarjoVrsUpdater &)
 assignment operator More...
 

Detailed Description

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

Constructor & Destructor Documentation

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

CTOR.

virtual makVrv::DtVarjoVrsUpdater::~DtVarjoVrsUpdater ( )
virtual

DTOR.

makVrv::DtVarjoVrsUpdater::DtVarjoVrsUpdater ( )
private

default CTOR.

makVrv::DtVarjoVrsUpdater::DtVarjoVrsUpdater ( const DtVarjoVrsUpdater )
private

default copy constructor

Member Function Documentation

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

set new eye centers

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

assignment operator

virtual void makVrv::DtVarjoVrsUpdater::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::DtVarjoVrsUpdater::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::DtVarjoVrsUpdater::myEyeCenterUniformLocation
mutableprotected
GLint makVrv::DtVarjoVrsUpdater::myEyeCenterLeftUniformLocation
mutableprotected
GLint makVrv::DtVarjoVrsUpdater::myEyeCenterRightUniformLocation
mutableprotected
GLint makVrv::DtVarjoVrsUpdater::myEdgeUniformLocation
mutableprotected
GLint makVrv::DtVarjoVrsUpdater::myStepsUniformLocation
mutableprotected
osg::Vec2 makVrv::DtVarjoVrsUpdater::myEyeCenters[2]
mutableprotected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)