Add missing pragma once on headers

This commit is contained in:
Théophile Bastian 2018-02-06 19:07:07 +01:00
parent 4d944d0e75
commit d1c3cbe498
5 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,5 @@
#pragma once
class ImplicitSurface { class ImplicitSurface {
public: public:
virtual double operator() (double x, double y, double z); virtual double operator() (double x, double y, double z);

View file

@ -2,6 +2,8 @@
* Defines a mesh, ready to be OpenGL-rendered * Defines a mesh, ready to be OpenGL-rendered
**/ **/
#pragma once
#include <vector> #include <vector>
#include <unordered_map> #include <unordered_map>
#include <cstddef> // size_t #include <cstddef> // size_t

View file

@ -2,6 +2,8 @@
* Defines a few widely used, widely spread structures. Imported pervasively. * Defines a few widely used, widely spread structures. Imported pervasively.
**/ **/
#pragma once
#include <functional> // Hash #include <functional> // Hash
#include <vector> #include <vector>
#include <cassert> #include <cassert>

View file

@ -1,5 +1,7 @@
/** The most basic renderer — a stupid glut application */ /** The most basic renderer — a stupid glut application */
#pragma once
#include "../Mesh.hpp" #include "../Mesh.hpp"
#include <set> #include <set>

View file

@ -1,5 +1,7 @@
/** Parses .obj mesh files, outputting a `Mesh` */ /** Parses .obj mesh files, outputting a `Mesh` */
#pragma once
#include <fstream> #include <fstream>
#include <string> #include <string>
#include <stdexcept> #include <stdexcept>