cubos::core::gl::impl::Texture2DArray class

Abstract 2D texture array.

Public functions

void update(std::size_t x, std::size_t y, std::size_t i, std::size_t width, std::size_t height, 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::Texture2DArray::update(std::size_t x, std::size_t y, std::size_t i, std::size_t width, std::size_t height, 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.
i Index of the destination texture within the array.
width Width of the section which will be updated.
height Height of the section which will be updated.
data Pointer to the new data.
level Mip level to update.