Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

nnose

macrumors newbie
Original poster
Apr 3, 2008
5
0
plz idont have any idea about this question,oplz ineed help:
(animated shape "opengl"):
o Create five windows with titles: Me, Rectangle, Triangle, Point, and Circle. o When the program is run the corresponding shapes should be drawn inside the windows, a rectangle in the rectangle window and so on, the first window should display your name and ID number and serial number. o All the shapes can have different colors assigned to it by pressing a keyboard key;
• R for red • G for green • B for blue o The program should exit if the user presses q key. o The program should respond to user mouse clicks: • A left click inside rectangle window will cause the rectangle to be moved so that the upper-left corner resides on where the mouse was clicked while preserving the geometric properties of the rectangle. •
A left click inside the Triangle window will cause the triangle to disappear, while a right click will make it show again.
• A click inside the Point window will cause the point to move in any direction until it hits the sides of the window, there where it should bounce to the opposite direction depending on the angle it hit the side, a right click should stop the point.(the movement should be eye tractable). • A left click inside the Circle window should make it go bigger until it touches the boundaries of the window then it should go smaller until the radius is equal to 0 and so on. A right click will stop circle resizing.
o Use double buffered display mode to enhance animation.
 

HiRez

macrumors 603
Jan 6, 2004
6,265
2,630
Western US
Look, I don't mean to sound like an unhelpful jerk, but if you don't understand anything about that exercise, you are unlikely to be able to get help completing it from anyone here. It sounds like you are missing some fundamental background knowledge and need to start from the ground floor. You need to know basic general programming concepts (objects/structures, looping, event handling, etc.) and the basics of OpenGL to complete this exercise. What kind of knowledge do you have to start with?
 

GGJstudios

macrumors Westmere
May 16, 2008
44,556
950
It sounds like someone is trying to get someone to do their homework for them, which eliminates the benefits of actually learning.
 

ChrisA

macrumors G5
Jan 5, 2006
12,918
2,170
Redondo Beach, California
plz idont have any idea about this question,

I think maybe you signed up for the wrong class. You might be better off in an "introduction to programming" class. If you want help here you will have to try and get something to work that ask a specific question such as "how do I detect when the dot hits the edge" and post your code and ask where the problem might be. No one can help when you ask a general question like "what do I do?"
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.