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:
Robert Osfield
2015-03-31 15:08:13 +00:00
parent 296c12a8e9
commit 99f7bfab3b
3 changed files with 78 additions and 19 deletions

View File

@@ -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.