#include "jsfile.h" #include "settings.h" #include "glrender.h" #include "drawelement.h" #ifdef HAVE_LIBGLM using namespace settings; namespace camp { void jsfile::copy(string name) { std::ifstream fin(locateFile(name).c_str()); string s; while(getline(fin,s)) out << s << newl; } void jsfile::open(string name) { out.open(name); out << "" << newl << newl; bool absolute=getSetting("absolute"); if(!absolute) out << "" << newl << newl; out.precision(getSetting("digits")); copy(locateFile(WebGLheader)); if(getSetting("offline")) { out << "" << newl; } else { out << "" << newl; } out << "