![]() |
VR-Forces 4.6 Class Documentation
|
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 | |
| DtGlProgram * | myShader |
| DtGlRenderTexture * | myRtt |
| DtGlScreenQuad * | myScreenQuad |
| DtGlRenderTexture::ImageType | myInternalFormat |
| unsigned int | myWidth |
| unsigned int | myHeight |
Private Member Functions | |
| DtBlitOsgToGlTexture () | |
| prevent default constructor | |
| DtBlitOsgToGlTexture (const DtBlitOsgToGlTexture &) | |
| prevent copy-construction | |
| DtBlitOsgToGlTexture & | operator= (const DtBlitOsgToGlTexture &) |
| prevent assignment | |
A helper class for blitting between an osg texture and an internal texture identified by its OpenGL id.
|
private |
prevent default constructor
|
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
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 |