Exemplo n.º 1
0
//! glTextureSubImage3D wrapper. May throw.
inline void 
textureSubImage3D(const GLuint texture,
                  const GLenum target, 
                  const GLint level, 
                  const GLint x0,     
                  const GLint y0, 
                  const GLint z0,     
                  const GLsizei w, 
                  const GLsizei h,      
                  const GLsizei d,
                  const GLenum fmt,    
                  const GLenum type, 
                  const GLvoid *data) {
  glTextureSubImage3DEXT(
    texture,target, level, x0, y0, z0, w, h, d, fmt, type, data);
  checkError("glTextureSubImage3DEXT");
}
Exemplo n.º 2
0
void AbstractTexture::subImageImplementationDSA(GLenum target, GLint level, const Vector3i& offset, const Vector3i& size, AbstractImage::Format format, AbstractImage::Type type, const GLvoid* data) {
    glTextureSubImage3DEXT(_id, target, level, offset.x(), offset.y(), offset.z(), size.x(), size.y(), size.z(), static_cast<GLenum>(format), static_cast<GLenum>(type), data);
}