18 lines
527 B
C++
18 lines
527 B
C++
#ifndef TEXTURE_HPP
|
|
#define TEXTURE_HPP
|
|
|
|
#include <string.h>
|
|
#include <vector>
|
|
#include <array>
|
|
|
|
// Load a .BMP file using our custom loader
|
|
GLuint loadBMP_custom(const char * imagepath);
|
|
|
|
// Load a .DDS file using GLFW's own loader
|
|
GLuint loadDDS(const std::string& imagepath, bool linear = true);
|
|
// Load a list of .DDS files
|
|
GLuint loadDDSArray(const std::vector<std::string> &imagepaths, float mipMapLOD = 0);
|
|
// Load a .DDS cubemap
|
|
GLuint loadDDSCube(const std::array<std::string, 6> &imagepaths);
|
|
|
|
#endif |