Added osg::TextureCubeMap. submission from Brede Johansen.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user