Configuration.cpp File Reference
#include "headers/Configuration.h"
#include "external/jsoncpp/json.h"
#include "headers/Logger.h"
#include "headers/FileHandler.h"
#include <fstream>

Namespaces

 bRenderer
 

Functions

bool bRenderer::loadConfigFile (const std::string &fileName)
 Loads a JSON file containing configurations. More...
 
vmml::Vector3f bRenderer::DEFAULT_AMBIENT_COLOR ()
 
std::string bRenderer::LOG_MODE_INFO ()
 
std::string bRenderer::LOG_MODE_WARNING ()
 
std::string bRenderer::LOG_MODE_ERROR ()
 
std::string bRenderer::LOG_MODE_SYSTEM ()
 
GLint bRenderer::DEFAULT_VIEW_WIDTH ()
 
GLint bRenderer::DEFAULT_VIEW_HEIGHT ()
 
std::string bRenderer::DEFAULT_WINDOW_TITLE ()
 
std::string bRenderer::DEFAULT_FILE_PATH ()
 
std::string bRenderer::DEFAULT_GROUP_NAME ()
 
std::string bRenderer::SHADER_VERSION_MACRO ()
 
std::string bRenderer::SHADER_MAX_LIGHTS_MACRO ()
 
std::string bRenderer::DEFAULT_SHADER_VERSION_DESKTOP ()
 
std::string bRenderer::DEFAULT_SHADER_VERSION_ES ()
 
GLuint bRenderer::DEFAULT_SHADER_MAX_LIGHTS ()
 
std::string bRenderer::DEFAULT_FRAGMENT_SHADER_FILENAME_EXTENSION ()
 
std::string bRenderer::DEFAULT_VERTEX_SHADER_FILENAME_EXTENSION ()
 
std::string bRenderer::DEFAULT_SHADER_UNIFORM_DIFFUSE_MAP ()
 
std::string bRenderer::DEFAULT_SHADER_UNIFORM_SPECULAR_MAP ()
 
std::string bRenderer::DEFAULT_SHADER_UNIFORM_NORMAL_MAP ()
 
std::string bRenderer::DEFAULT_SHADER_UNIFORM_CUBE_MAP ()
 
std::string bRenderer::DEFAULT_SHADER_UNIFORM_SPHERE_MAP ()
 
std::string bRenderer::DEFAULT_SHADER_UNIFORM_CHARACTER_MAP ()
 
std::string bRenderer::DEFAULT_SHADER_UNIFORM_NORMAL_MATRIX ()
 
std::string bRenderer::DEFAULT_SHADER_UNIFORM_MODEL_MATRIX ()
 
std::string bRenderer::DEFAULT_SHADER_UNIFORM_VIEW_MATRIX ()
 
std::string bRenderer::DEFAULT_SHADER_UNIFORM_MODEL_VIEW_MATRIX ()
 
std::string bRenderer::DEFAULT_SHADER_UNIFORM_INVERSE_VIEW_MATRIX ()
 
std::string bRenderer::DEFAULT_SHADER_UNIFORM_PROJECTION_MATRIX ()
 
std::string bRenderer::DEFAULT_SHADER_UNIFORM_NUMBER_OF_LIGHTS ()
 
std::string bRenderer::DEFAULT_SHADER_UNIFORM_LIGHT_POSITION_VIEW_SPACE ()
 
std::string bRenderer::DEFAULT_SHADER_UNIFORM_DIFFUSE_LIGHT_COLOR ()
 
std::string bRenderer::DEFAULT_SHADER_UNIFORM_SPECULAR_LIGHT_COLOR ()
 
std::string bRenderer::DEFAULT_SHADER_UNIFORM_LIGHT_INTENSITY ()
 
std::string bRenderer::DEFAULT_SHADER_UNIFORM_LIGHT_ATTENUATION ()
 
std::string bRenderer::DEFAULT_SHADER_UNIFORM_LIGHT_RADIUS ()
 
std::string bRenderer::DEFAULT_SHADER_UNIFORM_AMBIENT_COLOR ()
 
std::string bRenderer::DEFAULT_SHADER_UNIFORM_TRANSPARENCY ()
 
std::string bRenderer::DEFAULT_SHADER_ATTRIBUTE_POSITION ()
 
std::string bRenderer::DEFAULT_SHADER_ATTRIBUTE_NORMAL ()
 
std::string bRenderer::DEFAULT_SHADER_ATTRIBUTE_TANGENT ()
 
std::string bRenderer::DEFAULT_SHADER_ATTRIBUTE_BITANGENT ()
 
std::string bRenderer::DEFAULT_SHADER_ATTRIBUTE_TEXCOORD ()
 
std::string bRenderer::WAVEFRONT_MATERIAL_NEWMTL ()
 
std::string bRenderer::WAVEFRONT_MATERIAL_AMBIENT_COLOR ()
 
std::string bRenderer::WAVEFRONT_MATERIAL_DIFFUSE_COLOR ()
 
std::string bRenderer::WAVEFRONT_MATERIAL_SPECULAR_COLOR ()
 
std::string bRenderer::WAVEFRONT_MATERIAL_TRANSMISSION_FILTER ()
 
std::string bRenderer::WAVEFRONT_MATERIAL_SPECULAR_EXPONENT ()
 
std::string bRenderer::WAVEFRONT_MATERIAL_OPTICAL_DENSITY ()
 
std::string bRenderer::WAVEFRONT_MATERIAL_ILLUMINATION_MODEL ()
 
std::string bRenderer::WAVEFRONT_MATERIAL_DIFFUSE_MAP ()
 
std::string bRenderer::WAVEFRONT_MATERIAL_SPECULAR_MAP ()
 
std::string bRenderer::WAVEFRONT_MATERIAL_NORMAL_MAP ()
 
std::string bRenderer::WAVEFRONT_MATERIAL_DISSOLVE ()
 
std::string bRenderer::WAVEFRONT_MATERIAL_REFLECTION ()
 
std::string bRenderer::WAVEFRONT_MATERIAL_REFLECTION_TYPE ()
 
std::string bRenderer::WAVEFRONT_MATERIAL_REFLECTION_TYPE_CUBE_TOP ()
 
std::string bRenderer::WAVEFRONT_MATERIAL_REFLECTION_TYPE_CUBE_BOTTOM ()
 
std::string bRenderer::WAVEFRONT_MATERIAL_REFLECTION_TYPE_CUBE_FRONT ()
 
std::string bRenderer::WAVEFRONT_MATERIAL_REFLECTION_TYPE_CUBE_BACK ()
 
std::string bRenderer::WAVEFRONT_MATERIAL_REFLECTION_TYPE_CUBE_LEFT ()
 
std::string bRenderer::WAVEFRONT_MATERIAL_REFLECTION_TYPE_CUBE_RIGHT ()
 
std::string bRenderer::WAVEFRONT_MATERIAL_REFLECTION_TYPE_SPHERE ()
 
GLfloat bRenderer::DEFAULT_FIELD_OF_VIEW ()
 
GLfloat bRenderer::DEFAULT_ASPECT_RATIO ()
 
GLfloat bRenderer::DEFAULT_NEAR_CLIPPING_PLANE ()
 
GLfloat bRenderer::DEFAULT_FAR_CLIPPING_PLANE ()
 
vmml::Vector3f bRenderer::DEFAULT_CAMERA_POSITION ()
 
vmml::Vector3f bRenderer::DEFAULT_CAMERA_ROTATION_AXES ()
 
vmml::Vector4f bRenderer::DEFAULT_LIGHT_POSITION ()
 
vmml::Vector3f bRenderer::DEFAULT_LIGHT_COLOR ()
 
GLfloat bRenderer::DEFAULT_LIGHT_INTENSITY ()
 
GLfloat bRenderer::DEFAULT_LIGHT_ATTENUATION ()
 
GLfloat bRenderer::DEFAULT_LIGHT_RADIUS ()
 
GLuint bRenderer::FONT_MAX_PIXEL_SIZE ()
 

Variables

Json::Value bRenderer::jsonValue
 
Json::Reader bRenderer::jsonReader