Antkeeper  0.0.1
Public Member Functions | List of all members
gl::texture_2d_array Class Reference

2D texture array. More...

#include <texture.hpp>

Inheritance diagram for gl::texture_2d_array:
gl::texture

Public Member Functions

void set_image_view (std::shared_ptr< gl::image_view_2d_array > image_view)
 Sets the image view. More...
 
constexpr const std::shared_ptr< image_view_2d_array > & get_image_view () const noexcept
 Returns the image view. More...
 
 texture_2d_array (std::shared_ptr< image_view_2d_array > image_view, std::shared_ptr< gl::sampler > sampler) noexcept
 Constructs a texture. More...
 
constexpr texture_2d_array () noexcept=default
 Constructs a texture. More...
 
- Public Member Functions inherited from gl::texture
void set_sampler (std::shared_ptr< gl::sampler > sampler)
 Sets the sampler object. More...
 
constexpr const std::shared_ptr< sampler > & get_sampler () const noexcept
 Returns the sampler object. More...
 
 texture (std::shared_ptr< gl::sampler > sampler) noexcept
 Constructs a texture. More...
 
constexpr texture () noexcept=default
 Constructs a texture. More...
 

Detailed Description

2D texture array.

Definition at line 174 of file texture.hpp.

Constructor & Destructor Documentation

◆ texture_2d_array() [1/2]

gl::texture_2d_array::texture_2d_array ( std::shared_ptr< image_view_2d_array image_view,
std::shared_ptr< gl::sampler sampler 
)
inlinenoexcept

Constructs a texture.

Parameters
image_viewTexture image view.
samplerTexture sampler.

Definition at line 179 of file texture.hpp.

◆ texture_2d_array() [2/2]

constexpr gl::texture_2d_array::texture_2d_array ( )
constexprdefaultnoexcept

Constructs a texture.

Parameters
image_viewTexture image view.
samplerTexture sampler.

Member Function Documentation

◆ get_image_view()

constexpr const std::shared_ptr<image_view_2d_array>& gl::texture_2d_array::get_image_view ( ) const
inlineconstexprnoexcept

Returns the image view.

Definition at line 196 of file texture.hpp.

◆ set_image_view()

void gl::texture_2d_array::set_image_view ( std::shared_ptr< gl::image_view_2d_array image_view)
inline

Sets the image view.

Definition at line 190 of file texture.hpp.


The documentation for this class was generated from the following file: