typedef std::pair< int , osg::ref_ptr<RenderStage> > osgUtil::RenderStage::RenderStageOrderPair [protected] |
typedef std::list< RenderStageOrderPair > osgUtil::RenderStage::RenderStageList [protected] |
typedef std::vector< osg::ref_ptr<osg::Camera> > osgUtil::RenderStage::Cameras [protected] |
osgUtil::RenderStage::RenderStage | ( | ) |
osgUtil::RenderStage::RenderStage | ( | SortMode | mode | ) |
osgUtil::RenderStage::RenderStage | ( | const RenderStage & | rhs, | |
const osg::CopyOp & | copyop = osg::CopyOp::SHALLOW_COPY | |||
) |
virtual osgUtil::RenderStage::~RenderStage | ( | ) | [protected, virtual] |
virtual osg::Object* osgUtil::RenderStage::cloneType | ( | ) | const [inline, virtual] |
Clone the type of an object, with Object* return type. Must be defined by derived classes.
Reimplemented from osgUtil::RenderBin.
virtual osg::Object* osgUtil::RenderStage::clone | ( | const osg::CopyOp & | ) | const [inline, virtual] |
Clone an object, with Object* return type. Must be defined by derived classes.
Reimplemented from osgUtil::RenderBin.
virtual bool osgUtil::RenderStage::isSameKindAs | ( | const osg::Object * | obj | ) | const [inline, virtual] |
Reimplemented from osgUtil::RenderBin.
virtual const char* osgUtil::RenderStage::className | ( | ) | const [inline, virtual] |
return the name of the object's class type. Must be defined by derived classes.
Reimplemented from osgUtil::RenderBin.
virtual void osgUtil::RenderStage::reset | ( | ) | [virtual] |
Reimplemented from osgUtil::RenderBin.
void osgUtil::RenderStage::setDrawBuffer | ( | GLenum | buffer, | |
bool | applyMask = true | |||
) | [inline] |
Set the draw buffer used at the start of each frame draw.
GLenum osgUtil::RenderStage::getDrawBuffer | ( | ) | const [inline] |
Get the draw buffer used at the start of each frame draw.
bool osgUtil::RenderStage::getDrawBufferApplyMask | ( | ) | const [inline] |
Get the apply mask defining whether glDrawBuffer is called at each frame draw.
void osgUtil::RenderStage::setDrawBufferApplyMask | ( | bool | applyMask | ) | [inline] |
Set the apply mask defining whether glDrawBuffer is called at each frame draw.
void osgUtil::RenderStage::setReadBuffer | ( | GLenum | buffer, | |
bool | applyMask = true | |||
) | [inline] |
Set the read buffer for any required copy operations to use.
GLenum osgUtil::RenderStage::getReadBuffer | ( | ) | const [inline] |
Get the read buffer for any required copy operations to use.
bool osgUtil::RenderStage::getReadBufferApplyMask | ( | ) | const [inline] |
Get the apply mask defining whether glReadBuffer is called at each frame draw.
void osgUtil::RenderStage::setReadBufferApplyMask | ( | bool | applyMask | ) | [inline] |
Set the apply mask defining whether glReadBuffer is called at each frame draw.
void osgUtil::RenderStage::setViewport | ( | osg::Viewport * | viewport | ) | [inline] |
Set the viewport.
const osg::Viewport* osgUtil::RenderStage::getViewport | ( | ) | const [inline] |
Get the const viewport.
osg::Viewport* osgUtil::RenderStage::getViewport | ( | ) | [inline] |
Get the viewport.
void osgUtil::RenderStage::setClearMask | ( | GLbitfield | mask | ) | [inline] |
Set the clear mask used in glClear(..). Defaults to GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT.
GLbitfield osgUtil::RenderStage::getClearMask | ( | ) | const [inline] |
Get the clear mask.
void osgUtil::RenderStage::setColorMask | ( | osg::ColorMask * | cm | ) | [inline] |
osg::ColorMask* osgUtil::RenderStage::getColorMask | ( | ) | [inline] |
const osg::ColorMask* osgUtil::RenderStage::getColorMask | ( | ) | const [inline] |
void osgUtil::RenderStage::setClearColor | ( | const osg::Vec4 & | color | ) | [inline] |
Set the clear color used in glClearColor(..). glClearColor is only called if mask & GL_COLOR_BUFFER_BIT is true
const osg::Vec4& osgUtil::RenderStage::getClearColor | ( | ) | const [inline] |
Get the clear color.
void osgUtil::RenderStage::setClearAccum | ( | const osg::Vec4 & | color | ) | [inline] |
Set the clear accum used in glClearAccum(..). glClearAcumm is only called if mask & GL_ACCUM_BUFFER_BIT is true.
const osg::Vec4& osgUtil::RenderStage::getClearAccum | ( | ) | const [inline] |
Get the clear accum.
void osgUtil::RenderStage::setClearDepth | ( | double | depth | ) | [inline] |
Set the clear depth used in glClearDepth(..). Defaults to 1.0 glClearDepth is only called if mask & GL_DEPTH_BUFFER_BIT is true.
double osgUtil::RenderStage::getClearDepth | ( | ) | const [inline] |
Get the clear depth.
void osgUtil::RenderStage::setClearStencil | ( | int | stencil | ) | [inline] |
Set the clear stencil value used in glClearStencil(). Defaults to 0; glClearStencil is only called if mask & GL_STENCIL_BUFFER_BIT is true
int osgUtil::RenderStage::getClearStencil | ( | ) | const [inline] |
Get the clear color.
void osgUtil::RenderStage::setCamera | ( | osg::Camera * | camera | ) | [inline] |
osg::Camera* osgUtil::RenderStage::getCamera | ( | ) | [inline] |
Referenced by osgUtil::CullVisitor::getCurrentCamera().
const osg::Camera* osgUtil::RenderStage::getCamera | ( | ) | const [inline] |
void osgUtil::RenderStage::setCameraRequiresSetUp | ( | bool | flag | ) | [inline] |
bool osgUtil::RenderStage::getCameraRequiresSetUp | ( | ) | const [inline] |
void osgUtil::RenderStage::runCameraSetUp | ( | osg::RenderInfo & | renderInfo | ) |
Attempt the set the RenderStage from the Camera settings.
void osgUtil::RenderStage::setTexture | ( | osg::Texture * | texture, | |
unsigned int | level = 0 , |
|||
unsigned int | face = 0 | |||
) | [inline] |
osg::Texture* osgUtil::RenderStage::getTexture | ( | ) | [inline] |
void osgUtil::RenderStage::setImage | ( | osg::Image * | image | ) | [inline] |
osg::Image* osgUtil::RenderStage::getImage | ( | ) | [inline] |
void osgUtil::RenderStage::setImageReadPixelFormat | ( | GLenum | format | ) | [inline] |
GLenum osgUtil::RenderStage::getImageReadPixelFormat | ( | ) | const [inline] |
void osgUtil::RenderStage::setImageReadPixelDataType | ( | GLenum | type | ) | [inline] |
GLenum osgUtil::RenderStage::getImageReadPixelDataType | ( | ) | const [inline] |
void osgUtil::RenderStage::setFrameBufferObject | ( | osg::FrameBufferObject * | fbo | ) | [inline] |
Set a framebuffer object to render into. It is permissible for the framebuffer object to be multisampled, in which case you should also set a resolve framebuffer object - see setMultisampleResolveFramebufferObject().
osg::FrameBufferObject* osgUtil::RenderStage::getFrameBufferObject | ( | ) | [inline] |
const osg::FrameBufferObject* osgUtil::RenderStage::getFrameBufferObject | ( | ) | const [inline] |
void osgUtil::RenderStage::setMultisampleResolveFramebufferObject | ( | osg::FrameBufferObject * | fbo | ) |
Sets the destination framebuffer object for glBlitFramebufferEXT to resolve a multisampled framebuffer object after the RenderStage is drawn. The resolve framebuffer object must not be multisampled. The resolve framebuffer object is only necessary if the primary framebuffer object is multisampled, if not then leave it set to null.
osg::FrameBufferObject* osgUtil::RenderStage::getMultisampleResolveFramebufferObject | ( | ) | [inline] |
const osg::FrameBufferObject* osgUtil::RenderStage::getMultisampleResolveFramebufferObject | ( | ) | const [inline] |
void osgUtil::RenderStage::setDisableFboAfterRender | ( | bool | disable | ) | [inline] |
Set whether the framebuffer object should be unbound after rendering. By default this is set to true. Set it to false if the unbinding is not required.
bool osgUtil::RenderStage::getDisableFboAfterRender | ( | ) | const [inline] |
void osgUtil::RenderStage::setGraphicsContext | ( | osg::GraphicsContext * | context | ) | [inline] |
osg::GraphicsContext* osgUtil::RenderStage::getGraphicsContext | ( | ) | [inline] |
const osg::GraphicsContext* osgUtil::RenderStage::getGraphicsContext | ( | ) | const [inline] |
void osgUtil::RenderStage::setInheritedPositionalStateContainerMatrix | ( | const osg::Matrix & | matrix | ) | [inline] |
const osg::Matrix& osgUtil::RenderStage::getInheritedPositionalStateContainerMatrix | ( | ) | const [inline] |
void osgUtil::RenderStage::setInheritedPositionalStateContainer | ( | PositionalStateContainer * | rsl | ) | [inline] |
PositionalStateContainer* osgUtil::RenderStage::getInheritedPositionalStateContainer | ( | ) | [inline] |
void osgUtil::RenderStage::setPositionalStateContainer | ( | PositionalStateContainer * | rsl | ) | [inline] |
PositionalStateContainer* osgUtil::RenderStage::getPositionalStateContainer | ( | ) | const [inline] |
virtual void osgUtil::RenderStage::addPositionedAttribute | ( | osg::RefMatrix * | matrix, | |
const osg::StateAttribute * | attr | |||
) | [inline, virtual] |
References osgUtil::PositionalStateContainer::addPositionedAttribute().
Referenced by osgUtil::CullVisitor::addPositionedAttribute().
virtual void osgUtil::RenderStage::addPositionedTextureAttribute | ( | unsigned int | textureUnit, | |
osg::RefMatrix * | matrix, | |||
const osg::StateAttribute * | attr | |||
) | [inline, virtual] |
Referenced by osgUtil::CullVisitor::addPositionedTextureAttribute().
void osgUtil::RenderStage::copyTexture | ( | osg::RenderInfo & | renderInfo | ) |
virtual void osgUtil::RenderStage::sort | ( | ) | [virtual] |
Reimplemented from osgUtil::RenderBin.
virtual void osgUtil::RenderStage::drawPreRenderStages | ( | osg::RenderInfo & | renderInfo, | |
RenderLeaf *& | previous | |||
) | [virtual] |
virtual void osgUtil::RenderStage::draw | ( | osg::RenderInfo & | renderInfo, | |
RenderLeaf *& | previous | |||
) | [virtual] |
Reimplemented from osgUtil::RenderBin.
virtual void osgUtil::RenderStage::drawInner | ( | osg::RenderInfo & | renderInfo, | |
RenderLeaf *& | previous, | |||
bool & | doCopyTexture | |||
) | [virtual] |
virtual void osgUtil::RenderStage::drawPostRenderStages | ( | osg::RenderInfo & | renderInfo, | |
RenderLeaf *& | previous | |||
) | [virtual] |
virtual void osgUtil::RenderStage::drawImplementation | ( | osg::RenderInfo & | renderInfo, | |
RenderLeaf *& | previous | |||
) | [virtual] |
Reimplemented from osgUtil::RenderBin.
void osgUtil::RenderStage::addToDependencyList | ( | RenderStage * | rs | ) | [inline] |
void osgUtil::RenderStage::addPreRenderStage | ( | RenderStage * | rs, | |
int | order = 0 | |||
) |
void osgUtil::RenderStage::addPostRenderStage | ( | RenderStage * | rs, | |
int | order = 0 | |||
) |
bool osgUtil::RenderStage::getStats | ( | Statistics & | stats | ) | const |
Extract stats for current draw list.
Reimplemented from osgUtil::RenderBin.
virtual unsigned int osgUtil::RenderStage::computeNumberOfDynamicRenderLeaves | ( | ) | const [virtual] |
Compute the number of dynamic RenderLeaves.
Reimplemented from osgUtil::RenderBin.
void osgUtil::RenderStage::attach | ( | osg::Camera::BufferComponent | buffer, | |
osg::Image * | image | |||
) |
void osgUtil::RenderStage::collateReferencesToDependentCameras | ( | ) |
search through any pre and post RenderStage that reference a Camera, and take a reference to each of these cameras to prevent them being deleted while they are still be used by the drawing thread.
void osgUtil::RenderStage::clearReferencesToDependentCameras | ( | ) |
clear the references to any dependent cameras.
bool osgUtil::RenderStage::_stageDrawnThisFrame [protected] |
RenderStageList osgUtil::RenderStage::_preRenderList [protected] |
RenderStageList osgUtil::RenderStage::_postRenderList [protected] |
Cameras osgUtil::RenderStage::_dependentCameras [protected] |
osg::ref_ptr<osg::Viewport> osgUtil::RenderStage::_viewport [protected] |
GLenum osgUtil::RenderStage::_drawBuffer [protected] |
bool osgUtil::RenderStage::_drawBufferApplyMask [protected] |
GLenum osgUtil::RenderStage::_readBuffer [protected] |
bool osgUtil::RenderStage::_readBufferApplyMask [protected] |
GLbitfield osgUtil::RenderStage::_clearMask [protected] |
osg::ref_ptr<osg::ColorMask> osgUtil::RenderStage::_colorMask [protected] |
osg::Vec4 osgUtil::RenderStage::_clearColor [protected] |
osg::Vec4 osgUtil::RenderStage::_clearAccum [protected] |
double osgUtil::RenderStage::_clearDepth [protected] |
int osgUtil::RenderStage::_clearStencil [protected] |
bool osgUtil::RenderStage::_cameraRequiresSetUp [protected] |
osg::Camera* osgUtil::RenderStage::_camera [protected] |
osg::ref_ptr<osg::Texture> osgUtil::RenderStage::_texture [protected] |
unsigned int osgUtil::RenderStage::_level [protected] |
unsigned int osgUtil::RenderStage::_face [protected] |
osg::ref_ptr<osg::Image> osgUtil::RenderStage::_image [protected] |
GLenum osgUtil::RenderStage::_imageReadPixelFormat [protected] |
GLenum osgUtil::RenderStage::_imageReadPixelDataType [protected] |
std::map< osg::Camera::BufferComponent, Attachment> osgUtil::RenderStage::_bufferAttachmentMap [protected] |
osg::ref_ptr<osg::FrameBufferObject> osgUtil::RenderStage::_fbo [protected] |
bool osgUtil::RenderStage::_disableFboAfterRender [protected] |
osg::Matrix osgUtil::RenderStage::_inheritedPositionalStateContainerMatrix [mutable, protected] |
osg::ref_ptr<PositionalStateContainer> osgUtil::RenderStage::_inheritedPositionalStateContainer [mutable, protected] |
osg::ref_ptr<PositionalStateContainer> osgUtil::RenderStage::_renderStageLighting [mutable, protected] |