texture_2d(std::uint16_t width, std::uint16_t height, gl::pixel_type type=gl::pixel_type::uint_8, gl::pixel_format format=gl::pixel_format::rgba, gl::transfer_function transfer_function=gl::transfer_function::linear, const std::byte *data=nullptr)
void set_wrapping(gl::texture_wrapping wrap_s, texture_wrapping wrap_t) override
Sets the texture wrapping modes.
void resize(std::uint16_t width, std::uint16_t height, gl::pixel_type type, gl::pixel_format format, gl::transfer_function transfer_function, const std::byte *data) override
Resizes the texture.
Abstract base class for 1D, 2D, 3D, and cube textures which can be uploaded to shaders via shader inp...
virtual void resize(std::uint16_t width, std::uint16_t height, std::uint16_t depth, gl::pixel_type type, gl::pixel_format format, gl::transfer_function transfer_function, const std::byte *data)
Resizes the texture.
virtual void set_wrapping(gl::texture_wrapping wrap_s, gl::texture_wrapping wrap_t, gl::texture_wrapping wrap_r)
Sets the texture wrapping modes.
transfer_function get_transfer_function() const noexcept
Returns the transfer function.
pixel_format get_pixel_format() const noexcept
Returns the pixel format enumeration.
pixel_type get_pixel_type() const noexcept
Returns the pixel type enumeration.