VR-Forces 4.8 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 (osg::Texture *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 (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 unsigned int createProgram (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...
 
virtual void destroyProgram (unsigned int program) const
 

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...
 
unsigned int myMutableWaterOnScreenProgram
 
osg::ref_ptr< osg::Texture > myNormalMap
 
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 ()
 private default constructor. not allowed. More...
 
 DtWaterOnScreenDrawable (const DtWaterOnScreenDrawable &)
 prevent copy-construction More...
 
DtWaterOnScreenDrawableoperator= (const DtWaterOnScreenDrawable &)
 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 ( )
private

private default constructor. not allowed.

makVrv::DtWaterOnScreenDrawable::DtWaterOnScreenDrawable ( const DtWaterOnScreenDrawable )
private

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 )
private

prevent assignment

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

overridden

virtual void makVrv::DtWaterOnScreenDrawable::setNormalMap ( osg::Texture *  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 ( 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

unsigned int makVrv::DtWaterOnScreenDrawable::myMutableWaterOnScreenProgram
mutableprotected
osg::ref_ptr<osg::Texture> 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 Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)