VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtWaterOnScreenDrawable.h
Go to the documentation of this file.
1 /*****************************************************************************
2 * Copyright (c) 2020 MAK Technologies, Inc.
3 * All rights reserved.
4 *****************************************************************************/
5 
6 #pragma once
7 
11 
14 
15 #include <osg/Texture>
16 
18 
20 
21 namespace osg
22 {
23  class Texture;
24 }
25 
26 namespace makVrv
27 {
28  class DtDe;
29 
33  {
35  : vrv_effectIntensity(1.0f)
36  , vrv_offset(0.0f)
37  , vrv_opacity(1.0f)
38  , vrv_aspectRatio(1.0f)
39  , vrv_fovy(1.57f)
40  {}
41 
43  float vrv_offset;
44  float vrv_opacity;
45 
47  float vrv_fovy;
48  };
49 
52 
54  template <>
55  inline const char* creatorTypeName<DtWaterOnScreenDrawable>(void) { return "DtWaterOnScreenDrawableCreator"; }
56 
59  {
60  public:
62  virtual ~DtWaterOnScreenDrawable();
63 
65  virtual void releaseGLObjects(osg::State* state) const;
66 
67  protected:
70 
73 
74  private:
77 
80 
83 
84  public:
86  virtual void drawImplementation(osg::RenderInfo& renderInfo) const;
87 
94  //virtual void releaseGLObjects(osg::State* state = 0) const;
95 
97  virtual void setNormalMap(osg::Texture* texture);
98 
100  virtual void setParameters(DtWaterOnScreenParameters& params);
101  protected:
103  virtual void createProgramIfNecessary(void) const;
104 
105  virtual void cleanupGpuMemory();
106  protected:
107  mutable unsigned int myMutableWaterOnScreenProgram;
108 
110 
112 
117 
119 
120  mutable int myMutableVrvFovLoc;
122  };
123 }
Diagonal crossing liens.
Definition: DtTacticalGraphicUtilities.h:93
DtWaterOnScreenParameters myParams
Definition: DtWaterOnScreenDrawable.h:111
2 dimensional vector
unsigned int myMutableWaterOnScreenProgram
Definition: DtWaterOnScreenDrawable.h:107
float vrv_fovy
Definition: DtWaterOnScreenDrawable.h:47
int myMutableVrvEffectIntensityLoc
locations of various uniforms for the shaders
Definition: DtWaterOnScreenDrawable.h:114
int myMutableVrvWaterNormalsLoc
Definition: DtWaterOnScreenDrawable.h:118
Definition: DtVirtualBaseClassCreator.h:14
float vrv_effectIntensity
Definition: DtWaterOnScreenDrawable.h:42
int myMutableVrvFovLoc
Definition: DtWaterOnScreenDrawable.h:120
float vrv_offset
Definition: DtWaterOnScreenDrawable.h:43
Definition: DtPostProcessorDrawable.h:23
int myMutableVrvAspectRatioLoc
Definition: DtWaterOnScreenDrawable.h:121
osg::ref_ptr< osg::Texture > myNormalMap
Definition: DtWaterOnScreenDrawable.h:109
#define DT_DLL_VRVPOSTPROCESSOR
Definition: vrvPostProcessor.h:19
class used to render water on screen effects during the post processor camera draw ...
Definition: DtWaterOnScreenDrawable.h:58
This file contains the declaration of the class DtPostProcessorDrawable which is used for rendering p...
DtWaterOnScreenParameters()
Definition: DtWaterOnScreenDrawable.h:34
Contains DLL export macros.
float vrv_aspectRatio
Definition: DtWaterOnScreenDrawable.h:46
const char * creatorTypeName< DtWaterOnScreenDrawable >(void)
creator class
Definition: DtWaterOnScreenDrawable.h:55
float vrv_opacity
Definition: DtWaterOnScreenDrawable.h:44
friend DtWaterOnScreenDrawableCreator
friended, to access constructor above
Definition: DtWaterOnScreenDrawable.h:72
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
DtVirtualBaseClassCreator< DtWaterOnScreenDrawable > DtWaterOnScreenDrawableCreator
Definition: DtWaterOnScreenDrawable.h:50
int myMutableVrvOffsetLoc
Definition: DtWaterOnScreenDrawable.h:115
structure to exchange/communicate various parameters for the water on screen effect ...
Definition: DtWaterOnScreenDrawable.h:32
int myMutableVrvOpacityLoc
Definition: DtWaterOnScreenDrawable.h:116

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)