![]() |
VR-Forces 5.0.1 Developer's Guide
|
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 &) |
|
private |
prevent default constructor
|
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
create with an extern OpenGL texture
|
virtual |
Destructor.
|
private |
prevent assignment
the OpenGL texture ID of the internal color buffer
|
virtual |
blit from the given osg texture to the internal texture using a passthrough shader
|
protected |
creates the blit shader
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |