cubos::core::gl::impl::Texture3D class

Abstract 3D texture.

Public functions

void update(std::size_t x, std::size_t y, std::size_t z, std::size_t width, std::size_t height, std::size_t depth, const void* data, std::size_t level = 0) pure virtual
Updates the texture with new data, which must have the same format used when the texture was created.
void generateMipmaps() pure virtual
Generates mipmaps on this texture.

Function documentation

void cubos::core::gl::impl::Texture3D::update(std::size_t x, std::size_t y, std::size_t z, std::size_t width, std::size_t height, std::size_t depth, const void* data, std::size_t level = 0) pure virtual

Updates the texture with new data, which must have the same format used when the texture was created.

Parameters
x Destination X coordinate.
y Destination Y coordinate.
z Destination Z coordinate.
width Width of the section which will be updated.
height Height of the section which will be updated.
depth Depth of the section which will be updated.
data Pointer to the new data.
level Mip level to update.