Brenta Engine 1.2
Loading...
Searching...
No Matches
brenta::Cubemap Class Reference
Inheritance diagram for brenta::Cubemap:
brenta::Texture

Public Member Functions

 Cubemap (const tenno::vector< std::filesystem::path > &faces)
 
- Public Member Functions inherited from brenta::Texture
 Texture (const Config &conf)
 
 Texture (const Texture &)=delete
 
Textureoperator= (const Texture &)=delete
 
 Texture (Texture &&other) noexcept
 
Textureoperator= (Texture &&other) noexcept
 
Texture::Id get_id () const
 
std::filesystem::path get_path () const
 
Texture::Type get_type () const
 
Texture::Target get_target () const
 
Texture::Propertiesget_properties ()
 
void bind ()
 

Additional Inherited Members

- Public Types inherited from brenta::Texture
enum  Type { None , Diffuse , Specular }
 
enum  Target {
  Texture1D = GL_TEXTURE_1D , Texture2D = GL_TEXTURE_2D , Texture3D = GL_TEXTURE_3D , Texture1DArray = GL_TEXTURE_1D_ARRAY ,
  Texture2DArray = GL_TEXTURE_2D_ARRAY , TextureRectangle = GL_TEXTURE_RECTANGLE , TextureCubeMap = GL_TEXTURE_CUBE_MAP , TextureCubeMapArray = GL_TEXTURE_CUBE_MAP_ARRAY ,
  TextureBuffer = GL_TEXTURE_BUFFER , Texture2DMultisample = GL_TEXTURE_2D_MULTISAMPLE , Texture2DMultisampleArray = GL_TEXTURE_2D_MULTISAMPLE_ARRAY
}
 
enum  Wrapping { Repeat = GL_REPEAT , MirroredRepeat = GL_MIRRORED_REPEAT , ClampToEdge = GL_CLAMP_TO_EDGE , ClampToBorder = GL_CLAMP_TO_BORDER }
 
enum  Filtering {
  Nearest = GL_NEAREST , Linear = GL_LINEAR , NearestMipmapNearest = GL_NEAREST_MIPMAP_NEAREST , NearestMipmapLinear = GL_NEAREST_MIPMAP_LINEAR ,
  LinearMipmapNearest = GL_LINEAR_MIPMAP_NEAREST , LinearMipmapLinear = GL_LINEAR_MIPMAP_LINEAR
}
 
using Id = unsigned int
 
- Static Public Member Functions inherited from brenta::Texture
static void active_texture (int texture)
 
static Texture::Id load (const std::filesystem::path &path, int &loaded_memory, bool flip=true)
 
static Texture::Id load_solid_color (Color color)
 
static void bind_id (Texture::Target target, Texture::Id id)
 
static void bind_id (Texture::Target target, Texture::Id id, const Texture::Properties &properties)
 
- Data Fields inherited from brenta::Texture
int memory = 0
 
- Static Public Attributes inherited from brenta::Texture
static int tot_memory = 0
 
- Static Protected Member Functions inherited from brenta::Texture
static int read_image (const std::filesystem::path &path, bool flip)
 
- Protected Attributes inherited from brenta::Texture
Texture::Id id = 0
 
Texture::Type type
 
Texture::Target target
 
std::filesystem::path path
 
Texture::Properties properties
 

Detailed Description

Definition at line 16 of file cubemap.hpp.

Constructor & Destructor Documentation

◆ Cubemap()

brenta::Cubemap::Cubemap ( const tenno::vector< std::filesystem::path > &  faces)
inline

Definition at line 20 of file cubemap.hpp.


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