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
makVrv::DtWaterOnScreenDrawable Class Reference

class used to render water on screen effects during the post processor camera draw More...

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

Public Member Functions

virtual ~DtWaterOnScreenDrawable ()
 destructor More...
 
virtual void releaseGLObjects (osg::State *state) const
 releases gpu objects on context recreation More...
 
virtual void drawImplementation (osg::RenderInfo &renderInfo) const
 overridden More...
 
virtual void setNormalMap (DtGlTexture *texture)
 overridden currently unneeded because the postprocessor drawable is always deleted/recreated because of channel creation/destruction virtual void releaseGLObjects(osg::State* state = 0) const; //! More...
 
virtual void setParameters (const DtWaterOnScreenParameters &params)
 set the parameters More...
 
- Public Member Functions inherited from makVrv::DtPostProcessorDrawable
 DtPostProcessorDrawable (DtDe &de)
 
 DtPostProcessorDrawable (const DtPostProcessorDrawable &orig, const osg::CopyOp &op)
 
virtual ~DtPostProcessorDrawable ()
 
virtual void drawTexturedQuad (bool drawOnly=false) const
 prevent assignment More...
 
virtual void beginTexturedQuad () const
 vert pointes gl states etc More...
 
virtual void endTexturedQuad () const
 disable modes stup in begin More...
 
virtual std::string preprocessorDefinesString (void) const
 preprocessor string taking into account the current options (multiview, etc) More...
 
virtual DtGlProgramcreateProgram (const std::string &path, const std::string &prefixName, const std::string &preprocessor="") const
 create a program based on the name (name_ps.glsl and name_vs.glsl files are used) More...
 

Protected Member Functions

 DtWaterOnScreenDrawable (DtDe &de)
 constructor. private. only creator can create More...
 
virtual void createProgramIfNecessary (void) const
 create the program if not created already More...
 
virtual void cleanupGpuMemory ()
 
- Protected Member Functions inherited from makVrv::DtPostProcessorDrawable
void setupGeometry () const
 brief setup the vertex buffer object used in draw quad More...
 

Protected Attributes

friend DtWaterOnScreenDrawableCreator
 friended, to access constructor above More...
 
DtGlProgrammyMutableWaterOnScreenProgram
 
DtGlTexturemyNormalMap
 
DtWaterOnScreenParameters myParams
 
int myMutableVrvEffectIntensityLoc
 locations of various uniforms for the shaders More...
 
int myMutableVrvOffsetLoc
 
int myMutableVrvOpacityLoc
 
int myMutableVrvWaterNormalsLoc
 
int myMutableVrvFovLoc
 
int myMutableVrvAspectRatioLoc
 
- Protected Attributes inherited from makVrv::DtPostProcessorDrawable
DtDemyDe
 
unsigned int myMutableVbo
 

Private Member Functions

 DtWaterOnScreenDrawable ()=delete
 private default constructor. not allowed. More...
 
 DtWaterOnScreenDrawable (const DtWaterOnScreenDrawable &)=delete
 prevent copy-construction More...
 
DtWaterOnScreenDrawableoperator= (const DtWaterOnScreenDrawable &)=delete
 prevent assignment More...
 

Detailed Description

class used to render water on screen effects during the post processor camera draw

Constructor & Destructor Documentation

virtual makVrv::DtWaterOnScreenDrawable::~DtWaterOnScreenDrawable ( )
virtual

destructor

makVrv::DtWaterOnScreenDrawable::DtWaterOnScreenDrawable ( DtDe de)
protected

constructor. private. only creator can create

makVrv::DtWaterOnScreenDrawable::DtWaterOnScreenDrawable ( )
privatedelete

private default constructor. not allowed.

makVrv::DtWaterOnScreenDrawable::DtWaterOnScreenDrawable ( const DtWaterOnScreenDrawable )
privatedelete

prevent copy-construction

Member Function Documentation

virtual void makVrv::DtWaterOnScreenDrawable::releaseGLObjects ( osg::State *  state) const
virtual

releases gpu objects on context recreation

DtWaterOnScreenDrawable& makVrv::DtWaterOnScreenDrawable::operator= ( const DtWaterOnScreenDrawable )
privatedelete

prevent assignment

virtual void makVrv::DtWaterOnScreenDrawable::drawImplementation ( osg::RenderInfo &  renderInfo) const
virtual

overridden

virtual void makVrv::DtWaterOnScreenDrawable::setNormalMap ( DtGlTexture texture)
virtual

overridden currently unneeded because the postprocessor drawable is always deleted/recreated because of channel creation/destruction virtual void releaseGLObjects(osg::State* state = 0) const; //!

overridden currently unneeded because the postprocessor drawable is always deleted/recreated because of channel creation/destruction set the normal map

virtual void makVrv::DtWaterOnScreenDrawable::setParameters ( const DtWaterOnScreenParameters params)
virtual

set the parameters

virtual void makVrv::DtWaterOnScreenDrawable::createProgramIfNecessary ( void  ) const
protectedvirtual

create the program if not created already

virtual void makVrv::DtWaterOnScreenDrawable::cleanupGpuMemory ( )
protectedvirtual

Member Data Documentation

friend makVrv::DtWaterOnScreenDrawable::DtWaterOnScreenDrawableCreator
protected

friended, to access constructor above

DtGlProgram* makVrv::DtWaterOnScreenDrawable::myMutableWaterOnScreenProgram
mutableprotected
DtGlTexture* makVrv::DtWaterOnScreenDrawable::myNormalMap
protected
DtWaterOnScreenParameters makVrv::DtWaterOnScreenDrawable::myParams
protected
int makVrv::DtWaterOnScreenDrawable::myMutableVrvEffectIntensityLoc
mutableprotected

locations of various uniforms for the shaders

int makVrv::DtWaterOnScreenDrawable::myMutableVrvOffsetLoc
mutableprotected
int makVrv::DtWaterOnScreenDrawable::myMutableVrvOpacityLoc
mutableprotected
int makVrv::DtWaterOnScreenDrawable::myMutableVrvWaterNormalsLoc
mutableprotected
int makVrv::DtWaterOnScreenDrawable::myMutableVrvFovLoc
mutableprotected
int makVrv::DtWaterOnScreenDrawable::myMutableVrvAspectRatioLoc
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)