A 1D texture which can be uploaded to shaders via shader inputs.
virtual void set_wrapping(gl::texture_wrapping wrap_s)
Sets the texture wrapping modes.
constexpr texture_type get_texture_type() const noexcept override
Returns the texture type.
texture_1d(std::uint16_t width, 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)
virtual void resize(std::uint16_t width, gl::pixel_type type, gl::pixel_format format, gl::transfer_function transfer_function, const std::byte *data)
Resizes the texture.
Abstract base class for 1D, 2D, 3D, and cube textures which can be uploaded to shaders via shader inp...