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:
- CodeBlocks configuring OpenGL environment
- Configuring OpenGL environment on Mac OS
- Configuring OpenGL environment with code blocks16.0 in Windows 10
- Configuring OpenGL development environment in win10 + vs2015 (including the method of installing 32-bit and 64 bit libraries)
- A series of problems in configuring OpenGL development environment in vs2015
- Vs2015 configuring OpenGL development environment: configuration of glfw library and glad Library
- Problems encountered in configuring OpenGL development environment in vs2015
- Solve the problem of VC6.0 open crash and OpenGL glut32.lib library
- Configuration of OpenGL development environment under Windows environment, win10 + vs2019 + glfw + glad
- Configuring OpenGL in VS
- The solution of configuring OpenGL in vs2017
- Configuring OpenGL in Chinese version of VS2010 and problem solving
- CodeBlocks configuring OpenGL
- Configuring OpenGL in Visual Studio 2015
- Configuring OpenGL in Code:: blocks
- The simplest course of configuring OpenGL in vs2015
- Configuring OpenGL with win 10 + CodeBlocks
- DEVC + + configuring OpenGL
- Action RPG demo source code (VC + OpenGL)
- Problems in configuring OpenGL