VR-Forces Developer's Guide
 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) 2020 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  class DtDe;
23 
27  {
28  private:
31 
34 
36  DtBlitOsgToGlTexture& operator=(const DtBlitOsgToGlTexture&);
37 
38  public:
40  DtBlitOsgToGlTexture(DtDe& de, int width, int height, DtGlImageType internalFormat = RGBA8, int depth = 1, bool useMultiView = false);
41 
43  DtBlitOsgToGlTexture(DtDe& de, unsigned int id);
44 
46  virtual ~DtBlitOsgToGlTexture();
47 
49  virtual unsigned int id() const;
50 
52  virtual void blit(osg::State* state, osg::Texture* source) const;
53 
54  protected:
56  void createShader();
57 
61 
63  unsigned int myWidth;
64  unsigned int myHeight;
65  unsigned int myDepth;
67 
69  };
70 }
A helper classes for creating a RTT target, optionally including depth buffer.
Definition: DtGlRenderToTexture.h:46
bool myUseMultiView
Definition: DtBlitOsgToGlTexture.h:66
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
DtDe & myDe
Definition: DtBlitOsgToGlTexture.h:68
unsigned int myWidth
Definition: DtBlitOsgToGlTexture.h:63
unsigned int myHeight
Definition: DtBlitOsgToGlTexture.h:64
A convenience class to represent an OpenGL Shader Program.
Definition: DtGlProgram.h:66
DtGlScreenQuad * myScreenQuad
Definition: DtBlitOsgToGlTexture.h:60
A helper classes for creating a RTT target, optionally including depth buffer.
DtGlImageType
Definition: DtGlImageType.h:15
A helper classes for Rendering a fullscreen quad.
Definition: DtGlScreenQuad.h:17
unsigned int myDepth
Definition: DtBlitOsgToGlTexture.h:65
DtGlProgram * myShader
Definition: DtBlitOsgToGlTexture.h:58
DtGlImageType myInternalFormat
Definition: DtBlitOsgToGlTexture.h:62
const char * source
Definition: lz4.h:442
Definition: DtGlImageType.h:17
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
A helper class for blitting between an osg texture and an internal texture identified by its OpenGL i...
Definition: DtBlitOsgToGlTexture.h:26
DtGlRenderTexture * myRtt
Definition: DtBlitOsgToGlTexture.h:59

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)