YourGameLib
Loading...
Searching...
No Matches
Namespaces | Typedefs | Functions
loading.cpp File Reference
#include <string>
#include <vector>
#include <map>
#include <array>
#include <exception>
#include "tiny_obj_loader.h"
#include "nlohmann/json.hpp"
#include "yourgame/yourgame.h"
#include "yourgame/file.h"
#include "yourgame/gl/loading.h"
#include "yourgame/gl/conventions.h"
Include dependency graph for loading.cpp:

Namespaces

namespace  yourgame
 
namespace  yourgame::gl
 gl classes and functions
 

Typedefs

using json = nlohmann::json
 

Functions

Textureyourgame::gl::loadTexture (const std::string &imgFilename, const std::string &atlasFilename, const yourgame::gl::TextureConfig &cfg)
 
Textureyourgame::gl::loadCubemap (const std::vector< std::string > &filenames, const yourgame::gl::TextureConfig &cfg)
 loads images and generates cubemap texture
 
Shaderyourgame::gl::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={})
 
Shaderyourgame::gl::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={})
 
Geometryyourgame::gl::loadGeometry (const std::string &objFilename, const std::string &mtlFilename="")
 
Geometryyourgame::gl::loadGeometryFromStrings (const std::string &objCode, const std::string &mtlCode="")
 

Typedef Documentation

◆ json

using json = nlohmann::json