Cube map texture wrapper.  
 More...
#include <cubemap.hpp>
 | 
| static void  | unbind () | 
|   | Unbind the cubemap texture.  
  | 
|   | 
Cube map texture wrapper. 
- Examples
 - teapot.cpp.
 
Definition at line 33 of file cubemap.hpp.
 
◆ cubemap() [1/3]
Construct a new cubemap object. 
- Parameters
 - 
  
    | data | The cubemap data, six faces of the cube.  | 
    | res | The resolution of the cubemap.  | 
    | color | The color format of the cubemap.  | 
    | filter | The filtering algorithms to use for the cubemap.  | 
    | generate_mipmaps | Whether to generate mipmaps for the cubemap, defaults to false.  | 
  
   
Definition at line 146 of file cubemap.hpp.
 
 
◆ ~cubemap()
  
  
      
        
          | staplegl::cubemap::~cubemap  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinenoexcept   | 
  
 
Destroy the cubemap object. 
Definition at line 55 of file cubemap.hpp.
 
 
◆ cubemap() [2/3]
  
  
      
        
          | staplegl::cubemap::cubemap  | 
          ( | 
          const cubemap &  | 
           | ) | 
           | 
         
       
   | 
  
delete   | 
  
 
 
◆ cubemap() [3/3]
  
  
      
        
          | staplegl::cubemap::cubemap  | 
          ( | 
          cubemap &&  | 
          other | ) | 
           | 
         
       
   | 
  
inlinenoexcept   | 
  
 
Construct a new cubemap object from another cubemap object. 
- Parameters
 - 
  
    | other | the other cubemap object to move from.  | 
  
   
Definition at line 72 of file cubemap.hpp.
 
 
◆ bind()
  
  
      
        
          | void staplegl::cubemap::bind  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ color()
  
  
      
        
          | constexpr auto staplegl::cubemap::color  | 
          ( | 
           | ) | 
           const -> texture_color  | 
         
       
   | 
  
inlineconstexprnoexcept   | 
  
 
 
◆ id()
  
  
      
        
          | constexpr auto staplegl::cubemap::id  | 
          ( | 
           | ) | 
           const -> uint32_t  | 
         
       
   | 
  
inlineconstexprnoexcept   | 
  
 
Get the texture id. 
- Returns
 - uint32_t the texture id. 
 
Definition at line 116 of file cubemap.hpp.
 
 
◆ operator=() [1/2]
  
  
      
        
          | auto staplegl::cubemap::operator=  | 
          ( | 
          const cubemap &  | 
           | ) | 
           ->  cubemap &=delete | 
         
       
   | 
  
delete   | 
  
 
 
◆ operator=() [2/2]
Move assignment operator. 
- Parameters
 - 
  
    | other | the other cubemap object to move from.  | 
  
   
- Returns
 - cubemap& a reference to this object. 
 
Definition at line 87 of file cubemap.hpp.
 
 
◆ res()
  
  
      
        
          | constexpr auto staplegl::cubemap::res  | 
          ( | 
           | ) | 
           const -> resolution  | 
         
       
   | 
  
inlineconstexprnoexcept   | 
  
 
Get the resolution of the cubemap. 
- Returns
 - resolution the resolution of the cubemap. 
 
Definition at line 130 of file cubemap.hpp.
 
 
◆ set_unit()
  
  
      
        
          | void staplegl::cubemap::set_unit  | 
          ( | 
          std::uint32_t  | 
          unit_offset | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Set the unit object to bind the texture to. 
- Parameters
 - 
  
    | unit_offset | an offset that specifies the unit on which to bind the texture.  | 
  
   
Definition at line 181 of file cubemap.hpp.
 
 
◆ unbind()
  
  
      
        
          | void staplegl::cubemap::unbind  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
Unbind the cubemap texture. 
Definition at line 176 of file cubemap.hpp.
 
 
◆ m_color
◆ m_filter
◆ m_id
  
  
      
        
          | uint32_t staplegl::cubemap::m_id {} | 
         
       
   | 
  
private   | 
  
 
 
◆ m_res
The documentation for this class was generated from the following file: