|
| | Texture (const uint32_t opengl_id) |
| | Create a texture using an existing OpenGL handle.
|
| |
|
| Texture (const Texture &)=delete |
| |
|
Texture & | operator= (const Texture &)=delete |
| |
|
| Texture (Texture &&other) noexcept |
| |
|
| 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) |
| | Load texture from raw gpu image data.
|
| |
| | Texture (const ByteSpan data, const ColorSpace color_space, const int32_t wanted_channels=4, const uint8_t max_mips=1) |
| | Load texture from an image stored in memory.
|
| |
| | Texture (const std::string &filename, const ColorSpace color_space, const uint8_t max_mips=1) |
| | Load texture from a file.
|
| |
|
| 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) |
| | Generate a RGBA texture from a function returning a vec4.
|
| |
|
| 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) |
| | Generate a texture from a material.
|
| |
|
void | use (const uint8_t layer) |
| |
|
virtual void | enableBilinearFiltering (bool enabled=true) |
| |
|
virtual void | generateMipMaps () |
| |
|
void | clampToEdge () |
| |
|
void | wrapRepeat () |
| |
|
void | fillTextureData (ByteSpan data, const uint32_t face, const uint32_t mip_level) |
| |
|
ByteArray | fetchTextureData (const uint32_t face, const uint32_t mip_level) |
| | Get texture data from OpenGL memory.
|
| |
| glm::ivec2 | getDimensions (const uint8_t mip_level=0) const |
| | Get dimensions of the texture.
|
| |
| uint32_t | releaseOwnership () |
| | Get ownership of the internal handle (to prevent external texture being destroyed) Only do this if you know what you are doing.
|
| |