Moved public headers to the GLFW directory.

master
Camilla Berglund ago%!(EXTRA string=12 years)
parent ce1e84def6
commit 15ed715f4e
  1. 2
      CMakeLists.txt
  2. 3
      README.md
  3. 2
      docs/Doxyfile.in
  4. 10
      docs/moving.dox
  5. 4
      docs/quick.dox
  6. 2
      examples/boing.c
  7. 2
      examples/gears.c
  8. 2
      examples/heightmap.c
  9. 2
      examples/simple.c
  10. 2
      examples/splitview.c
  11. 2
      examples/wave.c
  12. 0
      include/GLFW/glfw3.h
  13. 0
      include/GLFW/glfw3native.h
  14. 2
      src/CMakeLists.txt
  15. 2
      src/internal.h
  16. 2
      tests/accuracy.c
  17. 2
      tests/clipboard.c
  18. 2
      tests/defaults.c
  19. 2
      tests/events.c
  20. 2
      tests/fsaa.c
  21. 2
      tests/gamma.c
  22. 2
      tests/glfwinfo.c
  23. 2
      tests/iconify.c
  24. 2
      tests/joysticks.c
  25. 2
      tests/modes.c
  26. 2
      tests/peter.c
  27. 2
      tests/reopen.c
  28. 2
      tests/sharing.c
  29. 2
      tests/tearing.c
  30. 2
      tests/threads.c
  31. 2
      tests/title.c
  32. 2
      tests/windows.c

@ -394,7 +394,7 @@ configure_file(${GLFW_SOURCE_DIR}/src/config.h.in
# Install the public headers
# 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)
#--------------------------------------------------------------------

@ -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
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.
It also includes the chosen client API header files (by default OpenGL), and
@ -327,6 +327,7 @@ GLFW.
modes for the specified monitor
* Changed cursor position to double-precision floating-point
* 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 `glfwOpenWindowHint` to `glfwWindowHint`
* Renamed `GLFW_ACTIVE` to `GLFW_FOCUSED`

@ -668,7 +668,7 @@ WARN_LOGFILE = @GLFW_BINARY_DIR@/docs/warnings.txt
# directories like "/usr/src/myproject". Separate the files or directories
# 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
# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is

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

@ -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.
@code
#include <GL/glfw3.h>
#include <GLFW/glfw3.h>
@endcode
This defines all the constants, types and function prototypes of the GLFW API.
@ -50,7 +50,7 @@ inclusion of the GLFW header.
@code
#define GLFW_INCLUDE_GLU
#include <GL/glfw3.h>
#include <GLFW/glfw3.h>
@endcode

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

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

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

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

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

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

@ -7,7 +7,7 @@ if (MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
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
monitor.c time.c window.c)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save