![]() |
VR-Forces Developer's Guide
|
class used to render hdr during the post processor camera draw

Public Member Functions | |
| DtHdrDrawable (DtDe &de, DtHdrOptions options, osg::Texture *lensFlareTexture, bool isFirstChannel) | |
| virtual | ~DtHdrDrawable () |
| virtual void | drawImplementation (osg::RenderInfo &renderInfo) const override |
| virtual void | setInputTexture (osg::Texture *inputTex) |
| virtual void | setEnabled (bool enabled) |
| virtual bool | enabled () |
| virtual DtHdrOptions & | options () |
| virtual void | setLumOverride (bool lumOverride) |
| virtual bool | lumOverride (void) const |
| virtual void | setHdrPassthrough (bool enable) |
| virtual bool | hdrPassthrough () const |
| virtual void | cleanupGpuMemory () |
| virtual float | localHdrOutputScale () |
Public Member Functions inherited from makVrv::DtPostProcessorDrawable | |
| DtPostProcessorDrawable (DtDe &de) | |
| DtPostProcessorDrawable (const DtPostProcessorDrawable &orig, const osg::CopyOp &op) | |
| virtual | ~DtPostProcessorDrawable () |
| virtual void | drawTexturedQuad (bool drawOnly=false) const |
| virtual void | beginTexturedQuad () const |
| virtual void | endTexturedQuad () const |
| virtual std::string | preprocessorDefinesString (void) const |
| virtual DtGlProgram * | createProgram (const std::string &path, const std::string &prefixName, const std::string &preprocessor="") const |
| virtual void | releaseGLObjects (osg::State *state=0) const override |
Protected Attributes | |
| bool | myEnabled |
| DtHdrOptions | myOptions |
| bool | myLumOverride |
| bool | myEnableHdrPassthrough |
| DtHdrDrawableRenderData * | myRenderData = nullptr |
| const bool | myIsFirstChannel = false |
Protected Attributes inherited from makVrv::DtPostProcessorDrawable | |
| DtDe & | myDe |
| DtGlBuffer * | myMutableVbo = nullptr |
| DtCoreGlBufferCreator & | myDtCoreGlBufferCreator |
| DtGlDeleteObjectManager & | myGlDeleteObjectManager |
Private Member Functions | |
| DtHdrDrawable ()=delete | |
| DtHdrDrawable (const DtHdrDrawable &)=delete | |
| DtHdrDrawable & | operator= (const DtHdrDrawable &)=delete |
Friends | |
| class | DtHdrDrawableRenderData |
Additional Inherited Members | |
Protected Member Functions inherited from makVrv::DtPostProcessorDrawable | |
| void | setupGeometry () const |
| makVrv::DtHdrDrawable::DtHdrDrawable | ( | DtDe & | de, |
| DtHdrOptions | options, | ||
| osg::Texture * | lensFlareTexture, | ||
| bool | isFirstChannel | ||
| ) |
constructor that passes in the options needed for setting up HDR
|
virtual |
Destructor.
|
privatedelete |
private default constructor. not allowed.
|
privatedelete |
prevent copy-construction
|
privatedelete |
prevent assignment
|
overridevirtual |
overridden currently unneeded because the postprocessor drawable is always deleted/recreated because of channel creation/destruction virtual void releaseGLObjects(osg::State* state = 0) const; //!
overridden overridden
|
virtual |
setter for the input texture from the previous post processor or main rendering
|
virtual |
setter/getter for whether or not this effect is enabled.
|
virtual |
|
virtual |
getter for the hdr options. returns a reference so modifications will effect this drawable.
|
virtual |
setter for whether or not the luminance override should be turned on for this drawable the luminance override is used to render modes that have the sky turned of when HDR is turned on.
|
virtual |
|
virtual |
getter/setter for the whether the HDR post processor
|
virtual |
|
virtual |
cleanup the Gpu memory. this should be called in the render thread before throwing away a ref_ptr to the drawable.
|
virtual |
hdr output scale this drawable calculated or used last frame
|
friend |
This class encapsulates all the (lazily) created OpenGL objects that are required for doing hdr. It also executes the various hdr passes and the final tone mapping pass..
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |