Results 1 to 3 of 3

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

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2014
    Posts
    2

    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.

  2. #2
    Senior Member Regular Contributor
    Join Date
    Apr 2012
    Location
    Los Angeles
    Posts
    394
    [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
    Junior Member Newbie
    Join Date
    Jun 2014
    Posts
    2
    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.

Similar Threads

  1. Replies: 2
    Last Post: 06-25-2013, 02:49 PM
  2. Clock code
    By PyroJing in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 04-26-2010, 05:54 PM
  3. Clock
    By halidziya in forum OpenGL: Windows
    Replies: 3
    Last Post: 12-19-2007, 02:32 PM
  4. 3D Clock...
    By Vusi in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 06-20-2004, 12:43 PM
  5. Analog Clock
    By in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 03-13-2002, 12:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean