Commit 9ecf09ac authored by Marek Olšák's avatar Marek Olšák

Import GLEW

Discussed on IRC.

Finally we have headers for OpenGL 4.1 and all the extensions released
to this day.
parent ddbe7e2e
......@@ -17,14 +17,6 @@ IF (C_COMPILER_FLAG_WALL)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
ENDIF (C_COMPILER_FLAG_WALL)
FIND_LIBRARY( GLEW_glew_LIBRARY GLEW
/usr/lib
)
FIND_PATH( GLEW_INCLUDE_DIR GL/glew.h
/usr/include/GL
)
FIND_LIBRARY(OPENGL_egl_LIBRARY
NAMES EGL
PATHS /usr/lib
......
......@@ -3,7 +3,6 @@ include_directories(
${OPENGL_INCLUDE_PATH}
${GLUT_INCLUDE_DIR}
${piglit_SOURCE_DIR}/tests/util
${GLEW_INCLUDE_DIR}
)
link_directories (
......@@ -14,7 +13,6 @@ link_libraries (
piglitutil
${OPENGL_gl_LIBRARY}
${GLUT_glut_LIBRARY}
${GLEW_glew_LIBRARY}
)
add_executable (asmparsertest asmparsertest.c)
......@@ -4,7 +4,6 @@ include_directories(
${GLUT_INCLUDE_DIR}
${piglit_SOURCE_DIR}/tests/mesa/util
${piglit_SOURCE_DIR}/tests/util
${GLEW_INCLUDE_DIR}
)
link_directories (
......@@ -17,7 +16,6 @@ link_libraries (
${OPENGL_glu_LIBRARY}
${GLUT_glut_LIBRARY}
${TIFF_LIBRARY}
${GLEW_glew_LIBRARY}
)
add_executable (crash-cubemap-order crash-cubemap-order.c)
......
......@@ -3,7 +3,6 @@ include_directories(
${OPENGL_INCLUDE_PATH}
${GLUT_INCLUDE_DIR}
${piglit_SOURCE_DIR}/tests/util
${GLEW_INCLUDE_DIR}
)
link_directories (
......@@ -17,7 +16,6 @@ link_libraries (
${OPENGL_egl_LIBRARY}
${GLUT_glut_LIBRARY}
${TIFF_LIBRARY}
${GLEW_glew_LIBRARY}
)
IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
......
......@@ -4,7 +4,6 @@ include_directories(
${GLUT_INCLUDE_DIR}
${piglit_SOURCE_DIR}/tests/mesa/util
${piglit_SOURCE_DIR}/tests/util
${GLEW_INCLUDE_DIR}
)
link_directories (
......@@ -18,7 +17,6 @@ link_libraries (
${OPENGL_glu_LIBRARY}
${GLUT_glut_LIBRARY}
${TIFF_LIBRARY}
${GLEW_glew_LIBRARY}
)
add_executable (fbo-1d fbo-1d.c)
......
......@@ -3,7 +3,6 @@ include_directories(
${OPENGL_INCLUDE_PATH}
${GLUT_INCLUDE_DIR}
${piglit_SOURCE_DIR}/tests/util
${GLEW_INCLUDE_DIR}
)
link_directories (
......@@ -16,7 +15,6 @@ link_libraries (
${OPENGL_glu_LIBRARY}
${GLUT_glut_LIBRARY}
${TIFF_LIBRARY}
${GLEW_glew_LIBRARY}
)
add_executable (bgra-vert-attrib-pointer bgra-vert-attrib-pointer.c)
......
......@@ -3,7 +3,6 @@ include_directories(
${OPENGL_INCLUDE_PATH}
${GLUT_INCLUDE_DIR}
${piglit_SOURCE_DIR}/tests/util
${GLEW_INCLUDE_DIR}
)
link_directories (
......@@ -16,7 +15,6 @@ link_libraries (
${OPENGL_glu_LIBRARY}
${GLUT_glut_LIBRARY}
${TIFF_LIBRARY}
${GLEW_glew_LIBRARY}
)
add_executable (glslparsertest glslparsertest.c)
......@@ -3,7 +3,6 @@ include_directories(
${OPENGL_INCLUDE_PATH}
${GLUT_INCLUDE_DIR}
${piglit_SOURCE_DIR}/tests/util
${GLEW_INCLUDE_DIR}
)
link_directories (
......@@ -16,7 +15,6 @@ link_libraries (
${OPENGL_glu_LIBRARY}
${GLUT_glut_LIBRARY}
${TIFF_LIBRARY}
${GLEW_glew_LIBRARY}
${X11_X11_LIB}
)
......
......@@ -4,7 +4,6 @@ include_directories(
${GLUT_INCLUDE_DIR}
${piglit_SOURCE_DIR}/tests/mesa/util
${piglit_SOURCE_DIR}/tests/util
${GLEW_INCLUDE_DIR}
)
link_directories (
......@@ -18,7 +17,6 @@ link_libraries (
${OPENGL_glu_LIBRARY}
${GLUT_glut_LIBRARY}
${TIFF_LIBRARY}
${GLEW_glew_LIBRARY}
)
add_executable (activeprogram-bad-program activeprogram-bad-program.c)
......
......@@ -38,7 +38,7 @@
#include <errno.h>
#include <sys/stat.h>
#define GL_GLEXT_PROTOTYPES
#include <GL/glew.h>
#include "glew.h"
#if defined(__APPLE__)
#include <GLUT/glut.h>
#else
......
......@@ -3,7 +3,6 @@ include_directories(
${GLUT_INCLUDE_DIR}
${piglit_SOURCE_DIR}/tests/spec/arb_color_buffer_float
${piglit_SOURCE_DIR}/tests/util
${GLEW_INCLUDE_DIR}
)
link_directories (
......@@ -17,7 +16,6 @@ link_libraries (
${OPENGL_glu_LIBRARY}
${GLUT_glut_LIBRARY}
${TIFF_LIBRARY}
${GLEW_glew_LIBRARY}
)
add_executable (arb_color_buffer_float-getteximage getteximage.c)
......
......@@ -4,7 +4,6 @@ include_directories(
${GLUT_INCLUDE_DIR}
${piglit_SOURCE_DIR}/tests/mesa/util
${piglit_SOURCE_DIR}/tests/util
${GLEW_INCLUDE_DIR}
)
link_directories (
......@@ -18,7 +17,6 @@ link_libraries (
${OPENGL_glu_LIBRARY}
${GLUT_glut_LIBRARY}
${TIFF_LIBRARY}
${GLEW_glew_LIBRARY}
)
add_executable (arb_es2_compatibility-depthrangef arb_es2_compatibility-depthrangef.c)
......
......@@ -3,7 +3,6 @@ include_directories(
${GLUT_INCLUDE_DIR}
${piglit_SOURCE_DIR}/tests/spec/arb_color_buffer_float
${piglit_SOURCE_DIR}/tests/util
${GLEW_INCLUDE_DIR}
)
link_directories (
......@@ -17,7 +16,6 @@ link_libraries (
${OPENGL_glu_LIBRARY}
${GLUT_glut_LIBRARY}
${TIFF_LIBRARY}
${GLEW_glew_LIBRARY}
)
add_executable (ati_envmap_bumpmap-bump bump.c)
......@@ -3,7 +3,6 @@ include_directories(
${GLUT_INCLUDE_DIR}
${piglit_SOURCE_DIR}/tests/spec/arb_color_buffer_float
${piglit_SOURCE_DIR}/tests/util
${GLEW_INCLUDE_DIR}
)
link_directories (
......@@ -17,7 +16,6 @@ link_libraries (
${OPENGL_glu_LIBRARY}
${GLUT_glut_LIBRARY}
${TIFF_LIBRARY}
${GLEW_glew_LIBRARY}
)
add_executable (ext_fog_coord-modes modes.c)
......
......@@ -3,7 +3,6 @@ include_directories(
${OPENGL_INCLUDE_PATH}
${GLUT_INCLUDE_DIR}
${piglit_SOURCE_DIR}/tests/util
${GLEW_INCLUDE_DIR}
)
link_directories (
......@@ -16,7 +15,6 @@ link_libraries (
${OPENGL_glu_LIBRARY}
${GLUT_glut_LIBRARY}
${TIFF_LIBRARY}
${GLEW_glew_LIBRARY}
)
add_executable (array-texture array-texture.c)
......
......@@ -4,7 +4,6 @@ include_directories(
${OPENGL_INCLUDE_PATH}
${GLUT_INCLUDE_DIR}
${piglit_SOURCE_DIR}/tests/util
${GLEW_INCLUDE_DIR}
)
set (UTIL_SOURCES
......@@ -13,6 +12,7 @@ set (UTIL_SOURCES
piglit-util.c
shader-load.c
piglit-framework.c
glew.c
)
IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
......@@ -22,6 +22,7 @@ IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
piglit-util.c
piglit-glx-framework.c
piglit-glx-util.c
glew.c
)
set (UTIL_SOURCES
${UTIL_SOURCES}
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -45,7 +45,7 @@ typedef unsigned __int64 uint64_t;
#include <stdlib.h>
#include <math.h>
#include <GL/glew.h>
#include "glew.h"
#if defined(__APPLE__)
#include <GLUT/glut.h>
#else
......
This diff is collapsed.
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