VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
makVrv::DtBlitOsgToGlTexture Class Reference

A helper class for blitting between an osg texture and an internal texture identified by its OpenGL id. More...

Public Member Functions

 DtBlitOsgToGlTexture (DtDe &de, int width, int height, DtGlImageType internalFormat=RGBA8, int depth=1, bool useMultiView=false)
 create with an internal texture with a given width/height and internal format More...
 
 DtBlitOsgToGlTexture (DtDe &de, unsigned int id)
 create with an extern OpenGL texture More...
 
virtual ~DtBlitOsgToGlTexture ()
 Destructor. More...
 
virtual unsigned int id () const
 the OpenGL texture ID of the internal color buffer More...
 
virtual void blit (osg::State *state, osg::Texture *source) const
 blit from the given osg texture to the internal texture using a passthrough shader More...
 

Protected Member Functions

void createShader ()
 creates the blit shader More...
 

Protected Attributes

DtGlProgrammyShader
 
DtGlRenderTexturemyRtt
 
DtGlScreenQuadmyScreenQuad
 
DtGlImageType myInternalFormat
 
unsigned int myWidth
 
unsigned int myHeight
 
unsigned int myDepth
 
bool myUseMultiView
 
DtDemyDe
 

Private Member Functions

 DtBlitOsgToGlTexture ()
 prevent default constructor More...
 
 DtBlitOsgToGlTexture (const DtBlitOsgToGlTexture &)
 prevent copy-construction More...
 
DtBlitOsgToGlTextureoperator= (const DtBlitOsgToGlTexture &)
 prevent assignment More...
 

Detailed Description

A helper class for blitting between an osg texture and an internal texture identified by its OpenGL id.

Constructor & Destructor Documentation

makVrv::DtBlitOsgToGlTexture::DtBlitOsgToGlTexture ( )
private

prevent default constructor

makVrv::DtBlitOsgToGlTexture::DtBlitOsgToGlTexture ( const DtBlitOsgToGlTexture )
private

prevent copy-construction

makVrv::DtBlitOsgToGlTexture::DtBlitOsgToGlTexture ( DtDe de,
int  width,
int  height,
DtGlImageType  internalFormat = RGBA8,
int  depth = 1,
bool  useMultiView = false 
)

create with an internal texture with a given width/height and internal format

makVrv::DtBlitOsgToGlTexture::DtBlitOsgToGlTexture ( DtDe de,
unsigned int  id 
)

create with an extern OpenGL texture

virtual makVrv::DtBlitOsgToGlTexture::~DtBlitOsgToGlTexture ( )
virtual

Destructor.

Member Function Documentation

DtBlitOsgToGlTexture& makVrv::DtBlitOsgToGlTexture::operator= ( const DtBlitOsgToGlTexture )
private

prevent assignment

virtual unsigned int makVrv::DtBlitOsgToGlTexture::id ( ) const
virtual

the OpenGL texture ID of the internal color buffer

virtual void makVrv::DtBlitOsgToGlTexture::blit ( osg::State *  state,
osg::Texture *  source 
) const
virtual

blit from the given osg texture to the internal texture using a passthrough shader

void makVrv::DtBlitOsgToGlTexture::createShader ( )
protected

creates the blit shader

Member Data Documentation

DtGlProgram* makVrv::DtBlitOsgToGlTexture::myShader
protected
DtGlRenderTexture* makVrv::DtBlitOsgToGlTexture::myRtt
protected
DtGlScreenQuad* makVrv::DtBlitOsgToGlTexture::myScreenQuad
protected
DtGlImageType makVrv::DtBlitOsgToGlTexture::myInternalFormat
protected
unsigned int makVrv::DtBlitOsgToGlTexture::myWidth
protected
unsigned int makVrv::DtBlitOsgToGlTexture::myHeight
protected
unsigned int makVrv::DtBlitOsgToGlTexture::myDepth
protected
bool makVrv::DtBlitOsgToGlTexture::myUseMultiView
protected
DtDe& makVrv::DtBlitOsgToGlTexture::myDe
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)