A texture used in a hymn.
More...
#include <TextureAsset.hpp>
|
| std::string | name |
| | The name of the texture. More...
|
| |
| std::string | path |
| | The folder containing the texture files. More...
|
| |
A texture used in a hymn.
◆ TextureAsset() [1/3]
Create new texture asset.
- Parameters
-
| lowLevelRenderer | The low-level renderer to use. |
◆ TextureAsset() [2/3]
Create new texture asset from a PNG image.
- Parameters
-
| lowLevelRenderer | The low-level renderer to use. |
| source | Source string containing the image file. |
| sourceLength | Length of the source string. |
◆ TextureAsset() [3/3]
| TextureAsset::TextureAsset |
( |
Video::LowLevelRenderer * |
lowLevelRenderer, |
|
|
const glm::uvec2 & |
size, |
|
|
const glm::vec4 & |
color |
|
) |
| |
Create new uniform texture asset with a specified color value.
- Parameters
-
| lowLevelRenderer | The low-level renderer to use. |
| size | The size of the texture in pixels. |
| color | The color value. |
◆ ~TextureAsset()
| TextureAsset::~TextureAsset |
( |
| ) |
|
◆ GetTexture()
| Texture2D * TextureAsset::GetTexture |
( |
| ) |
const |
Get the texture.
- Returns
- The texture.
◆ Load()
| void TextureAsset::Load |
( |
const std::string & |
name | ) |
|
Load texture asset from disk.
- Parameters
-
| name | The name of the texture asset. |
◆ Save()
| void TextureAsset::Save |
( |
| ) |
const |
◆ name
| std::string TextureAsset::name |
◆ path
| std::string TextureAsset::path |
The folder containing the texture files.
The documentation for this class was generated from the following files: