OpenGL gui working. Added sketch of the pheromone map. Added shaders.

This commit is contained in:
2016-06-26 02:20:29 -04:00
parent 6e21e87400
commit 87859fa044
17 changed files with 1723 additions and 28 deletions

26
pheromone.hpp Normal file
View File

@@ -0,0 +1,26 @@
#ifndef PHEROMONE_HPP
#define PHEROMONE_HPP
#include <GL/gl.h>
#include <semaphore.h>
class PheromoneMap {
public:
PheromoneMap(const char * file_name);
~PheromoneMap();
GLuint s_build_texture();
private:
unsigned char * data;
unsigned m_width;
unsigned m_height;
unsigned char m_bpp;
sem_t map_semaphore;
bool tex_created;
GLuint handle;
void load_map(const char * file_name);
};
#endif