20#ifndef YOURGAME_GLLOADING_H
21#define YOURGAME_GLLOADING_H
45 Texture *
loadTexture(
const std::string &imgFilename,
46 const std::string &atlasFilename,
54 Texture *
loadCubemap(
const std::vector<std::string> &filenames,
57 Shader *
loadShader(
const std::vector<std::pair<GLenum, std::string>> &shaderFilenames,
58 const std::vector<std::pair<GLuint, std::string>> &attrLocs = {},
59 const std::vector<std::pair<GLuint, std::string>> &fragDataLocs = {});
62 const std::vector<std::pair<GLuint, std::string>> &attrLocs = {},
63 const std::vector<std::pair<GLuint, std::string>> &fragDataLocs = {});
66 const std::string &mtlFilename =
"");
69 const std::string &mtlCode =
"");
const GLenum textureUnitDiffuse
Definition conventions.cpp:58
Shader * loadShader(const std::vector< std::pair< GLenum, std::string > > &shaderFilenames, const std::vector< std::pair< GLuint, std::string > > &attrLocs={}, const std::vector< std::pair< GLuint, std::string > > &fragDataLocs={})
Definition loading.cpp:276
Shader * loadShaderFromStrings(const std::vector< std::pair< GLenum, std::string > > &shaderCodes, const std::vector< std::pair< GLuint, std::string > > &attrLocs={}, const std::vector< std::pair< GLuint, std::string > > &fragDataLocs={})
Definition loading.cpp:293
Geometry * loadGeometry(const std::string &objFilename, const std::string &mtlFilename="")
Definition loading.cpp:315
Texture * loadTexture(const std::string &imgFilename, const std::string &atlasFilename, const yourgame::gl::TextureConfig &cfg)
Definition loading.cpp:38
Texture * loadCubemap(const std::vector< std::string > &filenames, const yourgame::gl::TextureConfig &cfg)
loads images and generates cubemap texture
Definition loading.cpp:225
Geometry * loadGeometryFromStrings(const std::string &objCode, const std::string &mtlCode="")
Definition loading.cpp:343
GLint minMagFilter
Definition loading.h:38
bool premultiplyAlpha
Definition loading.h:41
std::vector< std::pair< GLenum, GLint > > parameteri
Definition loading.h:42
GLint wrapMode
Definition loading.h:39
bool generateMipmap
Definition loading.h:40
GLenum unit
Definition loading.h:37