|
| static void | loadArray2D (gl::TextureArray *target, const fs::path &dirPath, gl::TextureParams params=gl::TextureParams::Pixelated()) |
| | Load textures from a directory into a texture array.
|
| |
◆ loadArray2D()
| void TextureLoader::loadArray2D |
( |
gl::TextureArray * |
target, |
|
|
const fs::path & |
dirPath, |
|
|
gl::TextureParams |
params = gl::TextureParams::Pixelated() |
|
) |
| |
|
static |
Load textures from a directory into a texture array.
- Parameters
-
| target | Texture array to load the textures into |
| dirPath | Path to the directory containing the textures |
| params | Settings for the texture array |
- Note
- No need to specify the width, height, layer count and format, they will be automatically determined from the images in the directory
The documentation for this class was generated from the following files: