2014-11-08 00:17:23 +00:00
|
|
|
#include "material.hh"
|
2014-10-22 21:17:18 +00:00
|
|
|
|
2014-11-08 00:17:23 +00:00
|
|
|
Material::Material(std::string filePath) {
|
2014-10-22 21:17:18 +00:00
|
|
|
reference = ACGL::OpenGL::Texture2DFileManager::the()->get(ACGL::OpenGL::Texture2DCreator(filePath));
|
|
|
|
}
|
|
|
|
|
2014-11-08 00:17:23 +00:00
|
|
|
Material::Material() {
|
2014-10-24 08:48:45 +00:00
|
|
|
}
|
|
|
|
|
2014-11-08 00:17:23 +00:00
|
|
|
Material::~Material() {
|
2014-10-22 21:17:18 +00:00
|
|
|
}
|
|
|
|
|
2014-11-08 00:17:23 +00:00
|
|
|
ACGL::OpenGL::SharedTexture2D Material::getReference() {
|
2014-10-22 21:17:18 +00:00
|
|
|
return reference;
|
|
|
|
}
|