Added osg::TextureCubeMap. submission from Brede Johansen.

This commit is contained in:
Robert Osfield
2002-03-18 23:10:33 +00:00
parent 49e7be88a7
commit 8f02db61e5
7 changed files with 561 additions and 3 deletions

View File

@@ -81,6 +81,7 @@ class SG_EXPORT Texture : public StateAttribute
_modifiedTag(),
_textureObjectSize(text._textureObjectSize),
_image(copyop(text._image.get())),
_target(text._target),
_textureUnit(text._textureUnit),
_wrap_s(text._wrap_s),
_wrap_t(text._wrap_t),
@@ -327,6 +328,8 @@ class SG_EXPORT Texture : public StateAttribute
// which is const...
mutable ref_ptr<Image> _image;
GLenum _target; // defaults to GL_TEXTURE_2D
unsigned int _textureUnit;
WrapMode _wrap_s;