Glut32.Lib Glut32.dll and Glut.h Glut.h Glut.h Glut.h Glut.h Glut.h Glut.h Glut.h Glut.h Glut.h Glut.h Glut.h Glut.h Glut.h Glut.h
2, the glut. H in the C:/Program Files/Microsoft SDKs/Windows/AA/Include/gl v7.0 directory; GLUT32. lib: C:/Program Files /Microsoft SDKS /Windows/ V7.0a/lib Glut32.dll is placed in the C:/WINDOWS/system32 directory
3. Create a new empty project in VS2010 and select Win32 Console Project
4. Add a.cpp file to the project with the following contents:
# include “stdafx. H”
#include< gl/glut.h>
Void myDisplay (void)
{
GlClear (GL_COLOR_BUFFER_BIT);
GlRectf (0.5-0.5 f to 0.5 f, f, 0.5 f);
GlFlush ();
}
Int _tmain(int argc, _TCHAR* argv[])
{
GlutInitDisplayMode (GLUT_RGB | GLUT_SINGLE);
GlutInitWindowPosition (100, 100);
GlutInitWindowSize (400, 400);
GlutCreateWindow (” the first OpenGL program “);
GlutDisplayFunc (& amp; myDisplay);
GlutMainLoop ();
Return 0;
}
5. Set the IDE environment: project->; new Property-> Configuration propertites-> linker-> Input-> Additional dependencies
OpenGL32. lib GLUT32. lib, apply, confirm.
6. F5, Start Debugging, you should see a window with a white square in the middle.
2, the glut. H in the C:/Program Files/Microsoft SDKs/Windows/AA/Include/gl v7.0 directory; GLUT32. lib: C:/Program Files /Microsoft SDKS /Windows/ V7.0a/lib Glut32.dll is placed in the C:/WINDOWS/system32 directory
3. Create a new empty project in VS2010 and select Win32 Console Project
4. Add a.cpp file to the project with the following contents:
# include “stdafx. H”
#include< gl/glut.h>
Void myDisplay (void)
{
GlClear (GL_COLOR_BUFFER_BIT);
GlRectf (0.5-0.5 f to 0.5 f, f, 0.5 f);
GlFlush ();
}
Int _tmain(int argc, _TCHAR* argv[])
{
GlutInitDisplayMode (GLUT_RGB | GLUT_SINGLE);
GlutInitWindowPosition (100, 100);
GlutInitWindowSize (400, 400);
GlutCreateWindow (” the first OpenGL program “);
GlutDisplayFunc (& amp; myDisplay);
GlutMainLoop ();
Return 0;
}
5. Set the IDE environment: project->; new Property-> Configuration propertites-> linker-> Input-> Additional dependencies
OpenGL32. lib GLUT32. lib, apply, confirm.
6. F5, Start Debugging, you should see a window with a white square in the middle.
Read More:
- Vs compiling OpenGL project, the solution of unable to open the source file “GL / glaux. H” appears
- Configuring OpenGL in Chinese version of VS2010 and problem solving
- The solution of configuring OpenGL in vs2017
- Configuring OpenGL in VS
- Lost in computer OPENGL.dll
- The first day of OpenGL [vs2017 + OpenGL environment configuration]
- VS2010 compiler can’t open include file: “GL / glaux. H”: no such file or directory
- 1 vs20152017 + OpenGL to configure and draw a white rectangle
- In VS2010, the compiler cannot open the file “GL / glaux. H”: no such file or directory
- Solution of VS2008 unable to open GL / glaux. H header file
- A series of problems in configuring OpenGL development environment in vs2015
- Configuring OpenGL in Visual Studio 2015
- The first time I write OpenGL program, what should I do when I encounter “can’t open include file:” GL / glaux. H “: no such file or directory”?
- Solve the problem of VC6.0 open crash and OpenGL glut32.lib library
- Solution to the problem of unable to open glaux. H in vs2013
- Using glut in CodeBlocks
- CodeBlocks configuring OpenGL
- Configuring OpenGL in Code:: blocks
- Error in header file when calling OpenGL to open obj file in vs2013: unable to open include file: “GL / glut. H”: no such file or directories
- Configuration of OpenGL development environment under Windows environment, win10 + vs2019 + glfw + glad