تبلیغات
وبسایت تخصصی فناوری اطلاعات + فروشگاه اینترنتی :) - ایجاد یک صفحه با openGL

ایجاد یک صفحه با openGL

نویسنده : ekhshemasi دوشنبه 1393/03/5 23:42  •    ارسال شده در: برنامه نویسی




#include "stdafx.h"

#include"glut.h"

 

void myinit()

{

                glClearColor(1.0, 1.0, 1.0, 0.0);

                glShadeModel(GL_FLAT);

}

void mydisplay(void)

{

                glClear(GL_COLOR_BUFFER_BIT);

                glutSwapBuffers();

}

int _tmain(int argc, char** argv)

{

                glutInit(&argc, argv);

                glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB);

                glutInitWindowSize(300, 300);

                glutInitWindowPosition(100, 100);

                glutCreateWindow("tuytoosh");

                myinit();

                glutDisplayFunc(mydisplay);

                glutMainLoop();

                return 0;

}

 

 



برچسب ها: openGL ، glut.h ، برنامه نویسی گرافیکی با openGL ، کار با openGL ،
آخرین ویرایش: سه شنبه 1393/03/6 00:34

یکشنبه 1396/05/8 02:56
Sweet blog! I found it while surfing around on Yahoo News.
Do you have any suggestions on how to get listed in Yahoo News?
I've been trying for a while but I never seem to get there!
Thanks
دوشنبه 1396/01/21 21:15
Have you ever considered creating an e-book or guest authoring on other blogs?
I have a blog based upon on the same topics you discuss and would love to
have you share some stories/information. I know
my visitors would enjoy your work. If you are even remotely interested, feel free to shoot
me an email.
یکشنبه 1396/01/20 07:59
I am really inspired with your writing abilities and
also with the structure in your blog. Is this a paid subject matter or did you customize it yourself?

Anyway stay up the nice quality writing, it's uncommon to see a great blog like this one nowadays..
دوشنبه 1396/01/14 22:26
This is really attention-grabbing, You're a very skilled blogger.

I've joined your rss feed and look forward to looking for more of your
wonderful post. Additionally, I've shared your web site in my social networks
دوشنبه 1395/08/10 11:33
موفق باشید
دوشنبه 1395/08/10 11:33
موفق باشید
سه شنبه 1395/02/28 21:05
با تشکر از مطلبتون
موفق باشید
جمعه 1393/04/27 04:45
گاهی...


به من سر بزن
منتظرم و به خدا می سپارمت...
 
لبخندناراحتچشمک
نیشخندبغلسوال
قلبخجالتزبان
ماچتعجبعصبانی
عینکشیطانگریه
خندهقهقههخداحافظ
سبزقهرهورا
دستگلتفکر