
کتابهای درس چند رسانه ای را از اینجا دانلود نمایید http://s000.tinyupload.com/index.php?file_id=45023413673550037382 http://s000.tinyupload.com/index.php?file_id=47743207142054467687...
ادامه مطلب
#include #include int a[3]={10,10,10},b[3]={10,-10,10},c[3]={-10,-10,10}, d[3]={-10,10,10},e[3]={10,10,-10}, f[3]={10,-10,-10}, g[3]={-10,-10,-10}, h[3]={-10,10,-10};float angle=1.0;void drawcube(void){glClear(GL_COLOR_BUFFER_BIT);glColor3f(1.0, 1.0, 1.0);glMatrixMode(GL_MODELVIEW);glRotatef(angle, 0.0, 1.0, 0.0);glBegin(GL_LINE_LOOP);glVertex3iv(a);glVertex3iv(b);glVertex3iv(c);glVertex3iv(d);glEnd();glBegin(GL_LINE_LOOP);glVertex3iv(a);glVertex3iv(e);glVertex3iv(f);glVertex3iv(b);glEnd();glBegin(GL_LINE_LOOP);glVertex3iv(d);glVertex3iv(h);glVertex3iv(g);glVertex3iv(c);glEnd();glBegin(GL_LINE_LOOP);glVertex3iv(e);glVertex3iv(f);glVertex3iv(g);glVertex3iv(h);glEnd();glFlush();glutSwapBuffers...
ادامه مطلب
کتابخانه GLUT را از اینجا دانلود کنید. 1-glutرا دانلود میکنیم 2-glutدارای 3 فایلglut32.dllglut32.libglut.h 3-glut32.dll را در ادرسC:WINDOWSsystem32 کپی مکنیم 4-glut32.libرا در ادرسC:Program FilesMicrosoft SDKsWindowsv7.0ALib کپی میکنیم 5-glut.hرا درادرسC:Program FilesMicrosoft SDKsWindowsv7.0AIncludeکپی میکنیم حالا درvs.c++ 2010میتوان از توابعOpenGLاستفاده کرد اگر ورژن vs شما از 2010 پایین تر است (2008و2005) مرحله 4و5 را بصورت زیر انجام دهید 4-glut32.libرا در ادرسC:Program FilesMicrosoft Visual StudioVClib کپی مکنیم 5-glut.h را درC:Program FilesMicrosoft Visual StudioVCinclude کپی مکنیم و درvc++...
ادامه مطلب
چنانچه سیستم شما 64 بیتی است مراحل زیر را برای فعال سازی OpenGL انجام دهید. Installing freeglut Get the freeglut 2.8.1 MSVC zip file fromhttp://www.transmissionzero.co.uk/software/freeglut-devel/ Extract the files to your PC. There are three types of files of importance: lib (in the lib folder), header (in the includeGL folder), and dll (in the bin folder). If you are using 32-bit Windows with Visual Studio 2013, the following are the easiest places to put each of these files: lib files: C:Program FilesMicrosoft Visual Studio 12.0VClib Header files: C:Program FilesMicrosoft Visual Studio 12.0VCincludegl dll files: C:WINDOWSSystem32 If you are using 64-bit Windows 7 or Windows 8 with Visu...
ادامه مطلب