Commit 6a3cdcb7 authored by Edward Vigmond's avatar Edward Vigmond

Move to GLEW from GLee

parent 9b2e6224
#include "GLee.h"
#include "Frame.h"
#ifdef OSMESA
#include <GL/osmesa.h>
#endif
#else
#define COUT_ERROR(A) if(gle==A)cout<<#A<<endl;
#include <GL/glew.h>
static bool initglew = false;
#endif
#include "Frame.h"
Frame :: Frame( TBmeshWin *t ) : _tbwm(t)
{
#ifndef OSMESA
if( !initglew ) {
initglew = true;
GLenum err = glewInit();
if (GLEW_OK != err) {
cerr << "GLEW problem -- aborting!" << endl;
}
}
#endif
}
......
This diff is collapsed.
This diff is collapsed.
......@@ -5,12 +5,13 @@ Meshalyzer is regularly used on Linux and Mac machines. It has worked under Wind
## Prerequisities ##
1. [libpng](http://libpng.org)
2. [FLTK 1.3](http://www.fltk.org/). Manually downloadad and installed is better since the prepackaged versions often have issues with fltk-config.
2. [FLTK 1.3.x](http://www.fltk.org/). Manually downloadad and installed is better since the prepackaged versions often have issues with fltk-config.
3. [glew](http://glew.sourceforge.net).
2. [glut](https://www.opengl.org/resources/libraries/glut/)
3. To make the "windowless" rendering version, [OSMesa](https://www.mesa3d.org/osmesa.html)
4. To read in VTK VTU format meshes, install [VTK](https://www.vtk.org/) development files
Except for fltk, using your package manager is recommended for installing these packages if possible.
Except for fltk, using your package manager is recommended for installing these packages if possible. On OSX, [homebrew](https://brew.sh/) works for me.
## Compiling ##
......@@ -24,6 +25,8 @@ Except for fltk, using your package manager is recommended for installing these
## Documentation ##
To compile (LaTeX required)
1. cd manual
2. pdflatex manual
3. pdflatex manual
HOSTMACHINE := $(shell uname)
include make.conf
VTK_LIBDIR =/usr/lib64
VTK_INCDIR =/usr/include/vtk-8.1
#VTK_LIBDIR =/usr/lib64
#VTK_INCDIR =/usr/include/vtk-8.1
FLTK_INC := $(shell fltk-config --use-glut --use-gl --cxxflags)
FLTK_LD_FLAGS := $(shell fltk-config --use-images --use-glut --use-gl --ldflags)
......@@ -40,7 +40,7 @@ endif
LIB_EXT = .so
endif
COMMON_LIBS = -lpng -lpthread -lm -lz $(LIB_HDF5)
COMMON_LIBS = -lGLEW -lpng -lpthread -lm -lz $(LIB_HDF5)
LIBS = $(FLTK_LD_FLAGS) $(COMMON_LIBS)
CPPFLAGS = $(FLTK_INC) $(COMMON_INC)
CXXFLAGS = -std=c++11 -g -O$(DEBUG_LEVEL) $(OMP_FLAG) -MMD -DNOMINMAX
......
//#include <GLee.h>
#include "trimesh.h"
#include "isosurf.h"
#include <string>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment