hello i'm a newbie to openlGL, plz guide me on my simple project.
i want to create a simple game(click game) in which a object(rectange) appears in the window and is to be clicked and when it is clicked a variable(score) is updated and object is drawn at a random postion and i also need the to add timer (game exits after 30seconds). basically in this game you try to click the object (rectangle) as fast you can in a specified time i.e 30s.....

i ve written a code(not full), could you plz check whether i'm going in the right direction,