Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CGoGN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thomas Pitiot
CGoGN
Commits
77c64075
Commit
77c64075
authored
Nov 19, 2012
by
Thery Sylvain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleaning of GL/glew includes
parent
aae2b76b
Changes
27
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
39 additions
and
29 deletions
+39
-29
CMakeLists.txt
CMakeLists.txt
+1
-0
include/Algo/Modelisation/extrusion.hpp
include/Algo/Modelisation/extrusion.hpp
+1
-1
include/Algo/Render/GL2/colorPerFaceRender.h
include/Algo/Render/GL2/colorPerFaceRender.h
+0
-1
include/Algo/Render/GL2/explodeVolumeRender.h
include/Algo/Render/GL2/explodeVolumeRender.h
+0
-2
include/Algo/Render/GL2/mapRender.h
include/Algo/Render/GL2/mapRender.h
+0
-1
include/Algo/Render/GL2/topo3Render.h
include/Algo/Render/GL2/topo3Render.h
+0
-2
include/Algo/Render/GL2/topoRender.h
include/Algo/Render/GL2/topoRender.h
+0
-2
include/Utils/Qt/macgl3.h
include/Utils/Qt/macgl3.h
+25
-0
include/Utils/Qt/qtgl.h
include/Utils/Qt/qtgl.h
+1
-1
include/Utils/drawer.h
include/Utils/drawer.h
+1
-1
include/Utils/fbo.h
include/Utils/fbo.h
+0
-1
include/Utils/textures.h
include/Utils/textures.h
+0
-1
include/Utils/vbo.h
include/Utils/vbo.h
+0
-1
include/Utils/vboRender.h
include/Utils/vboRender.h
+1
-1
src/Utils/Qt/qtgl.cpp
src/Utils/Qt/qtgl.cpp
+9
-1
src/Utils/Shaders/shaderColorPerVertex.cpp
src/Utils/Shaders/shaderColorPerVertex.cpp
+0
-1
src/Utils/Shaders/shaderEnvMap.cpp
src/Utils/Shaders/shaderEnvMap.cpp
+0
-1
src/Utils/Shaders/shaderExplodeVolumes.cpp
src/Utils/Shaders/shaderExplodeVolumes.cpp
+0
-1
src/Utils/Shaders/shaderExplodeVolumesLines.cpp
src/Utils/Shaders/shaderExplodeVolumesLines.cpp
+0
-1
src/Utils/Shaders/shaderFlat.cpp
src/Utils/Shaders/shaderFlat.cpp
+0
-1
src/Utils/Shaders/shaderFlatColor.cpp
src/Utils/Shaders/shaderFlatColor.cpp
+0
-1
src/Utils/Shaders/shaderIsoLines.cpp
src/Utils/Shaders/shaderIsoLines.cpp
+0
-1
src/Utils/Shaders/shaderScalarField.cpp
src/Utils/Shaders/shaderScalarField.cpp
+0
-2
src/Utils/Shaders/shaderSimpleColor.cpp
src/Utils/Shaders/shaderSimpleColor.cpp
+0
-1
src/Utils/Shaders/shaderSimpleTexture.cpp
src/Utils/Shaders/shaderSimpleTexture.cpp
+0
-1
src/Utils/Shaders/shaderTextureMask.cpp
src/Utils/Shaders/shaderTextureMask.cpp
+0
-1
src/Utils/Shaders/shaderVectorPerVertex.cpp
src/Utils/Shaders/shaderVectorPerVertex.cpp
+0
-1
No files found.
CMakeLists.txt
View file @
77c64075
...
@@ -135,6 +135,7 @@ IF(APPLE)
...
@@ -135,6 +135,7 @@ IF(APPLE)
SET
(
CMAKE_SHARED_LINKER_FLAGS
"
${
CMAKE_SHARED_LINKER_FLAGS
}
-Wl,-undefined -Wl,dynamic_lookup"
)
SET
(
CMAKE_SHARED_LINKER_FLAGS
"
${
CMAKE_SHARED_LINKER_FLAGS
}
-Wl,-undefined -Wl,dynamic_lookup"
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-DMAC_OSX"
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-DMAC_OSX"
)
SET
(
CMAKE_OSX_ARCHITECTURES x86_64
)
SET
(
CMAKE_OSX_ARCHITECTURES x86_64
)
SET
(
CGoGN_EXT_LIBS
${
CGoGN_EXT_LIBS
}
"-framework Foundation -framework cocoa"
)
ENDIF
(
APPLE
)
ENDIF
(
APPLE
)
IF
(
WIN32
)
IF
(
WIN32
)
...
...
include/Algo/Modelisation/extrusion.hpp
View file @
77c64075
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
* *
* *
*******************************************************************************/
*******************************************************************************/
#include
<GL/glew.h>
#include
"Utils/gl_def.h"
#include "Geometry/transfo.h"
#include "Geometry/transfo.h"
namespace
CGoGN
namespace
CGoGN
...
...
include/Algo/Render/GL2/colorPerFaceRender.h
View file @
77c64075
...
@@ -25,7 +25,6 @@
...
@@ -25,7 +25,6 @@
#ifndef _COLOR_PER_FACE_RENDER
#ifndef _COLOR_PER_FACE_RENDER
#define _COLOR_PER_FACE_RENDER
#define _COLOR_PER_FACE_RENDER
#include <GL/glew.h>
#include "Topology/generic/dart.h"
#include "Topology/generic/dart.h"
#include "Topology/generic/attributeHandler.h"
#include "Topology/generic/attributeHandler.h"
...
...
include/Algo/Render/GL2/explodeVolumeRender.h
View file @
77c64075
...
@@ -25,8 +25,6 @@
...
@@ -25,8 +25,6 @@
#ifndef _EXPLODE_VOLUME_VBO_RENDER
#ifndef _EXPLODE_VOLUME_VBO_RENDER
#define _EXPLODE_VOLUME_VBO_RENDER
#define _EXPLODE_VOLUME_VBO_RENDER
#include <GL/glew.h>
#include <vector>
#include <vector>
#include <list>
#include <list>
...
...
include/Algo/Render/GL2/mapRender.h
View file @
77c64075
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
#define _USE_MATH_DEFINES
#define _USE_MATH_DEFINES
#include <cmath>
#include <cmath>
#include <GL/glew.h>
#include <vector>
#include <vector>
#include <list>
#include <list>
#include <set>
#include <set>
...
...
include/Algo/Render/GL2/topo3Render.h
View file @
77c64075
...
@@ -25,8 +25,6 @@
...
@@ -25,8 +25,6 @@
#ifndef _TOPO3_VBO_RENDER
#ifndef _TOPO3_VBO_RENDER
#define _TOPO3_VBO_RENDER
#define _TOPO3_VBO_RENDER
#include <GL/glew.h>
#include <vector>
#include <vector>
#include <list>
#include <list>
...
...
include/Algo/Render/GL2/topoRender.h
View file @
77c64075
...
@@ -25,8 +25,6 @@
...
@@ -25,8 +25,6 @@
#ifndef _GL2_TOPO_RENDER_
#ifndef _GL2_TOPO_RENDER_
#define _GL2_TOPO_RENDER_
#define _GL2_TOPO_RENDER_
#include <GL/glew.h>
#include <vector>
#include <vector>
#include <list>
#include <list>
...
...
include/Utils/Qt/macgl3.h
0 → 100644
View file @
77c64075
//#include <QApplication>
#include <QGLWidget>
#include <QGLContext>
#include <iostream>
//external Objective C function
void
*
select_3_2_mac_visual
(
GDHandle
handle
);
namespace
CGoGN
{
/// Use with GLWidget(...):QGLWidget(new Core3_2_context(QGLFormat::defaultFormat()))
/// check with std::cout<<glGetString(GL_VERSION)<<std::endl;
struct
Core3_2_context
:
public
QGLContext
{
Core3_2_context
(
const
QGLFormat
&
format
,
QPaintDevice
*
device
)
:
QGLContext
(
format
,
device
)
{}
Core3_2_context
(
const
QGLFormat
&
format
)
:
QGLContext
(
format
)
{}
virtual
void
*
chooseMacVisual
(
GDHandle
handle
)
{
return
select_3_2_mac_visual
(
handle
);
}
};
}
include/Utils/Qt/qtgl.h
View file @
77c64075
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
#ifndef __QT_GL2__
#ifndef __QT_GL2__
#define __QT_GL2__
#define __QT_GL2__
#include
<GL/glew.h>
#include
"Utils/gl_def.h"
#include <QGLWidget>
#include <QGLWidget>
#include <QMouseEvent>
#include <QMouseEvent>
#include <QKeyEvent>
#include <QKeyEvent>
...
...
include/Utils/drawer.h
View file @
77c64075
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
#define _CGOGN_DRAWER_H_
#define _CGOGN_DRAWER_H_
#include <vector>
#include <vector>
#include
<GL/glew.h>
#include
"Utils/gl_def.h"
#include "Geometry/vector_gen.h"
#include "Geometry/vector_gen.h"
namespace
CGoGN
{
namespace
Utils
{
class
VBO
;
}
}
namespace
CGoGN
{
namespace
Utils
{
class
VBO
;
}
}
...
...
include/Utils/fbo.h
View file @
77c64075
...
@@ -25,7 +25,6 @@
...
@@ -25,7 +25,6 @@
#ifndef __CGoGN_GLSL_FBO__
#ifndef __CGoGN_GLSL_FBO__
#define __CGoGN_GLSL_FBO__
#define __CGoGN_GLSL_FBO__
#include <GL/glew.h>
#include "Utils/gl_def.h"
#include "Utils/gl_def.h"
#include <iostream>
#include <iostream>
...
...
include/Utils/textures.h
View file @
77c64075
...
@@ -27,7 +27,6 @@
...
@@ -27,7 +27,6 @@
#include "Utils/gl_def.h"
#include "Utils/gl_def.h"
#include "Geometry/vector_gen.h"
#include "Geometry/vector_gen.h"
#include <GL/glew.h>
#include <string>
#include <string>
#include <QImage>
#include <QImage>
...
...
include/Utils/vbo.h
View file @
77c64075
...
@@ -27,7 +27,6 @@
...
@@ -27,7 +27,6 @@
#include <vector>
#include <vector>
#include <GL/glew.h>
#include "Utils/gl_def.h"
#include "Utils/gl_def.h"
#include "Topology/generic/attributeHandler.h"
#include "Topology/generic/attributeHandler.h"
#include "Container/convert.h"
#include "Container/convert.h"
...
...
include/Utils/vboRender.h
View file @
77c64075
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
#ifndef _VBO_RENDER_
#ifndef _VBO_RENDER_
#define _VBO_RENDER_
#define _VBO_RENDER_
#include
<GL/glew.h>
#include
"Utils/gl_def.h"
namespace
CGoGN
namespace
CGoGN
{
{
...
...
src/Utils/Qt/qtgl.cpp
View file @
77c64075
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
* *
* *
*******************************************************************************/
*******************************************************************************/
#include <GL/glew.h>
#include <iostream>
#include <iostream>
#include "Utils/trackball.h"
#include "Utils/trackball.h"
#include "Utils/Qt/qtgl.h"
#include "Utils/Qt/qtgl.h"
...
@@ -30,6 +29,9 @@
...
@@ -30,6 +29,9 @@
#include "glm/gtc/type_precision.hpp"
#include "glm/gtc/type_precision.hpp"
#include "Utils/GLSLShader.h"
#include "Utils/GLSLShader.h"
#ifdef MAC_OSX
#include "Utils/Qt/macgl3.h"
#endif
namespace
CGoGN
namespace
CGoGN
{
{
...
@@ -42,7 +44,12 @@ namespace QT
...
@@ -42,7 +44,12 @@ namespace QT
float
GLWidget
::
FAR_PLANE
=
500.0
f
;
float
GLWidget
::
FAR_PLANE
=
500.0
f
;
GLWidget
::
GLWidget
(
SimpleQT
*
cbs
,
QWidget
*
parent
)
:
GLWidget
::
GLWidget
(
SimpleQT
*
cbs
,
QWidget
*
parent
)
:
#ifdef MAC_OSX
// QGLWidget(new Core3_2_context(QGLFormat::defaultFormat()),parent),
QGLWidget
(
QGLFormat
(
QGL
::
Rgba
|
QGL
::
DoubleBuffer
|
QGL
::
DepthBuffer
),
parent
),
QGLWidget
(
QGLFormat
(
QGL
::
Rgba
|
QGL
::
DoubleBuffer
|
QGL
::
DepthBuffer
),
parent
),
#else
QGLWidget
(
QGLFormat
(
QGL
::
Rgba
|
QGL
::
DoubleBuffer
|
QGL
::
DepthBuffer
),
parent
),
#endif
m_cbs
(
cbs
),
m_cbs
(
cbs
),
m_state_modifier
(
0
),
m_state_modifier
(
0
),
allow_rotation
(
true
)
allow_rotation
(
true
)
...
@@ -186,6 +193,7 @@ glm::vec3& GLWidget::getObjPos()
...
@@ -186,6 +193,7 @@ glm::vec3& GLWidget::getObjPos()
void
GLWidget
::
initializeGL
()
void
GLWidget
::
initializeGL
()
{
{
std
::
cout
<<
"GL VERSION = "
<<
glGetString
(
GL_VERSION
)
<<
std
::
endl
;
glEnable
(
GL_DEPTH_TEST
);
glEnable
(
GL_DEPTH_TEST
);
if
(
m_cbs
)
if
(
m_cbs
)
...
...
src/Utils/Shaders/shaderColorPerVertex.cpp
View file @
77c64075
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
* *
* *
*******************************************************************************/
*******************************************************************************/
#include <GL/glew.h>
#include "Utils/Shaders/shaderColorPerVertex.h"
#include "Utils/Shaders/shaderColorPerVertex.h"
...
...
src/Utils/Shaders/shaderEnvMap.cpp
View file @
77c64075
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
* *
* *
*******************************************************************************/
*******************************************************************************/
#include <GL/glew.h>
#include "Utils/Shaders/shaderEnvMap.h"
#include "Utils/Shaders/shaderEnvMap.h"
#include <string.h>
#include <string.h>
...
...
src/Utils/Shaders/shaderExplodeVolumes.cpp
View file @
77c64075
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
*******************************************************************************/
*******************************************************************************/
#include <string.h>
#include <string.h>
#include <GL/glew.h>
#include "Utils/Shaders/shaderExplodeVolumes.h"
#include "Utils/Shaders/shaderExplodeVolumes.h"
namespace
CGoGN
namespace
CGoGN
...
...
src/Utils/Shaders/shaderExplodeVolumesLines.cpp
View file @
77c64075
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
*******************************************************************************/
*******************************************************************************/
#include <string.h>
#include <string.h>
#include <GL/glew.h>
#include "Utils/Shaders/shaderExplodeVolumesLines.h"
#include "Utils/Shaders/shaderExplodeVolumesLines.h"
namespace
CGoGN
namespace
CGoGN
...
...
src/Utils/Shaders/shaderFlat.cpp
View file @
77c64075
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
*******************************************************************************/
*******************************************************************************/
#include <string.h>
#include <string.h>
#include <GL/glew.h>
#include "Utils/Shaders/shaderFlat.h"
#include "Utils/Shaders/shaderFlat.h"
namespace
CGoGN
namespace
CGoGN
...
...
src/Utils/Shaders/shaderFlatColor.cpp
View file @
77c64075
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
*******************************************************************************/
*******************************************************************************/
#include <string>
#include <string>
#include <GL/glew.h>
#include "Utils/Shaders/shaderFlatColor.h"
#include "Utils/Shaders/shaderFlatColor.h"
namespace
CGoGN
namespace
CGoGN
...
...
src/Utils/Shaders/shaderIsoLines.cpp
View file @
77c64075
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
*******************************************************************************/
*******************************************************************************/
#include <string>
#include <string>
#include <GL/glew.h>
#include "Utils/Shaders/shaderIsoLines.h"
#include "Utils/Shaders/shaderIsoLines.h"
namespace
CGoGN
namespace
CGoGN
...
...
src/Utils/Shaders/shaderScalarField.cpp
View file @
77c64075
...
@@ -22,10 +22,8 @@
...
@@ -22,10 +22,8 @@
* *
* *
*******************************************************************************/
*******************************************************************************/
#include <GL/glew.h>
#include "Utils/Shaders/shaderScalarField.h"
#include "Utils/Shaders/shaderScalarField.h"
namespace
CGoGN
namespace
CGoGN
{
{
...
...
src/Utils/Shaders/shaderSimpleColor.cpp
View file @
77c64075
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
* *
* *
*******************************************************************************/
*******************************************************************************/
#include <GL/glew.h>
#include "Utils/Shaders/shaderSimpleColor.h"
#include "Utils/Shaders/shaderSimpleColor.h"
namespace
CGoGN
namespace
CGoGN
...
...
src/Utils/Shaders/shaderSimpleTexture.cpp
View file @
77c64075
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
#ifdef WITH_QT
#ifdef WITH_QT
#include <GL/glew.h>
#include "Utils/Shaders/shaderSimpleTexture.h"
#include "Utils/Shaders/shaderSimpleTexture.h"
...
...
src/Utils/Shaders/shaderTextureMask.cpp
View file @
77c64075
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
*******************************************************************************/
*******************************************************************************/
#ifdef WITH_QT
#ifdef WITH_QT
#include <GL/glew.h>
#include "Utils/Shaders/shaderTextureMask.h"
#include "Utils/Shaders/shaderTextureMask.h"
...
...
src/Utils/Shaders/shaderVectorPerVertex.cpp
View file @
77c64075
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
* *
* *
*******************************************************************************/
*******************************************************************************/
#include <GL/glew.h>
#include "Utils/Shaders/shaderVectorPerVertex.h"
#include "Utils/Shaders/shaderVectorPerVertex.h"
namespace
CGoGN
namespace
CGoGN
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment