Commit e178f74a authored by Andreas Neu's avatar Andreas Neu

Added method setTexSubImage3D within Texture.hh in order to support glTexSubImage3D.

parent 45cb3586
......@@ -224,7 +224,7 @@ public:
_pData);
}
//! Set data for specific area within the texture
//! Set data for specific area within the 2D texture
inline void setTexSubImage2D(
const GLvoid* _pData,
int _x,
......@@ -241,7 +241,32 @@ public:
_width,
_height,
mFormat,
mType(),
mType,
_pData);
}
//! Set data for specific area within the 3D texture
inline void setTexSubImage3D(
const GLvoid* _pData,
int _x,
int _y,
int _z,
int _width,
int _height,
int _depth)
{
bind();
glTexSubImage3D(
mTarget,
0,
_x,
_y,
_z,
_width,
_height,
_depth,
mFormat,
mType,
_pData);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment