مرحبا,,
كيف اكتب الكود يفتح 3 نوافذ عند عمل run وكل واحد لها display خاصة فيها
شكرا
GMO,,
مرحبا,,
كيف اكتب الكود يفتح 3 نوافذ عند عمل run وكل واحد لها display خاصة فيها
شكرا
GMO,,
CreateWindow...etc
راجع دروس برمجة الوندوز او اي مقال لها http://www.winprog.org/tutorial/
و كتاب Petzold
BEng , Electronics and communications.
Embedded systems engineer.
Graphics Programmer
عالم الكومبيوتر هو من لديه المعرفة في علوم الكومبيوتر ، الرياضيات ، هندسة الالكترونيات -احمد صالح
عذرا اقصد في openGL
مشكوري حصلتها
فيه طريقتين :
اول طريقة اعمل الامر
glutCreateWindow("a");كما في المثال
glutInit(&argc, argv);
glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGB|GLUT_DEPTH);
glutInitWindowSize (370, 270);
glutInitWindowPosition (100, 100);
window = glutCreateWindow ("GMO1-");
init ();
glutDisplayFunc(display);
glutReshapeFunc(reshape);
glutKeyboardFunc(keyboard);
//glutIdleFunc(move);
//glutMainLoop();
glutInitWindowSize (300, 200);
glutInitWindowPosition (300, 300);
glutCreateWindow("GMO2");
init ();
glutDisplayFunc(display);
glutReshapeFunc(reshape);
glutKeyboardFunc(keyboard);
glutMainLoop();والطريقة الثانية بالامر
int glutCreateSubWindow(int win, int x, int y, int width, int height);
win
Identifier of the subwindow's parent window.
x
Window X location in pixels relative to parent window's origin.
y
Window Y location in pixels relative to parent window's origin.
width
Width in pixels.
height
Height in pixels.
ويوجد في الرابط التالي مثال واضح
http://www.lighthouse3d.com/opengl/glut/index.php?subwin
سئلت وجاوبت على نفسي وحطيت الاجابة للفائدة ;)
هذا الموضوع مغلق.