Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
glfw
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pirvi-public
glfw
Commits
bbae72ce
Commit
bbae72ce
authored
9 years ago
by
Camilla Löwy
Browse files
Options
Downloads
Patches
Plain Diff
Improve header section of tutorial
parent
02b1710a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/quick.dox
+6
-7
6 additions, 7 deletions
docs/quick.dox
with
6 additions
and
7 deletions
docs/quick.dox
+
6
−
7
View file @
bbae72ce
...
...
@@ -26,16 +26,15 @@ to include the GLFW 3 header file.
@endcode
This defines all the constants, types and function prototypes of the GLFW API.
It also includes the OpenGL header
, and defines all the consta
nt
s
and
types
necessary for it to work on your platform.
It also includes the OpenGL header
from your development environme
nt and
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`
before including `GL/gl.h`. This would
mak
e your
source file tied to Windows
and pollute your code's namespace with
the whole Win32 API.
before including `GL/gl.h`. This would
pollut
e your
program's namespace with
the whole Win32 API.
Instead, the GLFW header takes care of this for you, not by including
`windows.h`, but rather by itself duplicating only the necessary parts of it.
It does this only where needed, so if `windows.h` _is_ included, the GLFW header
Instead, the GLFW header duplicates only the very few necessary parts of it. It
does this only when needed, so if `windows.h` _is_ included, the GLFW header
does not try to redefine those symbols.
In other words:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment