VoxelEngine
 
Loading...
Searching...
No Matches
TextureLoader.h
1#pragma once
2
3#include <filesystem>
4#include <string>
5
6#include <LWGL/texture/TextureArray.h>
7
8namespace engine {
9 namespace fs = std::filesystem;
10
12 public:
18 static void loadArray2D(
19 gl::TextureArray* target,
20 const fs::path& dirPath,
21 gl::TextureParams params = gl::TextureParams::Pixelated()
22 );
23
24 private:
25 static std::string getTextureName(const fs::path& path);
26 };
27
28} // namespace engine
Definition TextureLoader.h:11
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.
Definition TextureLoader.cpp:15