How to set up VC++ for glut project in hindi (computer graphics)
In this video we will learn how we can start our glut project using vc++ software that is a part of computer graphics practicals in most of government & private universities.
Please subscribe our channel.
Steps & Important Links :
1. Download Glut library
Glut Download Link: http://www.opengl.org/resources/libra...
There are totally five files, which includes
i. one header file (glut.h),
ii. two link library files (glut.lib, glut32.lib) and
iii. two dynamic link library files (glut.dll, glut32.dll).
glut.h -C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include\gl
glut.dll, glut32.dll - C:\Windows\SysWOW64 (windows7 64 bit) - C:\Windows\System32 (windows7 32 bit)
glut.lib, glut32.lib - X:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib (X is VS2010 install disk)
2. create window console project in vc++
3. After creating a blank project, attach the necessary libraries in “Project-to-GLUTTest Properties”. Go to “Configuration Properties-Linker-Input-Additional Dependencies”, and add “opengl32.lib;glu32.lib;glut32.lib”
4. put sample code
5. execute it.
Sample Code :
#include gl\glut.h //(Please enclose gl\glut.h with angle brackets)
void myDisplay(void)
{
glClear(GL_COLOR_BUFFER_BIT);
glRectf(-0.5f,-0.5f,0.5f,0.5f);
glFlush();
}
int main(int argc, char *argv[])
{
glutInit(&argc,argv);
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
glutInitWindowPosition(100,100);
glutInitWindowSize(400,400);
glutCreateWindow("OpenGL Window");
glutDisplayFunc(&myDisplay);
glutMainLoop();
return 0;
}
How to set up VC++ for glut project in hindi (computer graphics) small business ideas with minimum investment in india | |
| 2 Likes | 2 Dislikes |
| 75 views views | 287 followers |
| Education | Upload TimePublished on 5 Jan 2019 |
Không có nhận xét nào:
Đăng nhận xét