VR-Forces Developer's Guide
 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.

Public Member Functions

 DtBlitOsgToGlTexture (DtDe &de, int width, int height, DtGlImageType internalFormat=RGBA8, int depth=1, bool useMultiView=false)
 
 DtBlitOsgToGlTexture (DtDe &de, unsigned int id)
 
virtual ~DtBlitOsgToGlTexture ()
 
virtual unsigned int id () const
 
virtual void blit (osg::State *state, osg::Texture *source) const
 

Protected Member Functions

void createShader ()
 

Protected Attributes

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

Private Member Functions

 DtBlitOsgToGlTexture ()
 
 DtBlitOsgToGlTexture (const DtBlitOsgToGlTexture &)
 
DtBlitOsgToGlTexture & operator= (const DtBlitOsgToGlTexture &)
 

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 Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)