Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: How to get the Clock in the Top-Right Corner of the Map?

  1. #1

    How to get the Clock in the Top-Right Corner of the Map?

    Hello. Hopefully someone can help me with the following issue:

    I've picked up a copy of the OpenGL: A Primer, the "Redbook", the "Bluebook", and the Interactive Computer Graphics: A Top-Down Approach Using OpenGL book. However, I've been using the Primer as my main source. NONE of these books had a clock example. A few of them referred to the timer function in GLUT but that's not what I was looking for.

    After browsing the web I managed to find some examples of making an analog clock in GLUT. Now here's the problem: I want to place an analog clock in the upper-right corner of my texture map. How would I go about doing this? I noticed the glVertex2f function and tried messing around with it (the example that I found it in was the Primer book in the simple.c source code to draw a white square) but when I do I just end up making the square it draws disappear. Is this the function I need? If so how can I input coordinates?

    EDIT: Got my rights and lefts mixed up. Want the clock in the top-LEFT corner.
    Last edited by lamentofking; 06-11-2014 at 08:08 AM.

  2. #2
    Junior Member Regular Contributor
    Join Date
    Apr 2012
    Location
    Los Angeles
    Posts
    185
    [QUOTE=lamentofking;1259926... I want to place an analog clock in the upper-right corner of my texture map. [/QUOTE] Do you really mean in the top right corner of the texture map (hard), or the right corner of the screen (easy)?

  3. #3
    Quote Originally Posted by Carmine View Post
    Do you really mean in the top right corner of the texture map (hard), or the right corner of the screen (easy)?
    I meant in the top-left hand corner of the map not right-hand. Sorry. I can't change the title of the thread apparently. More specifically I want to ultimately be able to advance the time with a mouse-click button but I figured I'd need to get the clock in the top-left corner first.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •