Started adding an OpenGL gui for the pheromone map.

This commit is contained in:
2016-06-25 19:12:36 -04:00
parent 1283ccfff1
commit 6e21e87400
11 changed files with 120 additions and 22 deletions

27
gui.hpp Normal file
View File

@@ -0,0 +1,27 @@
#pragma once
#ifndef GUI_HPP
#define GUI_HPP
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Gl_Window.H>
#include <FL/gl.h>
#include <string>
class GlGui : public Fl_Gl_Window {
public:
GlGui(Fl_Window * parent, int x, int y, int w, int h, const char * l);
protected:
virtual void draw();
virtual int handle(int);
private:
Fl_Window * parent;
std::string title;
bool initialized;
};
#endif