Thread: Convertion between Windows and OpenGL coords

  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    87

    Convertion between Windows and OpenGL coords

    I'm in the following situation:

    I have one OpenGL window and I've applied to it the operator:
    Code:
    glTranslated(0,0,-3);
    (I'm writing with MFC) So, I want to catch the event OnLButtonDown and to put one point with coordinates (x1,y1,0) which corespond to the coords that Windows passed to me
    How can I calculate it?

  2. #2
    Registered User
    Join Date
    Sep 2003
    Posts
    87
    In addition to it.

    Is there any way to undestand which is maximum x and y coordinate in which ( with z=0) that point will be visible?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Just starting Windows Programming, School me!
    By Shamino in forum Windows Programming
    Replies: 17
    Last Post: 02-22-2008, 08:14 AM
  2. Linking OpenGL in Dev-C++
    By linkofazeroth in forum Game Programming
    Replies: 4
    Last Post: 09-13-2005, 10:17 AM
  3. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  4. OpenGL and Windows
    By sean345 in forum Game Programming
    Replies: 5
    Last Post: 06-24-2002, 10:14 PM
  5. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 10:01 PM