VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtBlitOsgToGlTexture.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
15 
16 #include <osg/Texture2D>
17 
18 namespace makVrv
19 {
20  class DtGlProgram;
21  class DtGlScreenQuad;
22 
26  {
27  private:
30 
33 
35  DtBlitOsgToGlTexture& operator=(const DtBlitOsgToGlTexture&);
36 
37  public:
39  DtBlitOsgToGlTexture(int width, int height, DtGlRenderTexture::ImageType internalFormat = DtGlRenderTexture::RGBA8);
40 
42  DtBlitOsgToGlTexture(unsigned int id);
43 
45  virtual ~DtBlitOsgToGlTexture();
46 
48  virtual unsigned int id() const;
49 
51  virtual void blit(osg::State* state, osg::Texture2D* source) const;
52 
53  protected:
55  void createShader();
56 
60 
62  unsigned int myWidth;
63  unsigned int myHeight;
64  };
65 }

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)