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
8
namespace
engine {
9
namespace
fs = std::filesystem;
10
11
class
TextureLoader
{
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
engine::TextureLoader
Definition
TextureLoader.h:11
engine::TextureLoader::loadArray2D
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
src
data
TextureLoader.h
Generated by
1.9.8