Jamie Slowgrove - PGG Assignment 2
 All Classes Namespaces Files Functions Variables Typedefs Macros
FileLoader.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 #include <iostream>
5 #include <fstream>
6 #include <vector>
7 #include <sstream>
8 
13 namespace FileLoader
14 {
21 
28  void loadOBJFile(std::string objFileName, std::vector<float> &vertices,
29  std::vector<float> &vertexNormals, std::vector<float> &vertexTextures);
30 
36  void loadXYZFloats(std::stringstream &streamLine, std::vector<float> &vectorArray);
37 
43  void loadUVFloats(std::stringstream &streamLine, std::vector<float> &vectorArray);
44 
55  void sortWithIndices(std::stringstream &streamLine,
56  std::vector<float> &loadedVertices, std::vector<float> &loadedVertexNormals,
57  std::vector<float> &loadedVertexTextures, std::vector<float> &vertices,
58  std::vector<float> &vertexNormals, std::vector<float> &vertexTextures);
59 }
void loadXYZFloats(std::stringstream &streamLine, std::vector< float > &vectorArray)
Definition: FileLoader.cpp:128
std::string loadShaderFile(std::string fileName)
Definition: FileLoader.cpp:6
void 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)
Definition: FileLoader.cpp:162
void loadOBJFile(std::string objFileName, std::vector< float > &vertices, std::vector< float > &vertexNormals, std::vector< float > &vertexTextures)
Definition: FileLoader.cpp:52
A namespace that contains functions to load in files.
Definition: FileLoader.h:13
void loadUVFloats(std::stringstream &streamLine, std::vector< float > &vectorArray)
Definition: FileLoader.cpp:145
GLsizei const GLchar *const * string
Definition: glew.h:1843