VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSubmitOverlayCallback.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
10 
11 #pragma once
12 
14 
15 #include <osg/Texture2D>
16 #include <osg/Camera>
17 #include <osg/Matrixd>
18 
19 namespace makVrv
20 {
23  class DT_DLL_VRVVR DtSubmitOverlayCallback : public osg::Camera::DrawCallback
24  {
25  private:
28 
31 
34 
35  public:
37  DtSubmitOverlayCallback(osg::Texture2D* tex, DtDe& de);
38 
40  virtual ~DtSubmitOverlayCallback();
41 
43  virtual void operator()(osg::RenderInfo& renderInfo) const;
44 
47  virtual osg::Matrixd offsetMatrix();
48 
51  virtual void setOffsetMatrix(const osg::Matrixd& mat);
52 
55  virtual void setFlipOverlay(bool flip);
56 
58  virtual bool flipOverlay() const;
59 
60  protected:
62  uint64_t myOverlay;
63  osg::ref_ptr<osg::Texture2D> myOverlayTexture;
64  osg::Matrix myOffsetMatrix;
66  };
67 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)