الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

[مخالف]مساعدة في رسم منزل وتلوينه

مغلق
بدأه KAU-S في 28 نوفمبر 2011 · 1 رد · 1,563 مشاهدة · في OpenGL
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم ورحمة الله وبركاته

اخواني عندنا مشروع بالكلية اتمنى المساعده فيه

The objective of this assignment is build a simple OpenGL drawing program that interactively draws simple houses at locations on the screen designated by the mouse. The houses will consist of two parts: a lower rectangular part and a triangular roof. The user may independently select the color of the house and its roof.. When the program starts, the window should be cleared to black. To draw, the user moves the mouse to the desired location of the house. A left click at this location will draw the house.

It will be necessary to redraw all of the previously drawn figures every time the current figure is redrawn.

It will also be possible to select the background color, clear all drawn figures, and terminate the program.

Requirements:

1. Initially the screen will be cleared to black.

2. A menu will be provided which allows the selection of the color of the house from among the set (red, green, blue, cyan, magenta, yellow).

3. A menu will be provided which allows the selection of the color of the roof from among the set (red, green, blue, cyan, magenta, yellow).

4. A menu will be provided which allows the selection of the color of the background from among the set (black, white)

5. Moving the cursor with the mouse and clicking the left mouse button will draw a house at that location.

6. Resizing the screen will redraw all of the items scaled to fit the new screen size.

7. All items should be properly redrawn if the window is obscured and then exposed.

8. A menu item will clear the screen to the background color.

9. A menu item will terminate the program.

For extra credit, provide a means for scaling the size of each house drawn. Therefore there should be a high level menu attached to the right mouse button has five entries:

House Color

• Roof Color

• Background Color

• Clear Screen

• Exit

The color selection menus will have appropriate submenus.

Level 2: (4 marks)

Add door, windows, Chimney and stairs(like the following figure) to the house with all the previously required function.

#2

الأخ الكريم/الأخت الكريمة

السلام عليكم ورحمة الله وبركاته

مرحباً بكم في منتدى الفريق العربي للبرمجة

تأسف إدارة المنتدى لغلق الموضوع وذلك لمخالفته قوانين المشاركات .

قواعد طرح المشاركات

/index.php?showtopic=29343

شاكرين لكم حُسن تعاونكم

{username}

صورة
صورة

حسابي في الفيس بوك
http://goo.gl/XIzwL

حسابي في تويتر
http://goo.gl/6p4e3

 

 
 

هذا الموضوع مغلق.

مواضيع مشابهة

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…