|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
Texture creation parameters. More...
#include <Texture.hpp>
Public Attributes | |
| u32 | width = 1 |
| Texture width in pixels. | |
| u32 | height = 1 |
| Texture height in pixels. | |
| TextureFormat | format = TextureFormat::RGBA8 |
| Pixel format. | |
| TextureFilter | minFilter = TextureFilter::Linear |
| Minification filter. | |
| TextureFilter | magFilter = TextureFilter::Linear |
| Magnification filter. | |
| TextureWrap | wrapS = TextureWrap::Repeat |
| Horizontal wrap mode. | |
| TextureWrap | wrapT = TextureWrap::Repeat |
| Vertical wrap mode. | |
| bool | generateMips = true |
| Generate mipmaps automatically. | |
| u32 | layers = 1 |
| Above 1, a 2D texture array of this many layers (see TextureDesc::layers). | |
| bool | volume = false |
| A 3D texture layers deep (see TextureDesc::volume). | |
Texture creation parameters.
Specifies all properties for texture creation including dimensions, format, filtering, and wrapping.
Definition at line 74 of file Texture.hpp.
| TextureFormat esengine::TextureSpecification::format = TextureFormat::RGBA8 |
Pixel format.
Definition at line 80 of file Texture.hpp.
Referenced by esengine::Texture::createRaw(), esengine::resource::ResourceManager::createTextureArray(), esengine::Texture::createVolume(), esengine::rm_createTextureArray(), and esengine::rm_createTextureEx().
| bool esengine::TextureSpecification::generateMips = true |
Generate mipmaps automatically.
Definition at line 90 of file Texture.hpp.
Referenced by esengine::Texture::createRaw(), and esengine::Texture::createVolume().
| u32 esengine::TextureSpecification::height = 1 |
Texture height in pixels.
Definition at line 78 of file Texture.hpp.
Referenced by esengine::Texture::createRaw(), esengine::resource::ResourceManager::createTextureArray(), esengine::Texture::createVolume(), esengine::rm_createTextureArray(), and esengine::rm_createTextureEx().
| u32 esengine::TextureSpecification::layers = 1 |
Above 1, a 2D texture array of this many layers (see TextureDesc::layers).
Definition at line 92 of file Texture.hpp.
Referenced by esengine::resource::ResourceManager::createTextureArray(), esengine::Texture::createVolume(), and esengine::rm_createTextureArray().
| TextureFilter esengine::TextureSpecification::magFilter = TextureFilter::Linear |
Magnification filter.
Definition at line 84 of file Texture.hpp.
| TextureFilter esengine::TextureSpecification::minFilter = TextureFilter::Linear |
Minification filter.
Definition at line 82 of file Texture.hpp.
| bool esengine::TextureSpecification::volume = false |
A 3D texture layers deep (see TextureDesc::volume).
Definition at line 94 of file Texture.hpp.
Referenced by esengine::Texture::createVolume().
| u32 esengine::TextureSpecification::width = 1 |
Texture width in pixels.
Definition at line 76 of file Texture.hpp.
Referenced by esengine::Texture::createRaw(), esengine::resource::ResourceManager::createTextureArray(), esengine::Texture::createVolume(), esengine::rm_createTextureArray(), and esengine::rm_createTextureEx().
| TextureWrap esengine::TextureSpecification::wrapS = TextureWrap::Repeat |
Horizontal wrap mode.
Definition at line 86 of file Texture.hpp.
Referenced by esengine::Texture::createRaw(), and esengine::Texture::createVolume().
| TextureWrap esengine::TextureSpecification::wrapT = TextureWrap::Repeat |
Vertical wrap mode.
Definition at line 88 of file Texture.hpp.
Referenced by esengine::Texture::createRaw(), and esengine::Texture::createVolume().