我有一本教會OpenGL 3.0基礎知識的書,但它要求將頭文件合併到我的C++項目中。現在,我正在使用Netbeans 7.1,我不知道該去哪裏看看或做什麼。這是本書的內容:如何將OpenGL庫鏈接到NetBeans 7.1中的項目
編譯OpenGL應用程序時,幾個庫需要鏈接幷包含頭文件。頭文件通常存儲在稱爲GL的包含目錄中的 。下面的頭文件 可以包括在根據不同的平臺項目,並設有 要求:
gl.h - This is the primary header file that defines most of the OpenGL functions.
glu.h - The header for the OpenGL Utility library.
glext.h - The OpenGL extensions header file. This header file is regularly updated and available on opengl.org. It includes constants and definitions for the most recent OpenGL extensions.
wglext.h - The Windows extensions header file. The same as glext.h but for Windows-only extensions.
glxext.h - The GLX extensions header file contains constants for GLX extensions.
所有OpenGL應用程序必須鏈接到至少opengl32.lib在Windows上, 或libGL.a在Linux上。如果應用程序使用OpenGL 實用程序庫,則還必須鏈接glu32.lib(在Windows上)或libGLU.a(在Linux上) 。
書名是? – DaMainBoss 2012-03-01 12:26:13
開始OpenGL遊戲編程,第二版。 – DutchLearner 2012-03-01 12:27:06