1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 02:38:52 -05:00

Improve header section of tutorial

This commit is contained in:
Camilla Berglund 2015-10-18 02:01:02 +02:00
parent 02b1710ab2
commit bbae72cea2

View File

@ -26,16 +26,15 @@ to include the GLFW 3 header file.
@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.
It also includes the OpenGL header, and defines all the constants and types It also includes the OpenGL header from your development environment and
necessary for it to work on your platform. defines all the constants and types necessary for it to work on your platform.
For example, under Windows you are normally required to include `windows.h` For example, under Windows you are normally required to include `windows.h`
before including `GL/gl.h`. This would make your source file tied to Windows before including `GL/gl.h`. This would pollute your program's namespace with
and pollute your code's namespace with the whole Win32 API. the whole Win32 API.
Instead, the GLFW header takes care of this for you, not by including Instead, the GLFW header duplicates only the very few necessary parts of it. It
`windows.h`, but rather by itself duplicating only the necessary parts of it. does this only when needed, so if `windows.h` _is_ included, the GLFW header
It does this only where needed, so if `windows.h` _is_ included, the GLFW header
does not try to redefine those symbols. does not try to redefine those symbols.
In other words: In other words: