Level H Engine
Namespaces | Functions
FileLoader.cpp File Reference
#include "FileLoader.h"
#include <fstream>
#include "../Core/Logging.h"
Include dependency graph for FileLoader.cpp:

Namespaces

 FileLoader
 A namespace that contains functions to load in files.
 

Functions

std::string FileLoader::loadShaderFile (std::string fileName)
 Load the contents of a text file in to a std::string. More...
 
void FileLoader::loadOBJFile (std::string objFileName, std::vector< float > &vertices, std::vector< float > &vertexNormals, std::vector< float > &vertexTextures)
 Load the contents of an obj file. NOTE: This can only load in triangulated meshes. More...
 
void FileLoader::loadXYZFloats (std::stringstream &streamLine, std::vector< float > &vectorArray)
 Load in the XYZ coordinate from the line. More...
 
void FileLoader::loadUVFloats (std::stringstream &streamLine, std::vector< float > &vectorArray)
 Load in the UV coordinate from the line. More...
 
void FileLoader::sortWithIndices (std::stringstream &streamLine, std::vector< float > &loadedVertices, std::vector< float > &loadedVertexNormals, std::vector< float > &loadedVertexTextures, std::vector< float > &vertices, std::vector< float > &vertexNormals, std::vector< float > &vertexTextures)
 Sort the data using the indices of the faces to order the data. More...