MobileRT  1.0
A multi platform C++ CPU progressive Ray Tracer.
Utils.cpp File Reference
#include "Utils.hpp"
#include "Constants.hpp"
#include "ErrorCode.hpp"
#include <clocale>
#include <functional>
#include <string>
#include <sys/sysinfo.h>
#include <unistd.h>
Include dependency graph for Utils.cpp:

Namespaces

 MobileRT
 

Functions

::std::int32_t MobileRT::roundDownToMultipleOf (const ::std::int32_t value, const ::std::int32_t multiple)
 
float MobileRT::haltonSequence (::std::uint32_t index, const ::std::uint32_t base)
 
::std::int32_t MobileRT::incrementalAvg (const ::glm::vec3 &sample, const ::std::int32_t avg, const ::std::int32_t numSample)
 
::glm::vec2 MobileRT::toVec2 (const char *const values)
 
::glm::vec3 MobileRT::toVec3 (const char *const values)
 
::glm::vec3 MobileRT::toVec3 (const float *const values)
 
bool MobileRT::equal (const float a, const float b)
 
bool MobileRT::equal (const ::glm::vec3 &vec1, const ::glm::vec3 &vec2)
 
bool MobileRT::isValid (const float value)
 
::glm::vec2 MobileRT::normalize (const ::glm::vec2 &textureCoordinates)
 
::glm::vec3 MobileRT::normalize (const ::glm::vec3 &color)
 
float MobileRT::fresnel (const ::glm::vec3 &I, const ::glm::vec3 &N, const float ior)
 
void MobileRT::checkSystemError (const char *const message)
 
void MobileRT::printFreeMemory ()