|
| 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 int | read_image (const std::filesystem::path &path, bool flip) |
| |
Definition at line 30 of file texture.hpp.
◆ Id
| using brenta::Texture::Id = unsigned int |
◆ Filtering
| enum brenta::Texture::Filtering |
◆ Target
| enum brenta::Texture::Target |
◆ Type
| enum brenta::Texture::Type |
◆ Wrapping
| enum brenta::Texture::Wrapping |
◆ Texture() [1/3]
| brenta::Texture::Texture |
( |
| ) |
|
|
inline |
◆ Texture() [2/3]
| Texture::Texture |
( |
const Config & |
conf | ) |
|
◆ Texture() [3/3]
| brenta::Texture::Texture |
( |
Texture && |
other | ) |
|
|
inlinenoexcept |
◆ ~Texture()
◆ active_texture()
| void Texture::active_texture |
( |
int |
texture | ) |
|
|
static |
◆ bind()
◆ bind_id() [1/2]
| void Texture::bind_id |
( |
Texture::Target |
target, |
|
|
Texture::Id |
id |
|
) |
| |
|
static |
◆ bind_id() [2/2]
| void Texture::bind_id |
( |
Texture::Target |
target, |
|
|
Texture::Id |
id, |
|
|
const Texture::Properties & |
properties |
|
) |
| |
|
static |
◆ get_id()
| Texture::Id Texture::get_id |
( |
| ) |
const |
◆ get_path()
| std::filesystem::path Texture::get_path |
( |
| ) |
const |
◆ get_properties()
◆ get_target()
| Texture::Target Texture::get_target |
( |
| ) |
const |
◆ get_type()
| Texture::Type Texture::get_type |
( |
| ) |
const |
◆ load()
| unsigned int Texture::load |
( |
const std::filesystem::path & |
path, |
|
|
int & |
loaded_memory, |
|
|
bool |
flip = true |
|
) |
| |
|
static |
◆ load_solid_color()
| unsigned int Texture::load_solid_color |
( |
Color |
color | ) |
|
|
static |
◆ operator=()
◆ read_image()
| int Texture::read_image |
( |
const std::filesystem::path & |
path, |
|
|
bool |
flip |
|
) |
| |
|
staticprotected |
◆ id
| Texture::Id brenta::Texture::id = 0 |
|
protected |
◆ memory
| int brenta::Texture::memory = 0 |
◆ path
| std::filesystem::path brenta::Texture::path |
|
protected |
◆ properties
◆ target
| Texture::Target brenta::Texture::target |
|
protected |
◆ tot_memory
| int Texture::tot_memory = 0 |
|
static |
◆ type
| Texture::Type brenta::Texture::type |
|
protected |
The documentation for this class was generated from the following files: