A 2D texture which can be uploaded to shaders via shader inputs.
constexpr texture_type get_texture_type() const noexcept override
Returns the texture type.
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...