Introduced Camera::resizeAttachments(int width, int height) to resize all the Texture and Image assigned the the Camera attachments.
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14810 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
@@ -159,6 +159,7 @@ class OSG_EXPORT Camera : public Transform, public CullSettings
|
||||
Viewport* getViewport() { return _viewport.get(); }
|
||||
|
||||
|
||||
|
||||
enum TransformOrder
|
||||
{
|
||||
PRE_MULTIPLY,
|
||||
@@ -425,6 +426,9 @@ class OSG_EXPORT Camera : public Transform, public CullSettings
|
||||
/** Get the AttachmentMapModifiedCount. */
|
||||
unsigned int getAttachmentMapModifiedCount() const { return _attachmentMapModifiedCount; }
|
||||
|
||||
/** Resize the image and textures in the AttachementMap.*/
|
||||
void resizeAttachments(int width, int height);
|
||||
|
||||
|
||||
/** Explicit control over implicit allocation of buffers when using FBO.
|
||||
Implicit buffers are automatically substituted when user have not attached such buffer.
|
||||
|
||||
Reference in New Issue
Block a user