Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
oe::render::DynamicCubemap Class Reference
Inheritance diagram for oe::render::DynamicCubemap:
[legend]
Collaboration diagram for oe::render::DynamicCubemap:
[legend]

Public Member Functions

 DynamicCubemap (const int &size=1024, const int &internal_format=0, const int &format=0, const int &type=0)
 
void generate (const std::function< void(scene::Camera &camera)> &render_scene)
 
void generateMipmaps (const std::function< void(scene::Camera &camera, const uint8_t mip)> &render_scene, const uint8_t &max_mips)
 
scene::Camera getCamera () const
 
void fillFaceFromTexture (oe::render::Texture *texture, const int &x, const int &y, const unsigned int &face, const unsigned int &mip_level)
 
- Public Member Functions inherited from oe::render::Cubemap
 Cubemap (const unsigned int &size, const int &internal_format=0, const int &format=0, const int &type=0, const int &max_mip=1)
 
 Cubemap (const std::string &equirectangular_filename, const float &brightness_multiplier=1.0f, const int &max_mips=1)
 
 Cubemap (const std::string &folder, const std::string &extension, const bool is_hdr=false, const std::vector< std::string > &faces={"posx", "negx", "posy", "negy", "posz", "negz"})
 
 Cubemap (const std::vector< std::string > &filenames, const bool is_hdr=false)
 
 Cubemap (const uint32_t size, const std::function< glm::vec4(const uint8_t face, const uint32_t i, const uint32_t j)> generator, const int &max_mips=5)
 
std::vector< uint8_t > fetchTextureData (const unsigned int &face, const unsigned int &mip_level)
 
void fillTextureData (const std::vector< uint8_t > &data, const unsigned int &face, const unsigned int &mip_level)
 
unsigned int getSize () const
 
virtual void enableBilinearFiltering (bool enabled=true) override
 
void generateMipMaps () override
 
void useMipMaps ()
 
virtual void use (const uint8_t &layer) override
 
- Public Member Functions inherited from oe::render::Texture
 Texture (const int32_t width, const int32_t height, const uint8_t *data, const int32_t nb_channels=0, const int32_t internal_format=0, const int32_t format=0, const int32_t type=0, const uint8_t max_mips=1)
 
 Texture (const std::string &filename, const bool &is_srgb=false, const uint8_t max_mips=1)
 
 Texture (const uint32_t width, const uint32_t height, const std::function< glm::vec4(const uint32_t i, const uint32_t j)> generator, const uint8_t max_mips=1)
 
 Texture (const uint32_t width, const uint32_t height, const oe::scene::Material &generator, const int32_t nb_channels=0, const int32_t internal_format=0, const int32_t format=0, const int32_t type=0, const uint8_t max_mips=1)
 
void clampToEdge ()
 
void wrapRepeat ()
 
void fillTextureData (const std::vector< uint8_t > &data, const unsigned int &face, const unsigned int &mip_level)
 
std::vector< uint8_t > fetchTextureData (const unsigned int &face, const unsigned int &mip_level)
 
unsigned int getWidth () const
 
unsigned int getHeight () const
 
unsigned int getHandle () const
 
int getImageInternalFormat () const
 
int getImageFormat () const
 
int getImageType () const
 

Friends

class oe::render::Cubemap
 

Additional Inherited Members

- Static Public Member Functions inherited from oe::render::Texture
static TexturegenerateFromCompressed (const int32_t compression, const int32_t width, const int32_t height, const int32_t data_size, const uint8_t *data)
 
- Protected Member Functions inherited from oe::render::Cubemap
bool _load_from_file (const std::vector< std::string > &filenames, const int &internal_format=0, const int &format=0, const int &type=0)
 
void _construct_cubemap (const std::vector< std::string > &filenames, const int &internal_format=0, const int &format=0, const int &type=0, const int &max_mips=5)
 
template<typename T >
void _generate_cubemap (const unsigned int &size, oe::render::Shader *shader, T *texture, const int &max_mips)
 
- Protected Member Functions inherited from oe::render::Texture
 Texture (const Texture &)=delete
 
Textureoperator= (const Texture &)=delete
 
void _generate_texture (const int32_t width, const int32_t height, const uint8_t *data, const int32_t nb_channels=0, const int32_t internal_format=0, const int32_t format=0, const int32_t type=0, const uint8_t max_mips=1)
 
- Protected Attributes inherited from oe::render::Cubemap
unsigned int _size
 
- Protected Attributes inherited from oe::render::Texture
uint32_t _internal_id = 0
 
int32_t _width
 
int32_t _height
 
int _internal_format = 0
 
int _format = 0
 
int _type = 0
 

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