Moved public headers to the GLFW directory.

This commit is contained in:
Camilla Berglund 2013-05-22 22:46:34 +02:00
parent ce1e84def6
commit 15ed715f4e
32 changed files with 36 additions and 35 deletions

View File

@ -394,7 +394,7 @@ configure_file(${GLFW_SOURCE_DIR}/src/config.h.in
# Install the public headers # Install the public headers
# The src directory's CMakeLists.txt file installs the library # The src directory's CMakeLists.txt file installs the library
#-------------------------------------------------------------------- #--------------------------------------------------------------------
install(DIRECTORY include/GL DESTINATION include install(DIRECTORY include/GLFW DESTINATION include
FILES_MATCHING PATTERN glfw3.h PATTERN glfw3native.h) FILES_MATCHING PATTERN glfw3.h PATTERN glfw3native.h)
#-------------------------------------------------------------------- #--------------------------------------------------------------------

View File

@ -107,7 +107,7 @@ The first point is covered in the WIP
In the files of your program where you use OpenGL or GLFW, you should include In the files of your program where you use OpenGL or GLFW, you should include
the GLFW 3 header file, i.e.: the GLFW 3 header file, i.e.:
#include <GL/glfw3.h> #include <GLFW/glfw3.h>
This defines all the constants, types and function prototypes of the GLFW API. This defines all the constants, types and function prototypes of the GLFW API.
It also includes the chosen client API header files (by default OpenGL), and It also includes the chosen client API header files (by default OpenGL), and
@ -327,6 +327,7 @@ GLFW.
modes for the specified monitor modes for the specified monitor
* Changed cursor position to double-precision floating-point * Changed cursor position to double-precision floating-point
* Changed default cursor mode for fullscreen to normal * Changed default cursor mode for fullscreen to normal
* Renamed header directory `GL` to `GLFW`
* Renamed `glfw.h` to `glfw3.h` to avoid conflicts with 2.x series * Renamed `glfw.h` to `glfw3.h` to avoid conflicts with 2.x series
* Renamed `glfwOpenWindowHint` to `glfwWindowHint` * Renamed `glfwOpenWindowHint` to `glfwWindowHint`
* Renamed `GLFW_ACTIVE` to `GLFW_FOCUSED` * Renamed `GLFW_ACTIVE` to `GLFW_FOCUSED`

View File

@ -668,7 +668,7 @@ WARN_LOGFILE = @GLFW_BINARY_DIR@/docs/warnings.txt
# directories like "/usr/src/myproject". Separate the files or directories # directories like "/usr/src/myproject". Separate the files or directories
# with spaces. # with spaces.
INPUT = @GLFW_DOC_HEADERS@ @GLFW_SOURCE_DIR@/include/GL/ @GLFW_SOURCE_DIR@/docs/ INPUT = @GLFW_DOC_HEADERS@ @GLFW_SOURCE_DIR@/include/GLFW/ @GLFW_SOURCE_DIR@/docs/
# This tag can be used to specify the character encoding of the source files # This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is

View File

@ -236,11 +236,11 @@ terminated and re-initialized.
@subsection moving_renamed_files Library and header file @subsection moving_renamed_files Library and header file
The GLFW 3 header is named @ref glfw3.h, to avoid collisions with the GLFW 2 The GLFW 3 header is named @ref glfw3.h and moved to the `GLFW` directory, to
`glfw.h` header, in case they are both installed. Similarly, the GLFW 3 library avoid collisions with the headers of other major versions. Similarly, the GLFW
is named `glfw3,` except when it's installed as a shared library on Unix-like 3 library is named `glfw3,` except when it's installed as a shared library on
systems, where it uses the [soname](https://en.wikipedia.org/wiki/soname) Unix-like systems, where it uses the
`libglfw.so.3`. [soname](https://en.wikipedia.org/wiki/soname) `libglfw.so.3`.
@subsection moving_renamed_functions Functions @subsection moving_renamed_functions Functions

View File

@ -20,7 +20,7 @@ In the files of your program where you use OpenGL or GLFW, you need to include
the GLFW 3 header file. the GLFW 3 header file.
@code @code
#include <GL/glfw3.h> #include <GLFW/glfw3.h>
@endcode @endcode
This defines all the constants, types and function prototypes of the GLFW API. This defines all the constants, types and function prototypes of the GLFW API.
@ -50,7 +50,7 @@ inclusion of the GLFW header.
@code @code
#define GLFW_INCLUDE_GLU #define GLFW_INCLUDE_GLU
#include <GL/glfw3.h> #include <GLFW/glfw3.h>
@endcode @endcode

View File

@ -32,7 +32,7 @@
#include <math.h> #include <math.h>
#define GLFW_INCLUDE_GLU #define GLFW_INCLUDE_GLU
#include <GL/glfw3.h> #include <GLFW/glfw3.h>
/***************************************************************************** /*****************************************************************************

View File

@ -26,7 +26,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <GL/glfw3.h> #include <GLFW/glfw3.h>
#ifndef M_PI #ifndef M_PI
#define M_PI 3.141592654 #define M_PI 3.141592654

View File

@ -30,7 +30,7 @@
#include <stddef.h> #include <stddef.h>
#include "getopt.h" #include "getopt.h"
#include <GL/glfw3.h> #include <GLFW/glfw3.h>
#include <GL/glext.h> #include <GL/glext.h>
/* OpenGL function pointers */ /* OpenGL function pointers */

View File

@ -24,7 +24,7 @@
//======================================================================== //========================================================================
//! [code] //! [code]
#include <GL/glfw3.h> #include <GLFW/glfw3.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>

View File

@ -11,7 +11,7 @@
//======================================================================== //========================================================================
#define GLFW_INCLUDE_GLU #define GLFW_INCLUDE_GLU
#include <GL/glfw3.h> #include <GLFW/glfw3.h>
#include <math.h> #include <math.h>
#include <stdio.h> #include <stdio.h>

View File

@ -13,7 +13,7 @@
#include <math.h> #include <math.h>
#define GLFW_INCLUDE_GLU #define GLFW_INCLUDE_GLU
#include <GL/glfw3.h> #include <GLFW/glfw3.h>
#ifndef M_PI #ifndef M_PI
#define M_PI 3.1415926535897932384626433832795 #define M_PI 3.1415926535897932384626433832795

View File

@ -7,7 +7,7 @@ if (MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS) add_definitions(-D_CRT_SECURE_NO_WARNINGS)
endif() endif()
set(common_HEADERS ${GLFW_SOURCE_DIR}/include/GL/glfw3.h internal.h) set(common_HEADERS ${GLFW_SOURCE_DIR}/include/GLFW/glfw3.h internal.h)
set(common_SOURCES clipboard.c context.c gamma.c init.c input.c joystick.c set(common_SOURCES clipboard.c context.c gamma.c init.c input.c joystick.c
monitor.c time.c window.c) monitor.c time.c window.c)

View File

@ -48,7 +48,7 @@
// inclusion of our own, newer glext.h below // inclusion of our own, newer glext.h below
#define GL_GLEXT_LEGACY #define GL_GLEXT_LEGACY
#include "../include/GL/glfw3.h" #include "../include/GLFW/glfw3.h"
#if defined(_GLFW_USE_OPENGL) #if defined(_GLFW_USE_OPENGL)
// This path may need to be changed if you build GLFW using your own setup // This path may need to be changed if you build GLFW using your own setup

View File

@ -30,7 +30,7 @@
//======================================================================== //========================================================================
#define GLFW_INCLUDE_GLU #define GLFW_INCLUDE_GLU
#include <GL/glfw3.h> #include <GLFW/glfw3.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -27,7 +27,7 @@
// //
//======================================================================== //========================================================================
#include <GL/glfw3.h> #include <GLFW/glfw3.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -29,7 +29,7 @@
// //
//======================================================================== //========================================================================
#include <GL/glfw3.h> #include <GLFW/glfw3.h>
#include <GL/glext.h> #include <GL/glext.h>
#include <stdio.h> #include <stdio.h>

View File

@ -31,7 +31,7 @@
// //
//======================================================================== //========================================================================
#include <GL/glfw3.h> #include <GLFW/glfw3.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -30,7 +30,7 @@
//======================================================================== //========================================================================
#define GLFW_INCLUDE_GLU #define GLFW_INCLUDE_GLU
#include <GL/glfw3.h> #include <GLFW/glfw3.h>
#include <GL/glext.h> #include <GL/glext.h>
#include <stdio.h> #include <stdio.h>

View File

@ -28,7 +28,7 @@
// //
//======================================================================== //========================================================================
#include <GL/glfw3.h> #include <GLFW/glfw3.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -29,7 +29,7 @@
// //
//======================================================================== //========================================================================
#include <GL/glfw3.h> #include <GLFW/glfw3.h>
#include <GL/glext.h> #include <GL/glext.h>
#include <stdio.h> #include <stdio.h>

View File

@ -28,7 +28,7 @@
// //
//======================================================================== //========================================================================
#include <GL/glfw3.h> #include <GLFW/glfw3.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -28,7 +28,7 @@
// //
//======================================================================== //========================================================================
#include <GL/glfw3.h> #include <GLFW/glfw3.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>

View File

@ -27,7 +27,7 @@
// //
//======================================================================== //========================================================================
#include <GL/glfw3.h> #include <GLFW/glfw3.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>

View File

@ -30,7 +30,7 @@
// //
//======================================================================== //========================================================================
#include <GL/glfw3.h> #include <GLFW/glfw3.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -33,7 +33,7 @@
// //
//======================================================================== //========================================================================
#include <GL/glfw3.h> #include <GLFW/glfw3.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -28,7 +28,7 @@
//======================================================================== //========================================================================
#define GLFW_INCLUDE_GLU #define GLFW_INCLUDE_GLU
#include <GL/glfw3.h> #include <GLFW/glfw3.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -28,7 +28,7 @@
// //
//======================================================================== //========================================================================
#include <GL/glfw3.h> #include <GLFW/glfw3.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -30,7 +30,7 @@
#include "tinycthread.h" #include "tinycthread.h"
#include <GL/glfw3.h> #include <GLFW/glfw3.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -27,7 +27,7 @@
// //
//======================================================================== //========================================================================
#include <GL/glfw3.h> #include <GLFW/glfw3.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -27,7 +27,7 @@
// //
//======================================================================== //========================================================================
#include <GL/glfw3.h> #include <GLFW/glfw3.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>