cubos::core::gl::impl::CubeMapArray class

Abstract cube map.

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, CubeFace face, std::size_t level = 0) pure virtual
Updates a cube map's face with new data, which must have the same format used when the cube map was created.
void generateMipmaps() pure virtual
Generates mipmaps on this cube map.

Function documentation

void cubos::core::gl::impl::CubeMapArray::update(std::size_t x, std::size_t y, std::size_t i, std::size_t width, std::size_t height, const void* data, CubeFace face, std::size_t level = 0) pure virtual

Updates a cube map's face with new data, which must have the same format used when the cube map 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.
face Face to update.
level Mip level to update.