Perliminary support for glGenerateMinMapEXT.

This commit is contained in:
Robert Osfield
2005-07-25 16:12:24 +00:00
parent 384830d37e
commit bddaefd569
6 changed files with 53 additions and 4 deletions

View File

@@ -231,7 +231,7 @@ class OSG_EXPORT CameraNode : public Transform, public CullSettings
void attach(BufferComponent buffer, GLenum internalFormat);
void attach(BufferComponent buffer, osg::Texture* texture, unsigned int level = 0, unsigned int face=0);
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);
@@ -242,13 +242,15 @@ class OSG_EXPORT CameraNode : public Transform, public CullSettings
Attachment():
_internalFormat(GL_NONE),
_level(0),
_face(0) {}
_face(0),
_mipMapGeneration(false) {}
GLenum _internalFormat;
ref_ptr<Image> _image;
ref_ptr<Texture> _texture;
unsigned int _level;
unsigned int _face;
bool _mipMapGeneration;
};
typedef std::map< BufferComponent, Attachment> BufferAttachmentMap;

View File

@@ -48,6 +48,7 @@ class OSG_EXPORT GraphicsContext : public Referenced
_target(0),
_level(0),
_face(0),
_mipMapGeneration(false),
_sharedContext() {}
// where graphic context is be hosted.
@@ -83,6 +84,7 @@ class OSG_EXPORT GraphicsContext : public Referenced
GLenum _target;
unsigned int _level;
unsigned int _face;
unsigned int _mipMapGeneration;
// shared context
GraphicsContext* _sharedContext;