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

Image view and sampler object pair. More...

#include <texture.hpp>

Inheritance diagram for gl::texture:
gl::texture_1d gl::texture_1d_array gl::texture_2d gl::texture_2d_array gl::texture_3d gl::texture_cube gl::texture_cube_array

Public Member Functions

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

Image view and sampler object pair.

Definition at line 32 of file texture.hpp.

Constructor & Destructor Documentation

◆ texture() [1/2]

gl::texture::texture ( std::shared_ptr< gl::sampler sampler)
inlinenoexcept

Constructs a texture.

Parameters
image_viewTexture image view.
samplerTexture sampler.

Definition at line 42 of file texture.hpp.

◆ texture() [2/2]

constexpr gl::texture::texture ( )
constexprdefaultnoexcept

Constructs a texture.

Parameters
image_viewTexture image view.
samplerTexture sampler.

Member Function Documentation

◆ 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
samplerSampler object.

Definition at line 54 of file texture.hpp.


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