class
#include <core/gl/render_device.hpp>
Texture1D Abstract 1D texture.
Public functions
- void update(std::size_t x, std::size_t width, 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:: Texture1D:: update(std::size_t x,
std::size_t width,
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. |
width | Width of the section which will be updated. |
data | Pointer to the new data. |
level | Mip level to update. |