VR-Forces 4.6 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 (int width, int height, DtGlRenderTexture::ImageType internalFormat=DtGlRenderTexture::RGBA8)
 create with an internal texture with a given width/height and internal format
 DtBlitOsgToGlTexture (unsigned int id)
 create with an extern OpenGL texture
virtual ~DtBlitOsgToGlTexture ()
 Destructor.
virtual unsigned int id () const
 the OpenGL texture ID of the internal color buffer
virtual void blit (osg::State *state, osg::Texture2D *source) const
 blit from the given osg texture to the internal texture using a passthrough shader

Protected Member Functions

void createShader ()
 creates the blit shader

Protected Attributes

DtGlProgrammyShader
DtGlRenderTexturemyRtt
DtGlScreenQuadmyScreenQuad
DtGlRenderTexture::ImageType myInternalFormat
unsigned int myWidth
unsigned int myHeight

Private Member Functions

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

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 ( int  width,
int  height,
DtGlRenderTexture::ImageType  internalFormat = DtGlRenderTexture::RGBA8 
)

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

makVrv::DtBlitOsgToGlTexture::DtBlitOsgToGlTexture ( 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::Texture2D *  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
DtGlRenderTexture::ImageType makVrv::DtBlitOsgToGlTexture::myInternalFormat
protected
unsigned int makVrv::DtBlitOsgToGlTexture::myWidth
protected
unsigned int makVrv::DtBlitOsgToGlTexture::myHeight
protected

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

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)