Camera
Go to the documentation of this file.
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this distribution, and on the openscenegraph.org website.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
#ifndef OSG_CAMERA
#define OSG_CAMERA 1
#include <osg/Transform>
#include <osg/Viewport>
#include <osg/ColorMask>
#include <osg/CullSettings>
#include <osg/Texture>
#include <osg/Image>
#include <osg/GraphicsContext>
#include <osg/Stats>
#include <OpenThreads/Mutex>
#if defined(OSG_GLES1_AVAILABLE) || defined(OSG_GLES2_AVAILABLE) || defined(OSG_GLES3_AVAILABLE) && !defined(OSG_GL3_AVAILABLE)
#define GL_FRONT_LEFT 0x0400
#define GL_FRONT_RIGHT 0x0401
#define GL_BACK_LEFT 0x0402
#define GL_BACK_RIGHT 0x0403
#endif
namespace osg {
// forward declare View to allow Camera to point back to the View that its within
class View;
class RenderInfo;
class OSG_EXPORT Camera : public Transform, public CullSettings
{
public :
Camera();
Camera(const Camera&,const CopyOp& copyop=CopyOp::SHALLOW_COPY);
META_Node(osg, Camera);
virtual Camera* asCamera() { return this; }
virtual const Camera* asCamera() const { return this; }
void setView(View* view) { _view = view; }
View* getView() { return _view; }
const View* getView() const { return _view; }
void setStats(osg::Stats* stats) { _stats = stats; }
osg::Stats* getStats() { return _stats.get(); }
const osg::Stats* getStats() const { return _stats.get(); }
void setAllowEventFocus(bool focus) { _allowEventFocus = focus; }
bool getAllowEventFocus() const { return _allowEventFocus; }
void setDisplaySettings(osg::DisplaySettings* ds) { _displaySettings = ds; }
osg::DisplaySettings* getDisplaySettings() { return _displaySettings.get(); }
const osg::DisplaySettings* getDisplaySettings() const { return _displaySettings.get(); }
inline void setClearMask(GLbitfield mask) { _clearMask = mask; applyMaskAction(CLEAR_MASK); }
inline GLbitfield getClearMask() const { return _clearMask; }
void setClearColor(const osg::Vec4& color) { _clearColor=color; applyMaskAction(CLEAR_COLOR); }
const osg::Vec4& getClearColor() const { return _clearColor; }
void setClearAccum(const osg::Vec4& color) { _clearAccum=color; }
const osg::Vec4& getClearAccum() const { return _clearAccum; }
void setClearDepth(double depth) { _clearDepth=depth; }
double getClearDepth() const { return _clearDepth; }
void setClearStencil(int stencil) { _clearStencil=stencil; }
int getClearStencil() const { return _clearStencil; }
void setColorMask(osg::ColorMask* colorMask);
void setColorMask(bool red, bool green, bool blue, bool alpha);
const ColorMask* getColorMask() const { return _colorMask.get(); }
ColorMask* getColorMask() { return _colorMask.get(); }
void setViewport(osg::Viewport* viewport);
void setViewport(int x,int y,int width,int height);
const Viewport* getViewport() const { return _viewport.get(); }
Viewport* getViewport() { return _viewport.get(); }
enum TransformOrder
{
PRE_MULTIPLY,
POST_MULTIPLY
};
void setTransformOrder(TransformOrder order) { _transformOrder = order; }
TransformOrder getTransformOrder() const { return _transformOrder; }
enum ProjectionResizePolicy
{
FIXED,
HORIZONTAL,
VERTICAL
};
inline void setProjectionResizePolicy(ProjectionResizePolicy policy) { _projectionResizePolicy = policy; }
inline ProjectionResizePolicy getProjectionResizePolicy() const { return _projectionResizePolicy; }
inline void setProjectionMatrix(const osg::Matrixf& matrix) { _projectionMatrix.set(matrix); }
inline void setProjectionMatrix(const osg::Matrixd& matrix) { _projectionMatrix.set(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() { return _projectionMatrix; }
const osg::Matrixd& getProjectionMatrix() const { return _projectionMatrix; }
bool getProjectionMatrixAsOrtho(double& left, double& right,
double& bottom, double& top,
double& zNear, double& zFar) const;
bool getProjectionMatrixAsFrustum(double& left, double& right,
double& bottom, double& top,
double& zNear, double& zFar) const;
bool getProjectionMatrixAsPerspective(double& fovy,double& aspectRatio,
double& zNear, double& zFar) const;
inline void setViewMatrix(const osg::Matrixf& matrix) { _viewMatrix.set(matrix); dirtyBound();}
inline void setViewMatrix(const osg::Matrixd& matrix) { _viewMatrix.set(matrix); dirtyBound();}
osg::Matrixd& getViewMatrix() { return _viewMatrix; }
const osg::Matrixd& getViewMatrix() const { return _viewMatrix; }
void setViewMatrixAsLookAt(const osg::Vec3d& eye,const osg::Vec3d& center,const osg::Vec3d& up);
void getViewMatrixAsLookAt(osg::Vec3d& eye,osg::Vec3d& center,osg::Vec3d& up,double lookDistance=1.0) const;
void getViewMatrixAsLookAt(osg::Vec3f& eye,osg::Vec3f& center,osg::Vec3f& up,float lookDistance=1.0f) const;
Matrixd getInverseViewMatrix() const;
enum RenderOrder
{
PRE_RENDER,
NESTED_RENDER,
POST_RENDER
};
void setRenderOrder(RenderOrder order, int orderNum = 0) { _renderOrder = order; _renderOrderNum = orderNum; }
RenderOrder getRenderOrder() const { return _renderOrder; }
int getRenderOrderNum() const { return _renderOrderNum; }
bool isRenderToTextureCamera() const;
enum RenderTargetImplementation
{
FRAME_BUFFER_OBJECT,
PIXEL_BUFFER_RTT,
PIXEL_BUFFER,
FRAME_BUFFER,
SEPARATE_WINDOW
};
void setRenderTargetImplementation(RenderTargetImplementation impl);
void setRenderTargetImplementation(RenderTargetImplementation impl, RenderTargetImplementation fallback);
RenderTargetImplementation getRenderTargetImplementation() const { return _renderTargetImplementation; }
RenderTargetImplementation getRenderTargetFallback() const { return _renderTargetFallback; }
void setDrawBuffer(GLenum buffer) { _drawBuffer = buffer; applyMaskAction( DRAW_BUFFER ); }
GLenum getDrawBuffer() const { return _drawBuffer; }
void setReadBuffer(GLenum buffer) { _readBuffer = buffer; applyMaskAction( READ_BUFFER ); }
GLenum getReadBuffer() const { return _readBuffer; }
enum BufferComponent
{
DEPTH_BUFFER,
STENCIL_BUFFER,
PACKED_DEPTH_STENCIL_BUFFER,
COLOR_BUFFER,
COLOR_BUFFER0,
COLOR_BUFFER1 = COLOR_BUFFER0+1,
COLOR_BUFFER2 = COLOR_BUFFER0+2,
COLOR_BUFFER3 = COLOR_BUFFER0+3,
COLOR_BUFFER4 = COLOR_BUFFER0+4,
COLOR_BUFFER5 = COLOR_BUFFER0+5,
COLOR_BUFFER6 = COLOR_BUFFER0+6,
COLOR_BUFFER7 = COLOR_BUFFER0+7,
COLOR_BUFFER8 = COLOR_BUFFER0+8,
COLOR_BUFFER9 = COLOR_BUFFER0+9,
COLOR_BUFFER10 = COLOR_BUFFER0+10,
COLOR_BUFFER11 = COLOR_BUFFER0+11,
COLOR_BUFFER12 = COLOR_BUFFER0+12,
COLOR_BUFFER13 = COLOR_BUFFER0+13,
COLOR_BUFFER14 = COLOR_BUFFER0+14,
COLOR_BUFFER15 = COLOR_BUFFER0+15
};
static const unsigned int FACE_CONTROLLED_BY_GEOMETRY_SHADER;
void attach(BufferComponent buffer, GLenum internalFormat);
void attach(BufferComponent buffer, osg::Texture* texture, unsigned int level = 0, unsigned int face=0, bool mipMapGeneration=false,
unsigned int multisampleSamples = 0,
unsigned int multisampleColorSamples = 0);
void attach(BufferComponent buffer, osg::Image* image,
unsigned int multisampleSamples = 0,
unsigned int multisampleColorSamples = 0);
void detach(BufferComponent buffer);
struct Attachment
{
Attachment():
_internalFormat(GL_NONE),
_level(0),
_face(0),
_mipMapGeneration(false),
_multisampleSamples(0),
_multisampleColorSamples(0) {}
int width() const
{
if (_texture.valid()) return _texture->getTextureWidth();
if (_image.valid()) return _image->s();
return 0;
};
int height() const
{
if (_texture.valid()) return _texture->getTextureHeight();
if (_image.valid()) return _image->t();
return 0;
};
int depth() const
{
if (_texture.valid()) return _texture->getTextureDepth();
if (_image.valid()) return _image->r();
return 0;
};
GLenum _internalFormat;
ref_ptr<Image> _image;
ref_ptr<Texture> _texture;
unsigned int _level;
unsigned int _face;
bool _mipMapGeneration;
unsigned int _multisampleSamples;
unsigned int _multisampleColorSamples;
};
typedef std::map< BufferComponent, Attachment> BufferAttachmentMap;
BufferAttachmentMap& getBufferAttachmentMap() { return _bufferAttachmentMap; }
const BufferAttachmentMap& getBufferAttachmentMap() const { return _bufferAttachmentMap; }
void dirtyAttachmentMap() { ++_attachmentMapModifiedCount; }
void setAttachmentMapModifiedCount(unsigned int v) { _attachmentMapModifiedCount = v; }
unsigned int getAttachmentMapModifiedCount() const { return _attachmentMapModifiedCount; }
void resizeAttachments(int width, int height);
enum ResizeMask
{
RESIZE_VIEWPORT=1,
RESIZE_ATTACHMENTS=2,
RESIZE_PROJECTIONMATRIX=4,
RESIZE_DEFAULT=RESIZE_VIEWPORT|RESIZE_ATTACHMENTS
};
void resize(int width, int height, int resizeMask=RESIZE_DEFAULT);
enum ImplicitBufferAttachment
{
IMPLICIT_DEPTH_BUFFER_ATTACHMENT = DisplaySettings::IMPLICIT_DEPTH_BUFFER_ATTACHMENT,
IMPLICIT_STENCIL_BUFFER_ATTACHMENT = DisplaySettings::IMPLICIT_STENCIL_BUFFER_ATTACHMENT,
IMPLICIT_COLOR_BUFFER_ATTACHMENT = DisplaySettings::IMPLICIT_COLOR_BUFFER_ATTACHMENT,
USE_DISPLAY_SETTINGS_MASK = (~0)
};
typedef int ImplicitBufferAttachmentMask;
void setImplicitBufferAttachmentMask(ImplicitBufferAttachmentMask renderMask = DisplaySettings::DEFAULT_IMPLICIT_BUFFER_ATTACHMENT, ImplicitBufferAttachmentMask resolveMask = DisplaySettings::DEFAULT_IMPLICIT_BUFFER_ATTACHMENT)
{
_implicitBufferAttachmentRenderMask = renderMask;
_implicitBufferAttachmentResolveMask = resolveMask;
}
void setImplicitBufferAttachmentRenderMask(ImplicitBufferAttachmentMask implicitBufferAttachmentRenderMask)
{
_implicitBufferAttachmentRenderMask = implicitBufferAttachmentRenderMask;
}
void setImplicitBufferAttachmentResolveMask(ImplicitBufferAttachmentMask implicitBufferAttachmentResolveMask)
{
_implicitBufferAttachmentResolveMask = implicitBufferAttachmentResolveMask;
}
ImplicitBufferAttachmentMask getImplicitBufferAttachmentRenderMask() const
{
return _implicitBufferAttachmentRenderMask;
}
ImplicitBufferAttachmentMask getImplicitBufferAttachmentRenderMask(bool effectiveMask) const
{
if( effectiveMask && _implicitBufferAttachmentRenderMask == USE_DISPLAY_SETTINGS_MASK )
{
const DisplaySettings * ds = _displaySettings.valid() ? _displaySettings.get() : DisplaySettings::instance().get();
return ds->getImplicitBufferAttachmentRenderMask();
}
else
{
return _implicitBufferAttachmentRenderMask;
}
}
ImplicitBufferAttachmentMask getImplicitBufferAttachmentResolveMask() const
{
return _implicitBufferAttachmentResolveMask;
}
ImplicitBufferAttachmentMask getImplicitBufferAttachmentResolveMask(bool effectiveMask) const
{
if( effectiveMask && _implicitBufferAttachmentResolveMask == USE_DISPLAY_SETTINGS_MASK )
{
const DisplaySettings * ds = _displaySettings.valid() ? _displaySettings.get() : DisplaySettings::instance().get();
return ds->getImplicitBufferAttachmentResolveMask();
}
else
{
return _implicitBufferAttachmentResolveMask;
}
}
void setProcessorAffinity(const OpenThreads::Affinity& affinity);
OpenThreads::Affinity& getProcessorAffinity() { return _affinity; }
const OpenThreads::Affinity& getProcessorAffinity() const { return _affinity; }
void createCameraThread();
void setCameraThread(OperationThread* gt);
OperationThread* getCameraThread() { return _cameraThread.get(); }
const OperationThread* getCameraThread() const { return _cameraThread.get(); }
void setGraphicsContext(GraphicsContext* context);
GraphicsContext* getGraphicsContext() { return _graphicsContext.get(); }
const GraphicsContext* getGraphicsContext() const { return _graphicsContext.get(); }
void setRenderer(osg::GraphicsOperation* rc) { _renderer = rc; }
osg::GraphicsOperation* getRenderer() { return _renderer.get(); }
const osg::GraphicsOperation* getRenderer() const { return _renderer.get(); }
void setRenderingCache(osg::Object* rc) { _renderingCache = rc; }
osg::Object* getRenderingCache() { return _renderingCache.get(); }
const osg::Object* getRenderingCache() const { return _renderingCache.get(); }
struct OSG_EXPORT DrawCallback : Callback
{
DrawCallback() {}
DrawCallback(const DrawCallback& org,const CopyOp& copyop):
Callback(org, copyop) {}
META_Object(osg, DrawCallback);
inline void run(osg::RenderInfo& renderInfo) const
{
operator () (renderInfo);
if (_nestedCallback.valid())
((const DrawCallback*)_nestedCallback.get())->run(renderInfo);
}
virtual void operator () (osg::RenderInfo& renderInfo) const;
virtual void operator () (const osg::Camera& /*camera*/) const {}
virtual void resizeGLObjectBuffers(unsigned int maxSize)
{
if (_nestedCallback.valid())
_nestedCallback->resizeGLObjectBuffers(maxSize);
}
virtual void releaseGLObjects(osg::State* state = 0) const
{
if (_nestedCallback.valid())
_nestedCallback->releaseGLObjects(state);
}
};
void setInitialDrawCallback(DrawCallback* cb) { _initialDrawCallback = cb; }
DrawCallback* getInitialDrawCallback() { return _initialDrawCallback.get(); }
const DrawCallback* getInitialDrawCallback() const { return _initialDrawCallback.get(); }
inline void addInitialDrawCallback(DrawCallback* nc)
{
if (nc != NULL)
{
if (_initialDrawCallback.valid()) _initialDrawCallback->addNestedCallback(nc);
else setInitialDrawCallback(nc);
}
}
template<class T> void addInitialDrawCallback(const ref_ptr<T>& nc) { addInitialDrawCallback(nc.get()); }
inline void removeInitialDrawCallback(DrawCallback* nc)
{
if (nc != NULL && _initialDrawCallback.valid())
{
if (_initialDrawCallback == nc)
{
ref_ptr< DrawCallback> new_nested_callback = (DrawCallback*) nc->getNestedCallback();
nc->setNestedCallback(0);
setInitialDrawCallback(new_nested_callback.get());
}
else _initialDrawCallback->removeNestedCallback(nc);
}
}
template<class T> void removeInitialDrawCallback(const ref_ptr<T>& nc) { removeInitialDrawCallback(nc.get()); }
void setPreDrawCallback(DrawCallback* cb) { _preDrawCallback = cb; }
DrawCallback* getPreDrawCallback() { return _preDrawCallback.get(); }
const DrawCallback* getPreDrawCallback() const { return _preDrawCallback.get(); }
inline void addPreDrawCallback(DrawCallback* nc)
{
if (nc != NULL)
{
if (_preDrawCallback.valid()) _preDrawCallback->addNestedCallback(nc);
else setPreDrawCallback(nc);
}
}
template<class T> void addPreDrawCallback(const ref_ptr<T>& nc) { addPreDrawCallback(nc.get()); }
inline void removePreDrawCallback(DrawCallback* nc)
{
if (nc != NULL && _preDrawCallback.valid())
{
if (_preDrawCallback == nc)
{
ref_ptr< DrawCallback> new_nested_callback = (DrawCallback*) nc->getNestedCallback();
nc->setNestedCallback(0);
setPreDrawCallback(new_nested_callback.get());
}
else _preDrawCallback->removeNestedCallback(nc);
}
}
template<class T> void removePreDrawCallback(const ref_ptr<T>& nc) { removePreDrawCallback(nc.get()); }
void setPostDrawCallback(DrawCallback* cb) { _postDrawCallback = cb; }
DrawCallback* getPostDrawCallback() { return _postDrawCallback.get(); }
const DrawCallback* getPostDrawCallback() const { return _postDrawCallback.get(); }
inline void addPostDrawCallback(DrawCallback* nc)
{
if (nc != NULL)
{
if (_postDrawCallback.valid()) _postDrawCallback->addNestedCallback(nc);
else setPostDrawCallback(nc);
}
}
template<class T> void addPostDrawCallback(const ref_ptr<T>& nc) { addPostDrawCallback(nc.get()); }
inline void removePostDrawCallback(DrawCallback* nc)
{
if (nc != NULL && _postDrawCallback.valid())
{
if (_postDrawCallback == nc)
{
ref_ptr< DrawCallback> new_nested_callback = (DrawCallback*) nc->getNestedCallback();
nc->setNestedCallback(0);
setPostDrawCallback(new_nested_callback.get());
}
else _postDrawCallback->removeNestedCallback(nc);
}
}
template<class T> void removePostDrawCallback(const ref_ptr<T>& nc) { removePostDrawCallback(nc.get()); }
void setFinalDrawCallback(DrawCallback* cb) { _finalDrawCallback = cb; }
DrawCallback* getFinalDrawCallback() { return _finalDrawCallback.get(); }
const DrawCallback* getFinalDrawCallback() const { return _finalDrawCallback.get(); }
inline void addFinalDrawCallback(DrawCallback* nc)
{
if (nc != NULL)
{
if (_finalDrawCallback.valid()) _finalDrawCallback->addNestedCallback(nc);
else setFinalDrawCallback(nc);
}
}
template<class T> void addFinalDrawCallback(const ref_ptr<T>& nc) { addFinalDrawCallback(nc.get()); }
inline void removeFinalDrawCallback(DrawCallback* nc)
{
if (nc != NULL && _finalDrawCallback.valid())
{
if (_finalDrawCallback == nc)
{
ref_ptr< DrawCallback> new_nested_callback = (DrawCallback*) nc->getNestedCallback();
nc->setNestedCallback(0);
setFinalDrawCallback(new_nested_callback.get());
}
else _finalDrawCallback->removeNestedCallback(nc);
}
}
template<class T> void removeFinalDrawCallback(const ref_ptr<T>& nc) { removeFinalDrawCallback(nc.get()); }
OpenThreads::Mutex* getDataChangeMutex() const { return &_dataChangeMutex; }
virtual void resizeGLObjectBuffers(unsigned int maxSize);
virtual void releaseGLObjects(osg::State* = 0) const;
public:
virtual bool computeLocalToWorldMatrix(Matrix& matrix,NodeVisitor*) const;
virtual bool computeWorldToLocalMatrix(Matrix& matrix,NodeVisitor*) const;
virtual void inheritCullSettings(const CullSettings& settings, unsigned int inheritanceMask);
protected :
virtual ~Camera();
mutable OpenThreads::Mutex _dataChangeMutex;
View* _view;
osg::ref_ptr<osg::Stats> _stats;
bool _allowEventFocus;
osg::ref_ptr<osg::DisplaySettings> _displaySettings;
GLbitfield _clearMask;
osg::Vec4 _clearColor;
osg::Vec4 _clearAccum;
double _clearDepth;
int _clearStencil;
ref_ptr<ColorMask> _colorMask;
ref_ptr<Viewport> _viewport;
TransformOrder _transformOrder;
ProjectionResizePolicy _projectionResizePolicy;
Matrixd _projectionMatrix;
Matrixd _viewMatrix;
RenderOrder _renderOrder;
int _renderOrderNum;
GLenum _drawBuffer;
GLenum _readBuffer;
RenderTargetImplementation _renderTargetImplementation;
RenderTargetImplementation _renderTargetFallback;
BufferAttachmentMap _bufferAttachmentMap;
ImplicitBufferAttachmentMask _implicitBufferAttachmentRenderMask;
ImplicitBufferAttachmentMask _implicitBufferAttachmentResolveMask;
unsigned int _attachmentMapModifiedCount;
OpenThreads::Affinity _affinity;
ref_ptr<OperationThread> _cameraThread;
ref_ptr<GraphicsContext> _graphicsContext;
ref_ptr<GraphicsOperation> _renderer;
ref_ptr<Object> _renderingCache;
ref_ptr<DrawCallback> _initialDrawCallback;
ref_ptr<DrawCallback> _preDrawCallback;
ref_ptr<DrawCallback> _postDrawCallback;
ref_ptr<DrawCallback> _finalDrawCallback;
};
struct CameraRenderOrderSortOp
{
inline bool operator() (const Camera* lhs,const Camera* rhs) const
{
if (lhs->getRenderOrder()<rhs->getRenderOrder()) return true;
if (rhs->getRenderOrder()<lhs->getRenderOrder()) return false;
return lhs->getRenderOrderNum()<rhs->getRenderOrderNum();
}
};
}
#endif
ColorMask
CullSettings
GraphicsContext
Image
Mutex
Stats
Texture
Transform
Viewport
OpenThreads::Affinity
Simple container for specifying which CPU a thread should have affinity with. An empty Affinity....
Definition Affinity:34
OpenThreads::Mutex
This class provides an object-oriented thread mutex interface.
Definition Mutex:31
osg::Callback::getNestedCallback
osg::Callback * getNestedCallback()
Definition Callback:89
osg::Callback::_nestedCallback
ref_ptr< Callback > _nestedCallback
Definition Callback:127
osg::Callback::Callback
Callback()
Definition Callback:38
osg::Callback::setNestedCallback
void setNestedCallback(osg::Callback *cb)
Definition Callback:88
osg::Camera
Definition Camera:45
osg::Camera::setViewport
void setViewport(int x, int y, int width, int height)
osg::Camera::_clearAccum
osg::Vec4 _clearAccum
Definition Camera:826
osg::Camera::getImplicitBufferAttachmentRenderMask
ImplicitBufferAttachmentMask getImplicitBufferAttachmentRenderMask(bool effectiveMask) const
Definition Camera:508
osg::Camera::_bufferAttachmentMap
BufferAttachmentMap _bufferAttachmentMap
Definition Camera:847
osg::Camera::setProjectionMatrix
void setProjectionMatrix(const osg::Matrixf &matrix)
Definition Camera:191
osg::Camera::getColorMask
ColorMask * getColorMask()
Definition Camera:146
osg::Camera::_affinity
OpenThreads::Affinity _affinity
Definition Camera:853
osg::Camera::_stats
osg::ref_ptr< osg::Stats > _stats
Definition Camera:818
osg::Camera::_postDrawCallback
ref_ptr< DrawCallback > _postDrawCallback
Definition Camera:863
osg::Camera::_projectionResizePolicy
ProjectionResizePolicy _projectionResizePolicy
Definition Camera:834
osg::Camera::getImplicitBufferAttachmentRenderMask
ImplicitBufferAttachmentMask getImplicitBufferAttachmentRenderMask() const
Definition Camera:498
osg::Camera::getProjectionMatrix
osg::Matrixd & getProjectionMatrix()
Definition Camera:216
osg::Camera::removePostDrawCallback
void removePostDrawCallback(const ref_ptr< T > &nc)
Definition Camera:748
osg::Camera::setRenderTargetImplementation
void setRenderTargetImplementation(RenderTargetImplementation impl, RenderTargetImplementation fallback)
osg::Camera::_clearMask
GLbitfield _clearMask
Definition Camera:824
osg::Camera::attach
void attach(BufferComponent buffer, GLenum internalFormat)
osg::Camera::setClearDepth
void setClearDepth(double depth)
Definition Camera:122
osg::Camera::computeWorldToLocalMatrix
virtual bool computeWorldToLocalMatrix(Matrix &matrix, NodeVisitor *) const
osg::Camera::removeInitialDrawCallback
void removeInitialDrawCallback(const ref_ptr< T > &nc)
Definition Camera:672
osg::Camera::setRenderTargetImplementation
void setRenderTargetImplementation(RenderTargetImplementation impl)
osg::Camera::Camera
Camera(const Camera &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
osg::Camera::getRenderOrderNum
int getRenderOrderNum() const
Definition Camera:284
osg::Camera::RenderOrder
RenderOrder
Definition Camera:269
osg::Camera::POST_RENDER
@ POST_RENDER
Definition Camera:272
osg::Camera::PRE_RENDER
@ PRE_RENDER
Definition Camera:270
osg::Camera::NESTED_RENDER
@ NESTED_RENDER
Definition Camera:271
osg::Camera::setViewMatrix
void setViewMatrix(const osg::Matrixd &matrix)
Definition Camera:247
osg::Camera::getTransformOrder
TransformOrder getTransformOrder() const
Definition Camera:173
osg::Camera::_clearStencil
int _clearStencil
Definition Camera:828
osg::Camera::setFinalDrawCallback
void setFinalDrawCallback(DrawCallback *cb)
Definition Camera:751
osg::Camera::setProjectionMatrix
void setProjectionMatrix(const osg::Matrixd &matrix)
Definition Camera:194
osg::Camera::RenderTargetImplementation
RenderTargetImplementation
Definition Camera:290
osg::Camera::SEPARATE_WINDOW
@ SEPARATE_WINDOW
Definition Camera:295
osg::Camera::FRAME_BUFFER_OBJECT
@ FRAME_BUFFER_OBJECT
Definition Camera:291
osg::Camera::PIXEL_BUFFER_RTT
@ PIXEL_BUFFER_RTT
Definition Camera:292
osg::Camera::PIXEL_BUFFER
@ PIXEL_BUFFER
Definition Camera:293
osg::Camera::FRAME_BUFFER
@ FRAME_BUFFER
Definition Camera:294
osg::Camera::removeFinalDrawCallback
void removeFinalDrawCallback(DrawCallback *nc)
Definition Camera:772
osg::Camera::FACE_CONTROLLED_BY_GEOMETRY_SHADER
static const unsigned int FACE_CONTROLLED_BY_GEOMETRY_SHADER
Definition Camera:349
osg::Camera::addPostDrawCallback
void addPostDrawCallback(const ref_ptr< T > &nc)
Definition Camera:731
osg::Camera::getClearColor
const osg::Vec4 & getClearColor() const
Definition Camera:111
osg::Camera::getImplicitBufferAttachmentResolveMask
ImplicitBufferAttachmentMask getImplicitBufferAttachmentResolveMask() const
Definition Camera:521
osg::Camera::getAttachmentMapModifiedCount
unsigned int getAttachmentMapModifiedCount() const
Definition Camera:427
osg::Camera::_allowEventFocus
bool _allowEventFocus
Definition Camera:820
osg::Camera::setInitialDrawCallback
void setInitialDrawCallback(DrawCallback *cb)
Definition Camera:637
osg::Camera::attach
void attach(BufferComponent buffer, osg::Image *image, unsigned int multisampleSamples=0, unsigned int multisampleColorSamples=0)
osg::Camera::getColorMask
const ColorMask * getColorMask() const
Definition Camera:143
osg::Camera::_renderingCache
ref_ptr< Object > _renderingCache
Definition Camera:859
osg::Camera::addPostDrawCallback
void addPostDrawCallback(DrawCallback *nc)
Definition Camera:722
osg::Camera::attach
void attach(BufferComponent buffer, osg::Texture *texture, unsigned int level=0, unsigned int face=0, bool mipMapGeneration=false, unsigned int multisampleSamples=0, unsigned int multisampleColorSamples=0)
osg::Camera::addPreDrawCallback
void addPreDrawCallback(DrawCallback *nc)
Definition Camera:684
osg::Camera::getPostDrawCallback
DrawCallback * getPostDrawCallback()
Definition Camera:716
osg::Camera::getPreDrawCallback
DrawCallback * getPreDrawCallback()
Definition Camera:678
osg::Camera::getDisplaySettings
const osg::DisplaySettings * getDisplaySettings() const
Definition Camera:96
osg::Camera::_projectionMatrix
Matrixd _projectionMatrix
Definition Camera:836
osg::Camera::removePostDrawCallback
void removePostDrawCallback(DrawCallback *nc)
Definition Camera:734
osg::Camera::removeInitialDrawCallback
void removeInitialDrawCallback(DrawCallback *nc)
Definition Camera:658
osg::Camera::getCameraThread
OperationThread * getCameraThread()
Definition Camera:556
osg::Camera::META_Node
META_Node(osg, Camera)
osg::Camera::_attachmentMapModifiedCount
unsigned int _attachmentMapModifiedCount
Definition Camera:851
osg::Camera::getRenderingCache
osg::Object * getRenderingCache()
Definition Camera:587
osg::Camera::setColorMask
void setColorMask(osg::ColorMask *colorMask)
osg::Camera::setDisplaySettings
void setDisplaySettings(osg::DisplaySettings *ds)
Definition Camera:90
osg::Camera::addFinalDrawCallback
void addFinalDrawCallback(DrawCallback *nc)
Definition Camera:760
osg::Camera::getRenderTargetImplementation
RenderTargetImplementation getRenderTargetImplementation() const
Definition Camera:305
osg::Camera::getInverseViewMatrix
Matrixd getInverseViewMatrix() const
osg::Camera::_view
View * _view
Definition Camera:816
osg::Camera::createCameraThread
void createCameraThread()
osg::Camera::getProcessorAffinity
OpenThreads::Affinity & getProcessorAffinity()
Definition Camera:546
osg::Camera::resizeAttachments
void resizeAttachments(int width, int height)
osg::Camera::getProjectionMatrixAsOrtho
bool getProjectionMatrixAsOrtho(double &left, double &right, double &bottom, double &top, double &zNear, double &zFar) const
osg::Camera::getBufferAttachmentMap
BufferAttachmentMap & getBufferAttachmentMap()
Definition Camera:414
osg::Camera::getReadBuffer
GLenum getReadBuffer() const
Definition Camera:323
osg::Camera::_renderOrderNum
int _renderOrderNum
Definition Camera:840
osg::Camera::_readBuffer
GLenum _readBuffer
Definition Camera:843
osg::Camera::setProjectionMatrixAsFrustum
void setProjectionMatrixAsFrustum(double left, double right, double bottom, double top, double zNear, double zFar)
osg::Camera::getRenderingCache
const osg::Object * getRenderingCache() const
Definition Camera:590
osg::Camera::setViewMatrixAsLookAt
void setViewMatrixAsLookAt(const osg::Vec3d &eye, const osg::Vec3d &center, const osg::Vec3d &up)
osg::Camera::removeFinalDrawCallback
void removeFinalDrawCallback(const ref_ptr< T > &nc)
Definition Camera:786
osg::Camera::_clearColor
osg::Vec4 _clearColor
Definition Camera:825
osg::Camera::getViewport
Viewport * getViewport()
Definition Camera:159
osg::Camera::getPostDrawCallback
const DrawCallback * getPostDrawCallback() const
Definition Camera:719
osg::Camera::~Camera
virtual ~Camera()
osg::Camera::getDisplaySettings
osg::DisplaySettings * getDisplaySettings()
Definition Camera:93
osg::Camera::getStats
osg::Stats * getStats()
Definition Camera:74
osg::Camera::_implicitBufferAttachmentRenderMask
ImplicitBufferAttachmentMask _implicitBufferAttachmentRenderMask
Definition Camera:848
osg::Camera::setClearAccum
void setClearAccum(const osg::Vec4 &color)
Definition Camera:115
osg::Camera::ImplicitBufferAttachmentMask
int ImplicitBufferAttachmentMask
Definition Camera:480
osg::Camera::getViewMatrix
const osg::Matrixd & getViewMatrix() const
Definition Camera:253
osg::Camera::setProjectionResizePolicy
void setProjectionResizePolicy(ProjectionResizePolicy policy)
Definition Camera:184
osg::Camera::asCamera
virtual const Camera * asCamera() const
Definition Camera:57
osg::Camera::_renderOrder
RenderOrder _renderOrder
Definition Camera:839
osg::Camera::computeLocalToWorldMatrix
virtual bool computeLocalToWorldMatrix(Matrix &matrix, NodeVisitor *) const
osg::Camera::resizeGLObjectBuffers
virtual void resizeGLObjectBuffers(unsigned int maxSize)
osg::Camera::removePreDrawCallback
void removePreDrawCallback(const ref_ptr< T > &nc)
Definition Camera:710
osg::Camera::setDrawBuffer
void setDrawBuffer(GLenum buffer)
Definition Camera:313
osg::Camera::ImplicitBufferAttachment
ImplicitBufferAttachment
Definition Camera:473
osg::Camera::IMPLICIT_STENCIL_BUFFER_ATTACHMENT
@ IMPLICIT_STENCIL_BUFFER_ATTACHMENT
Definition Camera:475
osg::Camera::IMPLICIT_COLOR_BUFFER_ATTACHMENT
@ IMPLICIT_COLOR_BUFFER_ATTACHMENT
Definition Camera:476
osg::Camera::IMPLICIT_DEPTH_BUFFER_ATTACHMENT
@ IMPLICIT_DEPTH_BUFFER_ATTACHMENT
Definition Camera:474
osg::Camera::USE_DISPLAY_SETTINGS_MASK
@ USE_DISPLAY_SETTINGS_MASK
Definition Camera:477
osg::Camera::getFinalDrawCallback
DrawCallback * getFinalDrawCallback()
Definition Camera:754
osg::Camera::getViewMatrixAsLookAt
void getViewMatrixAsLookAt(osg::Vec3f &eye, osg::Vec3f &center, osg::Vec3f &up, float lookDistance=1.0f) const
osg::Camera::setProjectionMatrixAsOrtho2D
void setProjectionMatrixAsOrtho2D(double left, double right, double bottom, double top)
osg::Camera::getRenderTargetFallback
RenderTargetImplementation getRenderTargetFallback() const
Definition Camera:308
osg::Camera::getViewMatrixAsLookAt
void getViewMatrixAsLookAt(osg::Vec3d &eye, osg::Vec3d &center, osg::Vec3d &up, double lookDistance=1.0) const
osg::Camera::setProcessorAffinity
void setProcessorAffinity(const OpenThreads::Affinity &affinity)
osg::Camera::_drawBuffer
GLenum _drawBuffer
Definition Camera:842
osg::Camera::_displaySettings
osg::ref_ptr< osg::DisplaySettings > _displaySettings
Definition Camera:822
osg::Camera::setColorMask
void setColorMask(bool red, bool green, bool blue, bool alpha)
osg::Camera::getClearDepth
double getClearDepth() const
Definition Camera:125
osg::Camera::setPreDrawCallback
void setPreDrawCallback(DrawCallback *cb)
Definition Camera:675
osg::Camera::setClearColor
void setClearColor(const osg::Vec4 &color)
Definition Camera:108
osg::Camera::setCameraThread
void setCameraThread(OperationThread *gt)
osg::Camera::_renderTargetFallback
RenderTargetImplementation _renderTargetFallback
Definition Camera:846
osg::Camera::asCamera
virtual Camera * asCamera()
Definition Camera:56
osg::Camera::setGraphicsContext
void setGraphicsContext(GraphicsContext *context)
osg::Camera::inheritCullSettings
virtual void inheritCullSettings(const CullSettings &settings, unsigned int inheritanceMask)
osg::Camera::getCameraThread
const OperationThread * getCameraThread() const
Definition Camera:559
osg::Camera::_renderTargetImplementation
RenderTargetImplementation _renderTargetImplementation
Definition Camera:845
osg::Camera::getFinalDrawCallback
const DrawCallback * getFinalDrawCallback() const
Definition Camera:757
osg::Camera::resize
void resize(int width, int height, int resizeMask=RESIZE_DEFAULT)
osg::Camera::_colorMask
ref_ptr< ColorMask > _colorMask
Definition Camera:830
osg::Camera::setClearStencil
void setClearStencil(int stencil)
Definition Camera:129
osg::Camera::setPostDrawCallback
void setPostDrawCallback(DrawCallback *cb)
Definition Camera:713
osg::Camera::getProcessorAffinity
const OpenThreads::Affinity & getProcessorAffinity() const
Definition Camera:547
osg::Camera::Camera
Camera()
osg::Camera::getClearAccum
const osg::Vec4 & getClearAccum() const
Definition Camera:118
osg::Camera::getInitialDrawCallback
DrawCallback * getInitialDrawCallback()
Definition Camera:640
osg::Camera::setAttachmentMapModifiedCount
void setAttachmentMapModifiedCount(unsigned int v)
Definition Camera:424
osg::Camera::_renderer
ref_ptr< GraphicsOperation > _renderer
Definition Camera:858
osg::Camera::removePreDrawCallback
void removePreDrawCallback(DrawCallback *nc)
Definition Camera:696
osg::Camera::addInitialDrawCallback
void addInitialDrawCallback(const ref_ptr< T > &nc)
Definition Camera:655
osg::Camera::setClearMask
void setClearMask(GLbitfield mask)
Definition Camera:101
osg::Camera::getDrawBuffer
GLenum getDrawBuffer() const
Definition Camera:316
osg::Camera::getRenderer
const osg::GraphicsOperation * getRenderer() const
Definition Camera:580
osg::Camera::getRenderer
osg::GraphicsOperation * getRenderer()
Definition Camera:577
osg::Camera::_initialDrawCallback
ref_ptr< DrawCallback > _initialDrawCallback
Definition Camera:861
osg::Camera::setViewMatrix
void setViewMatrix(const osg::Matrixf &matrix)
Definition Camera:244
osg::Camera::getProjectionMatrixAsPerspective
bool getProjectionMatrixAsPerspective(double &fovy, double &aspectRatio, double &zNear, double &zFar) const
osg::Camera::getPreDrawCallback
const DrawCallback * getPreDrawCallback() const
Definition Camera:681
osg::Camera::setProjectionMatrixAsOrtho
void setProjectionMatrixAsOrtho(double left, double right, double bottom, double top, double zNear, double zFar)
osg::Camera::ResizeMask
ResizeMask
Definition Camera:434
osg::Camera::RESIZE_ATTACHMENTS
@ RESIZE_ATTACHMENTS
Definition Camera:436
osg::Camera::RESIZE_PROJECTIONMATRIX
@ RESIZE_PROJECTIONMATRIX
Definition Camera:437
osg::Camera::RESIZE_VIEWPORT
@ RESIZE_VIEWPORT
Definition Camera:435
osg::Camera::RESIZE_DEFAULT
@ RESIZE_DEFAULT
Definition Camera:438
osg::Camera::isRenderToTextureCamera
bool isRenderToTextureCamera() const
osg::Camera::_transformOrder
TransformOrder _transformOrder
Definition Camera:833
osg::Camera::getDataChangeMutex
OpenThreads::Mutex * getDataChangeMutex() const
Definition Camera:788
osg::Camera::getStats
const osg::Stats * getStats() const
Definition Camera:77
osg::Camera::setImplicitBufferAttachmentResolveMask
void setImplicitBufferAttachmentResolveMask(ImplicitBufferAttachmentMask implicitBufferAttachmentResolveMask)
Definition Camera:493
osg::Camera::detach
void detach(BufferComponent buffer)
osg::Camera::addInitialDrawCallback
void addInitialDrawCallback(DrawCallback *nc)
Definition Camera:646
osg::Camera::getProjectionMatrixAsFrustum
bool getProjectionMatrixAsFrustum(double &left, double &right, double &bottom, double &top, double &zNear, double &zFar) const
osg::Camera::setViewport
void setViewport(osg::Viewport *viewport)
osg::Camera::dirtyAttachmentMap
void dirtyAttachmentMap()
Definition Camera:421
osg::Camera::_dataChangeMutex
OpenThreads::Mutex _dataChangeMutex
Definition Camera:813
osg::Camera::setRenderer
void setRenderer(osg::GraphicsOperation *rc)
Definition Camera:574
osg::Camera::getViewport
const Viewport * getViewport() const
Definition Camera:156
osg::Camera::_clearDepth
double _clearDepth
Definition Camera:827
osg::Camera::getClearMask
GLbitfield getClearMask() const
Definition Camera:104
osg::Camera::getView
const View * getView() const
Definition Camera:66
osg::Camera::BufferAttachmentMap
std::map< BufferComponent, Attachment > BufferAttachmentMap
Definition Camera:411
osg::Camera::ProjectionResizePolicy
ProjectionResizePolicy
Definition Camera:176
osg::Camera::FIXED
@ FIXED
Definition Camera:177
osg::Camera::VERTICAL
@ VERTICAL
Definition Camera:179
osg::Camera::HORIZONTAL
@ HORIZONTAL
Definition Camera:178
osg::Camera::getProjectionMatrix
const osg::Matrixd & getProjectionMatrix() const
Definition Camera:219
osg::Camera::setImplicitBufferAttachmentMask
void setImplicitBufferAttachmentMask(ImplicitBufferAttachmentMask renderMask=DisplaySettings::DEFAULT_IMPLICIT_BUFFER_ATTACHMENT, ImplicitBufferAttachmentMask resolveMask=DisplaySettings::DEFAULT_IMPLICIT_BUFFER_ATTACHMENT)
Definition Camera:482
osg::Camera::releaseGLObjects
virtual void releaseGLObjects(osg::State *=0) const
osg::Camera::_finalDrawCallback
ref_ptr< DrawCallback > _finalDrawCallback
Definition Camera:864
osg::Camera::_cameraThread
ref_ptr< OperationThread > _cameraThread
Definition Camera:854
osg::Camera::setReadBuffer
void setReadBuffer(GLenum buffer)
Definition Camera:320
osg::Camera::setImplicitBufferAttachmentRenderMask
void setImplicitBufferAttachmentRenderMask(ImplicitBufferAttachmentMask implicitBufferAttachmentRenderMask)
Definition Camera:488
osg::Camera::setStats
void setStats(osg::Stats *stats)
Definition Camera:71
osg::Camera::addFinalDrawCallback
void addFinalDrawCallback(const ref_ptr< T > &nc)
Definition Camera:769
osg::Camera::setRenderingCache
void setRenderingCache(osg::Object *rc)
Definition Camera:584
osg::Camera::getImplicitBufferAttachmentResolveMask
ImplicitBufferAttachmentMask getImplicitBufferAttachmentResolveMask(bool effectiveMask) const
Definition Camera:531
osg::Camera::_viewport
ref_ptr< Viewport > _viewport
Definition Camera:831
osg::Camera::_graphicsContext
ref_ptr< GraphicsContext > _graphicsContext
Definition Camera:856
osg::Camera::getViewMatrix
osg::Matrixd & getViewMatrix()
Definition Camera:250
osg::Camera::_preDrawCallback
ref_ptr< DrawCallback > _preDrawCallback
Definition Camera:862
osg::Camera::getInitialDrawCallback
const DrawCallback * getInitialDrawCallback() const
Definition Camera:643
osg::Camera::_implicitBufferAttachmentResolveMask
ImplicitBufferAttachmentMask _implicitBufferAttachmentResolveMask
Definition Camera:849
osg::Camera::addPreDrawCallback
void addPreDrawCallback(const ref_ptr< T > &nc)
Definition Camera:693
osg::Camera::getGraphicsContext
GraphicsContext * getGraphicsContext()
Definition Camera:567
osg::Camera::getView
View * getView()
Definition Camera:63
osg::Camera::getClearStencil
int getClearStencil() const
Definition Camera:132
osg::Camera::setRenderOrder
void setRenderOrder(RenderOrder order, int orderNum=0)
Definition Camera:278
osg::Camera::getProjectionResizePolicy
ProjectionResizePolicy getProjectionResizePolicy() const
Definition Camera:187
osg::Camera::setTransformOrder
void setTransformOrder(TransformOrder order)
Definition Camera:170
osg::Camera::BufferComponent
BufferComponent
Definition Camera:326
osg::Camera::COLOR_BUFFER11
@ COLOR_BUFFER11
Definition Camera:342
osg::Camera::COLOR_BUFFER7
@ COLOR_BUFFER7
Definition Camera:338
osg::Camera::COLOR_BUFFER
@ COLOR_BUFFER
Definition Camera:330
osg::Camera::COLOR_BUFFER3
@ COLOR_BUFFER3
Definition Camera:334
osg::Camera::DEPTH_BUFFER
@ DEPTH_BUFFER
Definition Camera:327
osg::Camera::COLOR_BUFFER5
@ COLOR_BUFFER5
Definition Camera:336
osg::Camera::COLOR_BUFFER14
@ COLOR_BUFFER14
Definition Camera:345
osg::Camera::COLOR_BUFFER4
@ COLOR_BUFFER4
Definition Camera:335
osg::Camera::COLOR_BUFFER2
@ COLOR_BUFFER2
Definition Camera:333
osg::Camera::COLOR_BUFFER12
@ COLOR_BUFFER12
Definition Camera:343
osg::Camera::COLOR_BUFFER1
@ COLOR_BUFFER1
Definition Camera:332
osg::Camera::COLOR_BUFFER13
@ COLOR_BUFFER13
Definition Camera:344
osg::Camera::PACKED_DEPTH_STENCIL_BUFFER
@ PACKED_DEPTH_STENCIL_BUFFER
Definition Camera:329
osg::Camera::STENCIL_BUFFER
@ STENCIL_BUFFER
Definition Camera:328
osg::Camera::COLOR_BUFFER8
@ COLOR_BUFFER8
Definition Camera:339
osg::Camera::COLOR_BUFFER0
@ COLOR_BUFFER0
Definition Camera:331
osg::Camera::COLOR_BUFFER10
@ COLOR_BUFFER10
Definition Camera:341
osg::Camera::COLOR_BUFFER15
@ COLOR_BUFFER15
Definition Camera:346
osg::Camera::COLOR_BUFFER9
@ COLOR_BUFFER9
Definition Camera:340
osg::Camera::COLOR_BUFFER6
@ COLOR_BUFFER6
Definition Camera:337
osg::Camera::getGraphicsContext
const GraphicsContext * getGraphicsContext() const
Definition Camera:570
osg::Camera::getAllowEventFocus
bool getAllowEventFocus() const
Definition Camera:86
osg::Camera::setView
void setView(View *view)
Definition Camera:60
osg::Camera::_viewMatrix
Matrixd _viewMatrix
Definition Camera:837
osg::Camera::TransformOrder
TransformOrder
Definition Camera:164
osg::Camera::POST_MULTIPLY
@ POST_MULTIPLY
Definition Camera:166
osg::Camera::PRE_MULTIPLY
@ PRE_MULTIPLY
Definition Camera:165
osg::Camera::getRenderOrder
RenderOrder getRenderOrder() const
Definition Camera:281
osg::Camera::setAllowEventFocus
void setAllowEventFocus(bool focus)
Definition Camera:82
osg::Camera::setProjectionMatrixAsPerspective
void setProjectionMatrixAsPerspective(double fovy, double aspectRatio, double zNear, double zFar)
osg::Camera::getBufferAttachmentMap
const BufferAttachmentMap & getBufferAttachmentMap() const
Definition Camera:417
osg::ColorMask
Definition ColorMask:25
osg::CopyOp
Definition CopyOp:41
osg::CopyOp::SHALLOW_COPY
@ SHALLOW_COPY
Definition CopyOp:47
osg::CullSettings::applyMaskAction
void applyMaskAction(unsigned int maskBit)
Definition CullSettings:120
osg::CullSettings::DRAW_BUFFER
@ DRAW_BUFFER
Definition CullSettings:78
osg::CullSettings::CLEAR_COLOR
@ CLEAR_COLOR
Definition CullSettings:74
osg::CullSettings::CLEAR_MASK
@ CLEAR_MASK
Definition CullSettings:75
osg::CullSettings::READ_BUFFER
@ READ_BUFFER
Definition CullSettings:79
osg::CullSettings::CullSettings
CullSettings()
Definition CullSettings:31
osg::DisplaySettings
Definition DisplaySettings:34
osg::DisplaySettings::getImplicitBufferAttachmentResolveMask
ImplicitBufferAttachmentMask getImplicitBufferAttachmentResolveMask() const
Definition DisplaySettings:254
osg::DisplaySettings::DEFAULT_IMPLICIT_BUFFER_ATTACHMENT
@ DEFAULT_IMPLICIT_BUFFER_ATTACHMENT
Definition DisplaySettings:229
osg::DisplaySettings::IMPLICIT_STENCIL_BUFFER_ATTACHMENT
@ IMPLICIT_STENCIL_BUFFER_ATTACHMENT
Definition DisplaySettings:227
osg::DisplaySettings::IMPLICIT_COLOR_BUFFER_ATTACHMENT
@ IMPLICIT_COLOR_BUFFER_ATTACHMENT
Definition DisplaySettings:228
osg::DisplaySettings::IMPLICIT_DEPTH_BUFFER_ATTACHMENT
@ IMPLICIT_DEPTH_BUFFER_ATTACHMENT
Definition DisplaySettings:226
osg::DisplaySettings::instance
static ref_ptr< DisplaySettings > & instance()
osg::DisplaySettings::getImplicitBufferAttachmentRenderMask
ImplicitBufferAttachmentMask getImplicitBufferAttachmentRenderMask() const
Definition DisplaySettings:251
osg::GraphicsContext
Definition GraphicsContext:30
osg::Image
Definition Image:179
osg::Matrixd
Definition Matrixd:27
osg::Matrixf
Definition Matrixf:27
osg::NodeVisitor
Definition NodeVisitor:82
osg::Node::dirtyBound
void dirtyBound()
osg::Object
Definition Object:61
osg::OperationThread
Definition OperationThread:154
osg::RenderInfo
Definition RenderInfo:28
osg::State
Definition State:80
osg::Stats
Definition Stats:29
osg::Texture
Definition Texture:422
osg::Transform::Transform
Transform()
osg::Vec3d
Definition Vec3d:30
osg::Vec3f
Definition Vec3f:29
osg::View
Definition osg/View:30
osg::Viewport
Definition Viewport:24
osg::ref_ptr
Definition ref_ptr:32
osg::ref_ptr::get
T * get() const
Definition ref_ptr:117
osg
Definition AlphaFunc:19
osg::Matrix
Matrixd Matrix
Definition Matrix:27
osg::Vec4
Vec4f Vec4
Definition Vec4:21
NULL
#define NULL
Definition osg/Export:55
OSG_EXPORT
#define OSG_EXPORT
Definition osg/Export:39
osg::CameraRenderOrderSortOp
Definition Camera:870
osg::CameraRenderOrderSortOp::operator()
bool operator()(const Camera *lhs, const Camera *rhs) const
Definition Camera:871
osg::Camera::Attachment::_internalFormat
GLenum _internalFormat
Definition Camera:401
osg::Camera::Attachment::_level
unsigned int _level
Definition Camera:404
osg::Camera::Attachment::_texture
ref_ptr< Texture > _texture
Definition Camera:403
osg::Camera::Attachment::Attachment
Attachment()
Definition Camera:372
osg::Camera::Attachment::height
int height() const
Definition Camera:387
osg::Camera::Attachment::_multisampleColorSamples
unsigned int _multisampleColorSamples
Definition Camera:408
osg::Camera::Attachment::_mipMapGeneration
bool _mipMapGeneration
Definition Camera:406
osg::Camera::Attachment::width
int width() const
Definition Camera:380
osg::Camera::Attachment::depth
int depth() const
Definition Camera:394
osg::Camera::Attachment::_face
unsigned int _face
Definition Camera:405
osg::Camera::Attachment::_image
ref_ptr< Image > _image
Definition Camera:402
osg::Camera::Attachment::_multisampleSamples
unsigned int _multisampleSamples
Definition Camera:407
osg::Camera::DrawCallback
Definition Camera:595
osg::Camera::DrawCallback::run
void run(osg::RenderInfo &renderInfo) const
Definition Camera:604
osg::Camera::DrawCallback::releaseGLObjects
virtual void releaseGLObjects(osg::State *state=0) const
Definition Camera:628
osg::Camera::DrawCallback::META_Object
META_Object(osg, DrawCallback)
osg::Camera::DrawCallback::DrawCallback
DrawCallback(const DrawCallback &org, const CopyOp &copyop)
Definition Camera:598
osg::Camera::DrawCallback::DrawCallback
DrawCallback()
Definition Camera:596
osg::Camera::DrawCallback::resizeGLObjectBuffers
virtual void resizeGLObjectBuffers(unsigned int maxSize)
Definition Camera:619
osg::GraphicsOperation
Definition GraphicsThread:36