VoxelEngine
 
Loading...
Searching...
No Matches
engine::TextureLoader Class Reference

Static Public Member Functions

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.
 

Member Function Documentation

◆ 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
targetTexture array to load the textures into
dirPathPath to the directory containing the textures
paramsSettings 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: