Changeset 374 for experimental/distortionNG/DistortionSet.h
- Timestamp:
- Jun 2, 2012, 11:53:38 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/distortionNG/DistortionSet.h
r361 r374 24 24 #include <osg/Switch> 25 25 #include <osg/Shader> 26 #include <osg/Geometry> 26 27 27 28 namespace osgViewer { … … 75 76 int getDistortionMeshColumns() const { return _distortionMeshColumns; } 76 77 78 void setDistortionMesh(osg::Geometry*); 79 const osg::Geometry* getDistortionMesh() const; 80 77 81 void setMeshType(GLenum meshType) { _meshType = meshType; } 78 82 inline GLenum getMeshType() const { return _meshType; } … … 110 114 osg::Matrixd _projectionOffset; 111 115 116 // Interconnect-Pointer to allow access between distortion elements (osgViewer) and the distortion manipulator. 117 // These variable are therefor not saved/restored by the serializer but populated on runtime. 112 118 bool _showIntesityMapMapOnly; // Intensity Blending is done by a frag shader. To control it on runtime, the uniform must be bound to a central variable. 113 114 // Interconnect-Pointer to allow acces between distortion elements (osgViewer) and the distortion manipulator.115 // These variable are therefor not saved/restored by the serializer but populated on runtime.116 119 osg::observer_ptr<osg::Camera> _camera; // is used to pass the distortion cam from osgViewers setupDistortion() method to the manipulator. 117 120 osg::ref_ptr<osg::Switch> _distortionInternals; // definition: child #0 = mesh, #1 = highlighter, #2 HUD
Note: See TracChangeset
for help on using the changeset viewer.