Jamie Slowgrove - PGG Assignment 2
 All Classes Namespaces Files Functions Variables Typedefs Macros
Namespaces | Functions
FileLoader.h File Reference
#include <string>
#include <iostream>
#include <fstream>
#include <vector>
#include <sstream>
Include dependency graph for FileLoader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 FileLoader
 A namespace that contains functions to load in files.
 

Functions

std::string FileLoader::loadShaderFile (std::string fileName)
 
void FileLoader::loadOBJFile (std::string objFileName, std::vector< float > &vertices, std::vector< float > &vertexNormals, std::vector< float > &vertexTextures)
 
void FileLoader::loadXYZFloats (std::stringstream &streamLine, std::vector< float > &vectorArray)
 
void FileLoader::loadUVFloats (std::stringstream &streamLine, std::vector< float > &vectorArray)
 
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)