Renamed GLFW_NO_GLU to GLFW_INCLUDE_GLU.

This commit is contained in:
Camilla Berglund 2012-06-05 23:55:10 +02:00
parent bf42c3cfbc
commit 2213450840
9 changed files with 14 additions and 7 deletions

View File

@ -30,6 +30,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define GLFW_INCLUDE_GLU
#include <GL/glfw3.h>

View File

@ -10,7 +10,9 @@
// because I am not a friend of orthogonal projections)
//========================================================================
#define GLFW_INCLUDE_GLU
#include <GL/glfw3.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -7,6 +7,7 @@
#include <stdio.h>
#include <stdlib.h>
#define GLFW_INCLUDE_GLU
#include <GL/glfw3.h>
int main(void)

View File

@ -11,6 +11,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define GLFW_INCLUDE_GLU
#include <GL/glfw3.h>
#ifndef M_PI

View File

@ -146,11 +146,7 @@ extern "C" {
/* -------------------- END SYSTEM/COMPILER SPECIFIC --------------------- */
/* Include standard OpenGL headers: GLFW uses GL_FALSE/GL_TRUE, and it is
* convenient for the user to only have to include <GL/glfw.h>. This also
* solves the problem with Windows <GL/gl.h> and <GL/glu.h> needing some
* special defines which normally requires the user to include <windows.h>
* (which is not a nice solution for portable programs).
/* Include the chosen OpenGL header and, optionally, the GLU header.
*/
#if defined(__APPLE_CC__)
#if defined(GLFW_INCLUDE_GL3)
@ -159,7 +155,7 @@ extern "C" {
#define GL_GLEXT_LEGACY
#include <OpenGL/gl.h>
#endif
#ifndef GLFW_NO_GLU
#if defined(GLFW_INCLUDE_GLU)
#include <OpenGL/glu.h>
#endif
#else
@ -168,7 +164,7 @@ extern "C" {
#else
#include <GL/gl.h>
#endif
#ifndef GLFW_NO_GLU
#if defined(GLFW_INCLUDE_GLU)
#include <GL/glu.h>
#endif
#endif

View File

@ -298,6 +298,7 @@ version of GLFW.</p>
<li>Renamed <code>GLFW_WINDOW_NO_RESIZE</code> to <code>GLFW_WINDOW_RESIZABLE</code></li>
<li>Renamed <code>GLFW_BUILD_DLL</code> to <code>_GLFW_BUILD_DLL</code></li>
<li>Renamed <code>version</code> test to <code>glfwinfo</code></li>
<li>Renamed <code>GLFW_NO_GLU</code> to <code>GLFW_INCLUDE_GLU</code> and made it disabled by default</li>
<li>Replaced ad hoc build system with CMake</li>
<li>Replaced layout-dependent key codes with single, platform-independent set based on US layout</li>
<li>Replaced mouse wheel interface with two-dimensional, floating point scrolling interface</li>

View File

@ -29,6 +29,7 @@
//
//========================================================================
#define GLFW_INCLUDE_GLU
#include <GL/glfw3.h>
#include <stdio.h>

View File

@ -29,6 +29,7 @@
//
//========================================================================
#define GLFW_INCLUDE_GLU
#include <GL/glfw3.h>
#include <GL/glext.h>

View File

@ -27,6 +27,7 @@
//
//========================================================================
#define GLFW_INCLUDE_GLU
#include <GL/glfw3.h>
#include <stdio.h>