|
Public Types |
typedef std::map< BufferComponent,
Attachment > | BufferAttachmentMap |
enum | TransformOrder { PRE_MULTIPLY,
POST_MULTIPLY
} |
enum | RenderOrder { PRE_RENDER,
NESTED_RENDER,
POST_RENDER
} |
enum | RenderTargetImplementation {
FRAME_BUFFER_OBJECT,
PIXEL_BUFFER_RTT,
PIXEL_BUFFER,
FRAME_BUFFER,
SEPERATE_WINDOW
} |
enum | BufferComponent {
DEPTH_BUFFER,
STENCIL_BUFFER,
COLOR_BUFFER,
COLOR_BUFFER0 = COLOR_BUFFER,
COLOR_BUFFER1 = COLOR_BUFFER+1,
COLOR_BUFFER2 = COLOR_BUFFER+2,
COLOR_BUFFER3 = COLOR_BUFFER+3,
COLOR_BUFFER4 = COLOR_BUFFER+4,
COLOR_BUFFER5 = COLOR_BUFFER+5,
COLOR_BUFFER6 = COLOR_BUFFER+6,
COLOR_BUFFER7 = COLOR_BUFFER+7
} |
Public Member Functions |
| CameraNode () |
| CameraNode (const CameraNode &, const CopyOp ©op=CopyOp::SHALLOW_COPY) |
| META_Node (osg, CameraNode) |
void | setClearColor (const Vec4 &color) |
const Vec4 & | getClearColor () const |
void | setClearMask (GLbitfield mask) |
GLbitfield | getClearMask () const |
void | setColorMask (osg::ColorMask *colorMask) |
void | setColorMask (bool red, bool green, bool blue, bool alpha) |
const ColorMask * | getColorMask () const |
ColorMask * | getColorMask () |
void | setViewport (osg::Viewport *viewport) |
void | setViewport (int x, int y, int width, int height) |
const Viewport * | getViewport () const |
Viewport * | getViewport () |
void | setTransformOrder (TransformOrder order) |
TransformOrder | getTransformOrder () const |
void | setProjectionMatrix (const osg::Matrixf &matrix) |
void | setProjectionMatrix (const osg::Matrixd &matrix) |
void | setProjectionMatrixAsOrtho (double left, double right, double bottom, double top, double zNear, double zFar) |
void | setProjectionMatrixAsOrtho2D (double left, double right, double bottom, double top) |
void | setProjectionMatrixAsFrustum (double left, double right, double bottom, double top, double zNear, double zFar) |
void | setProjectionMatrixAsPerspective (double fovy, double aspectRatio, double zNear, double zFar) |
osg::Matrixd & | getProjectionMatrix () |
const osg::Matrixd & | getProjectionMatrix () const |
bool | getProjectionMatrixAsOrtho (double &left, double &right, double &bottom, double &top, double &zNear, double &zFar) |
bool | getProjectionMatrixAsFrustum (double &left, double &right, double &bottom, double &top, double &zNear, double &zFar) |
bool | getProjectionMatrixAsPerspective (double &fovy, double &aspectRatio, double &zNear, double &zFar) |
void | setViewMatrix (const osg::Matrixf &matrix) |
void | setViewMatrix (const osg::Matrixd &matrix) |
void | setViewMatrixAsLookAt (const osg::Vec3 &eye, const osg::Vec3 ¢er, const osg::Vec3 &up) |
osg::Matrixd & | getViewMatrix () |
const osg::Matrixd & | getViewMatrix () const |
void | getViewMatrixAsLookAt (osg::Vec3 &eye, osg::Vec3 ¢er, osg::Vec3 &up, float lookDistance=1.0f) |
Matrixd | getInverseViewMatrix () const |
void | setRenderOrder (RenderOrder order, int orderNum=0) |
RenderOrder | getRenderOrder () const |
int | getRenderOrderNum () const |
bool | isRenderToTextureCamera () const |
void | setRenderTargetImplementation (RenderTargetImplementation impl) |
void | setRenderTargetImplementation (RenderTargetImplementation impl, RenderTargetImplementation fallback) |
RenderTargetImplementation | getRenderTargetImplementation () const |
RenderTargetImplementation | getRenderTargetFallback () const |
void | setDrawBuffer (GLenum buffer) |
GLenum | getDrawBuffer () const |
void | setReadBuffer (GLenum buffer) |
GLenum | getReadBuffer () const |
void | attach (BufferComponent buffer, GLenum internalFormat) |
void | attach (BufferComponent buffer, osg::Texture *texture, unsigned int level=0, unsigned int face=0, bool mipMapGeneration=false) |
void | attach (BufferComponent buffer, osg::Image *image) |
void | detach (BufferComponent buffer) |
BufferAttachmentMap & | getBufferAttachmentMap () |
const BufferAttachmentMap & | getBufferAttachmentMap () const |
void | setGraphicsContext (GraphicsContext *context) |
GraphicsContext * | getGraphicsContext () |
const GraphicsContext * | getGraphicsContext () const |
void | setRenderingCache (unsigned int contextID, osg::Object *rc) |
osg::Object * | getRenderingCache (unsigned int contextID) |
const osg::Object * | getRenderingCache (unsigned int contextID) const |
void | setPostDrawCallback (DrawCallback *cb) |
DrawCallback * | getPostDrawCallback () |
const DrawCallback * | getPostDrawCallback () const |
OpenThreads::Mutex * | getDataChangeMutex () const |
virtual void | releaseGLObjects (osg::State *=0) const |
virtual bool | computeLocalToWorldMatrix (Matrix &matrix, NodeVisitor *) const |
virtual bool | computeWorldToLocalMatrix (Matrix &matrix, NodeVisitor *) const |
Protected Member Functions |
virtual | ~CameraNode () |
Protected Attributes |
OpenThreads::Mutex | _dataChangeMutex |
Vec4 | _clearColor |
GLbitfield | _clearMask |
ref_ptr< ColorMask > | _colorMask |
ref_ptr< Viewport > | _viewport |
TransformOrder | _transformOrder |
Matrixd | _projectionMatrix |
Matrixd | _viewMatrix |
RenderOrder | _renderOrder |
int | _renderOrderNum |
GLenum | _drawBuffer |
GLenum | _readBuffer |
RenderTargetImplementation | _renderTargetImplementation |
RenderTargetImplementation | _renderTargetFallback |
BufferAttachmentMap | _bufferAttachmentMap |
ref_ptr< GraphicsContext > | _graphicsContext |
buffered_object< ref_ptr<
Object > > | _renderingCache |
ref_ptr< DrawCallback > | _postDrawCallback |
Classes |
struct | Attachment |
struct | DrawCallback |