BakedData.cpp 748 Bytes
Newer Older
Nianchen Deng's avatar
sync    
Nianchen Deng committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "BakedData.h"


BakedData::BakedData(const std::string & rootDir) {
	_textures[0][0].reset(new Texture2D((rootDir + "fovea_l.png").c_str()));
	_textures[0][1].reset(new Texture2D((rootDir + "mid_l.png").c_str()));
	_textures[0][2].reset(new Texture2D((rootDir + "periph_l.png").c_str()));
	_textures[1][0].reset(new Texture2D((rootDir + "fovea_r.png").c_str()));
	_textures[1][1].reset(new Texture2D((rootDir + "mid_r.png").c_str()));
	_textures[1][2].reset(new Texture2D((rootDir + "periph_r.png").c_str()));
	_textures[2][0].reset(new Texture2D((rootDir + "fovea.png").c_str()));
	_textures[2][1].reset(new Texture2D((rootDir + "mid.png").c_str()));
	_textures[2][2].reset(new Texture2D((rootDir + "periph.png").c_str()));
}