help please? (programming homework)

Discussion in 'Mac Programming' started by nnose, Aug 8, 2008.

  1. nnose macrumors newbie

    Joined:
    Apr 3, 2008
    #1
    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.
     
  2. HiRez macrumors 603

    HiRez

    Joined:
    Jan 6, 2004
    Location:
    Western US
    #2
    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?
     
  3. GGJstudios macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #3
    It sounds like someone is trying to get someone to do their homework for them, which eliminates the benefits of actually learning.
     
  4. ChrisA macrumors G4

    Joined:
    Jan 5, 2006
    Location:
    Redondo Beach, California
    #4
    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?"
     

Share This Page