Antkeeper
0.0.1
|
2D texture. More...
#include <texture.hpp>
Public Member Functions | |
void | set_image_view (std::shared_ptr< gl::image_view_2d > image_view) |
Sets the image view. More... | |
constexpr const std::shared_ptr< image_view_2d > & | get_image_view () const noexcept |
Returns the image view. More... | |
texture_2d (std::shared_ptr< image_view_2d > image_view, std::shared_ptr< gl::sampler > sampler) noexcept | |
Constructs a texture. More... | |
constexpr | texture_2d () noexcept=default |
Constructs a texture. More... | |
![]() | |
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... | |
2D texture.
Definition at line 140 of file texture.hpp.
|
inlinenoexcept |
Constructs a texture.
image_view | Texture image view. |
sampler | Texture sampler. |
Definition at line 145 of file texture.hpp.
|
constexprdefaultnoexcept |
Constructs a texture.
image_view | Texture image view. |
sampler | Texture sampler. |
|
inlineconstexprnoexcept |
Returns the image view.
Definition at line 162 of file texture.hpp.
|
inline |
Sets the image view.
Definition at line 156 of file texture.hpp.