Image view and sampler object pair.
More...
#include <texture.hpp>
Image view and sampler object pair.
Definition at line 32 of file texture.hpp.
◆ texture() [1/2]
gl::texture::texture |
( |
std::shared_ptr< gl::sampler > |
sampler | ) |
|
|
inlinenoexcept |
Constructs a texture.
- Parameters
-
image_view | Texture image view. |
sampler | Texture sampler. |
Definition at line 42 of file texture.hpp.
◆ texture() [2/2]
constexpr gl::texture::texture |
( |
| ) |
|
|
constexprdefaultnoexcept |
Constructs a texture.
- Parameters
-
image_view | Texture image view. |
sampler | Texture sampler. |
◆ get_sampler()
constexpr const std::shared_ptr<sampler>& gl::texture::get_sampler |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Returns the sampler object.
Definition at line 60 of file texture.hpp.
◆ set_sampler()
void gl::texture::set_sampler |
( |
std::shared_ptr< gl::sampler > |
sampler | ) |
|
|
inline |
Sets the sampler object.
- Parameters
-
Definition at line 54 of file texture.hpp.
The documentation for this class was generated from the following file: