it.Glut in Windows: (the size is about 150 K)Http://www.opengl.org/resources/libraries/glut/glutdlls37beta.zipIf you cannot download from the above address, use the following connection:
Http://upload.programfan.com/upfile/200607311626279.zip
To install glut in Windows:
1. Unpack the downloaded package and obtain 5 files.
2. Search for "Gl. H" in "My Computer" and find the folder in which it is located (if it is visualstudio2005, it should be under its installation directory"VC/platformsdk/incl
I have always followed the online tutorials and previously used 32-bit systems, so there is no problem. Recently I changed the 64-bit system and used OpenGL, so I started my work again. However, during the test, I always failed:
But in the directory: "C: \ WINDOWS \ System32", I have already put this DLL, So I thought about whether it would be because of a 64-bit system problem, so I went to "glu32.dll" and "glut. DLL "copied"C: \ WINDOWS \ SYSTEM"N
this gl folder. You can create one by yourself without the GL folder.(2) "D:/program files/Microsoft Visual Studio/vc98/lib folder ". Put the extracted glut. lib and glu32.lib in the folder where the static function library is located, that is, the Lib folder.(3) Place the extracted glut. dll and glu32.dll In the System32 folder under the operating system directory. (Typical location: C:/Windows/system32)
For this tutorial, refer to "OpenGL getting started tutorial".
Use the development environment vc6.0. The following files are required for OpenGL development:
Gl. h Glu. h Glaux. h
Opengl32.lib glu32.lib Glaux. Lib
Opengl32.dll glu32.dll
The above files are installed in vc6.0 and have been installed in the system. The 3 *. H files are stored in c: \ Program Files \ Microsoft Visual Studio \ vc9
.
(2) Put the decompressed Files glut. lib and glu32.lib in the folder where the static library is located, that is, under the d: \ Program Files \ Microsoft Visual Studio \ VC98 \ lib directory.
(3) Place the extracted glut. dll and glu32.dll In the system32 folder under the operating system directory, that is, in the C: \ Windows \ System32 directory.
Then we need to open VC6.0 to create a project, and
Use MFC to implement OpenGL programming for mice who love shopping
1. Introduction to OpenGL
As we all know, OpenGL was originally used to develop high-quality image interfaces on their graphics workstation. But in recent years it has become an excellent open 3D graphic interface. In fact, it is an interface of graphics software and hardware. It includes more than 120 graphic functions. "Gl" is the abbreviation of "graphic library", meaning "graphics library ". The emergence of OpenGL enables
The Graduate Student offered the virtual reality course and chose it with a try. Because the "Interactive Graphic programming" (taught by Li hongsong) offered by the Software Institute ), at that time, I used DX9 + vs2008 to develop a set of Microsoft things. Today, this course requires OpenGL, and I am not used to it. Of course, I have asked Mr. Li Fengxia that DX9 can fully implement OpenGL. However, since we all use OpenGL, try it.
The first step is to configure the development environment. I
:1. Unpack the downloaded package and obtain 5 files.2. Take my installation directory as an example:(1) "E:/program files/Microsoft Visual Studio/vc98/include/GL folder ". Put the extracted glut. h In this gl folder. You can create one by yourself without the GL folder.(2) "E:/program files/Microsoft Visual Studio/vc98/lib folder "). Put the extracted glut. lib and glu32.lib in the folder where the static function library is located, that is, the Lib
A simple OpenGL program
Cheungmine
2009-2
This is a Windows console program. Create an empty project, add the following files, and compile the project. You need to change the path "../?".
Dependent library directory
+ --- Win_opengl32/
|
+ --- INC/
| --- Gl. H, Glu. H, glut. h
|
+ --- Lib/
| --- Glu32.lib, opengl32.lib, glu32.lib, and glut. Def
|
+ --- Bin/
| --- Gl
/200607311626279.zip
To install glut in Windows:6a/bqo hzr0r [01. Unpack the downloaded package and obtain five itpub personal spaces} k2g @ ODI2. Take my installation directory as an example:Ld "C t1om [0 (1)" D:/program files/Microsoft Visual Studio/vc98/include/GL folder ". Put the extracted glut. h In this gl folder. You can create one by yourself without the GL folder.R VG] f R4 ~ $ J6n0 (2) "D:/program files/Microsoft Visual Studio/vc98/lib folder "). Put the extracted glut. lib and
Yesterday I tried to use eclipse + mingw to run OpenGL. After a long time, I finally finished it this morning. The steps are as follows:
1: Download eclipse for C ++ ide on www.eclipse.org.
2: Download mingw. I searched it on SourceForge.
3: Install mingw step by step. After installation, add the environment variable in path. For example, C:/mingw/bin.
4: Next glut library on the Internet. Then, use mingw-utils to compile the glu32.lib file
Glut is not required by OpenGL, but it will bring some convenience to our learning. We recommend that you install it.
Glut in Windows: (the size is about 150 K)
Http://www.opengl.org/resources/libraries/glut/glutdlls37beta.zip
If you cannot download from the above address, use the following connection:
Http://upload.programfan.com/upfile/200607311626279.zip
To install glut in Windows:
1. Unpack the downloaded package and obtain 5 files.
2. Search for "Gl. h, and find the folder where it is locat
For more information, see http://www.cppblog.com/doing5552/archive/2009/01/08/71532.html.
1. Check whether the graphics card of the Local Machine supports OpenGL. The confirmation method is as follows:
Search for the following two files in the system directory (c: \ windows \ system32 by default for WINXP:
Opengl32.dll and glu32.dll, if any, indicate that your video card has implemented the OpenGL interface.
2. Download the source code package of the
judge whether the current system supports a certain OpenGL feature. We don't have to write the tedious code that gets the function address first and then judges it.
Glew: Windows only supports OpenGL 1.1 by default. To use a later version of OpenGL, you need to install it. It can automatically identify all OpenGL advanced extension functions supported by your platform.
1. Install glut
Glu3.7: http://www.opengl.org/resources/libraries/glut/glutdlls37beta.zip
Click the link above
external symbol _ cvloadimageError lnk2001: unresolved external symbol _ cvnamedwindowError lnk2001: unresolved external symbol _ cvcreatememstorage(4) There is a problem in VC OpenGL 3D programming. It turns out that opengl32.lib glu32.lib Glaux. Lib is missing.Add opengl32.lib glu32.lib Glaux. lib to project --> Settings --> link --> Object/library modules.Error lnk2001: unresolved external symbol _ glup
system supports a certain OpenGL feature. We don't have to write the tedious code that gets the function address first and then judges it.
Glew: Windows only supports OpenGL 1.1 by default. To use a later version of OpenGL, you need to install it. It can automatically identify all OpenGL advanced extension functions supported by your platform.
1. Install glut
Glu3.7: http://www.opengl.org/resources/libraries/glut/glutdlls37beta.zip
Click the link above to download the latest glut. The latest
LIBS = -L"D:/Dev-Cpp/MinGW32/lib" -L"D:/Dev-Cpp/MinGW32/mingw32/lib" -static-libstdc++ -static-libgcc -mwindows -lopengl32
Therefore, to create your own OpenGL project, you must add the following parameters to the Link that creates the win32 project.
-lglu32 -lopengl32
★Start configuring and implementing Dev-cpp compiling and running OpenGL program
Now, according to the routine in the OpenGL programming guide, simple implementation: rendering a White Rectangle in a black background1 # inclu
functions (called when window updates or scene changes)
Called when the window needs to be updated or the scene changesName indicates callback function namesvoid Auxmainloop (NAME);
3, under the VC implementation of the program compiled
After you type the following code under the VC editor, Save as a C + + file with a. cpp suffix. Start compiling, in "The build command requires an active project Workspace". "Would to create a default project Workspace"? When prompted,
The use of TCC is exemplified by the use of the third party libraries, including: OpenGL, GMP, SDL, etc.1.TCC using GLUTGo to OpenGL to download http://www.opengl.org/resources/libraries/glut/Glutdlls37beta. zip.If you can't download it, you can download Glutdlls37beta. zip from my web drive.In addition, header files GL.h and GLU.h can be found in the compiler's directory. File Search please use software everything.Place the GL.h, GLU.h, glut.h into the INCLUDE/GL directory under the TCC root di
suite/VC/include/GL folder ". Put the extracted glut. h In this gl file.
Folder. You can create one by yourself without the GL folder.(2) "D:/software/vs2005 team suite/VC/lib folder "). Put the extracted glut. lib and glu32.lib
The folder where the static library is located, that is, the Lib folder.(3) Place the extracted glut. dll and glu32.dll In the System32 folder under the operating system directory.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.