Skip to content
Snippets Groups Projects
Commit cd4e9e3c authored by Pascal Engeler's avatar Pascal Engeler
Browse files

changed printing

parent 03d8fead
No related branches found
No related tags found
No related merge requests found
......@@ -40,11 +40,17 @@ PatternHandler::PatternHandler(Toolbox& tb)
glBindBuffer(GL_ARRAY_BUFFER, 0);
/*Load structure textures*/
std::cout << "Loading slit.tex" << std::endl;
load_damping_texture_(tb, tb.texture_path + "slit", &texture_singleslit_);
std::cout << "Loading doubleslit.tex" << std::endl;
load_damping_texture_(tb, tb.texture_path + "doubleslit", &texture_doubleslit_);
std::cout << "Loading square.tex" << std::endl;
load_damping_texture_(tb, tb.texture_path + "square", &texture_lattice_);
std::cout << "Loading channel.tex" << std::endl;
load_damping_texture_(tb, tb.texture_path + "channel", &texture_waveguide_);
std::cout << "Loading ssh.tex" << std::endl;
load_damping_texture_(tb, tb.texture_path + "ssh", &texture_ssh_);
std::cout << "Loading fresnel.tex" << std::endl;
load_damping_texture_(tb, tb.texture_path + "fresnel", &texture_fresnel_);
}
......@@ -119,6 +125,7 @@ bool PatternHandler::load_damping_texture_(const Toolbox& tb, const std::string
std::cout << "Failed to open file " + config_filename << std::endl;
return false;
}
#ifndef NDEBUG
std::cout << "Loaded configuration from " + config_filename;
std::cout << "\n\tScreen Resolution: " << screen_width << "x" << screen_height;
std::cout << "\n\tTexture Resolution: " << texture_width << "x" << texture_height;
......@@ -126,7 +133,7 @@ bool PatternHandler::load_damping_texture_(const Toolbox& tb, const std::string
std::cout << "\n\tOffset Right: " << texoffset_right;
std::cout << "\n\tOffset Bottom: " << texoffset_bottom;
std::cout << "\n\tOffset Top: " << texoffset_top << std::endl;
#endif
/*Check if configuration is compatible with toolbox settings*/
if (tb.screen_h != screen_height || tb.screen_w != screen_width) {
std::cout << "Incompatible Toolbox Screen Resolution: " << tb.screen_w << "x" << tb.screen_h << std::endl;
......@@ -142,11 +149,12 @@ bool PatternHandler::load_damping_texture_(const Toolbox& tb, const std::string
}
/*Load texture data*/
#ifndef NDEBUG
else {
std::cout << "Texture is compatible" << std::endl;
}
std::cout << "Loading Texture" << std::endl;
#endif
std::fstream dmp_file;
std::string damping_filename = filename + ".texture";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment