20 #ifndef ANTKEEPER_GL_TEXTURE_HPP
21 #define ANTKEEPER_GL_TEXTURE_HPP
60 [[nodiscard]]
inline constexpr
const std::shared_ptr<sampler>&
get_sampler() const noexcept
66 std::shared_ptr<sampler> m_sampler;
94 [[nodiscard]]
inline constexpr
const std::shared_ptr<image_view_1d>&
get_image_view() const noexcept
100 std::shared_ptr<image_view_1d> m_image_view;
128 [[nodiscard]]
inline constexpr
const std::shared_ptr<image_view_1d_array>&
get_image_view() const noexcept
134 std::shared_ptr<image_view_1d_array> m_image_view;
162 [[nodiscard]]
inline constexpr
const std::shared_ptr<image_view_2d>&
get_image_view() const noexcept
168 std::shared_ptr<image_view_2d> m_image_view;
196 [[nodiscard]]
inline constexpr
const std::shared_ptr<image_view_2d_array>&
get_image_view() const noexcept
202 std::shared_ptr<image_view_2d_array> m_image_view;
230 [[nodiscard]]
inline constexpr
const std::shared_ptr<image_view_3d>&
get_image_view() const noexcept
236 std::shared_ptr<image_view_3d> m_image_view;
264 [[nodiscard]]
inline constexpr
const std::shared_ptr<image_view_cube>&
get_image_view() const noexcept
270 std::shared_ptr<image_view_cube> m_image_view;
298 [[nodiscard]]
inline constexpr
const std::shared_ptr<image_view_cube_array>&
get_image_view() const noexcept
304 std::shared_ptr<image_view_cube_array> m_image_view;
constexpr texture_1d_array() noexcept=default
Constructs a texture.
constexpr const std::shared_ptr< image_view_1d_array > & get_image_view() const noexcept
Returns the image view.
texture_1d_array(std::shared_ptr< image_view_1d_array > image_view, std::shared_ptr< gl::sampler > sampler) noexcept
Constructs a texture.
void set_image_view(std::shared_ptr< gl::image_view_1d_array > image_view)
Sets the image view.
texture_1d(std::shared_ptr< image_view_1d > image_view, std::shared_ptr< gl::sampler > sampler) noexcept
Constructs a texture.
void set_image_view(std::shared_ptr< gl::image_view_1d > image_view)
Sets the image view.
constexpr texture_1d() noexcept=default
Constructs a texture.
constexpr const std::shared_ptr< image_view_1d > & get_image_view() const noexcept
Returns the image view.
constexpr const std::shared_ptr< image_view_2d_array > & get_image_view() const noexcept
Returns the image view.
texture_2d_array(std::shared_ptr< image_view_2d_array > image_view, std::shared_ptr< gl::sampler > sampler) noexcept
Constructs a texture.
constexpr texture_2d_array() noexcept=default
Constructs a texture.
void set_image_view(std::shared_ptr< gl::image_view_2d_array > image_view)
Sets the image view.
texture_2d(std::shared_ptr< image_view_2d > image_view, std::shared_ptr< gl::sampler > sampler) noexcept
Constructs a texture.
constexpr texture_2d() noexcept=default
Constructs a texture.
constexpr const std::shared_ptr< image_view_2d > & get_image_view() const noexcept
Returns the image view.
void set_image_view(std::shared_ptr< gl::image_view_2d > image_view)
Sets the image view.
texture_3d(std::shared_ptr< image_view_3d > image_view, std::shared_ptr< gl::sampler > sampler) noexcept
Constructs a texture.
void set_image_view(std::shared_ptr< gl::image_view_3d > image_view)
Sets the image view.
constexpr const std::shared_ptr< image_view_3d > & get_image_view() const noexcept
Returns the image view.
constexpr texture_3d() noexcept=default
Constructs a texture.
constexpr texture_cube_array() noexcept=default
Constructs a texture.
texture_cube_array(std::shared_ptr< image_view_cube_array > image_view, std::shared_ptr< gl::sampler > sampler) noexcept
Constructs a texture.
void set_image_view(std::shared_ptr< gl::image_view_cube_array > image_view)
Sets the image view.
constexpr const std::shared_ptr< image_view_cube_array > & get_image_view() const noexcept
Returns the image view.
texture_cube(std::shared_ptr< image_view_cube > image_view, std::shared_ptr< gl::sampler > sampler) noexcept
Constructs a texture.
constexpr const std::shared_ptr< image_view_cube > & get_image_view() const noexcept
Returns the image view.
constexpr texture_cube() noexcept=default
Constructs a texture.
void set_image_view(std::shared_ptr< gl::image_view_cube > image_view)
Sets the image view.
Image view and sampler object pair.
texture(std::shared_ptr< gl::sampler > sampler) noexcept
Constructs a texture.
constexpr texture() noexcept=default
Constructs a texture.
void set_sampler(std::shared_ptr< gl::sampler > sampler)
Sets the sampler object.
constexpr const std::shared_ptr< sampler > & get_sampler() const noexcept
Returns the sampler object.
Graphics library interface.