bool copy_file( const std::string &source_path, const std::string &dest_path ) { std::ifstream source_stream( source_path.c_str(), std::ifstream::in | std::ifstream::binary ); std::ofstream dest_stream( dest_path.c_str(), std::ofstream::out | std::ofstream::binary ); dest_stream << source_stream.rdbuf(); dest_stream.close(); return dest_stream && source_stream; }
GLuint GameWindow::compileShader_(std::string path, GLuint shader_type) { GLuint shader_id = glCreateShader(shader_type); std::ifstream source_stream(path); }