• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Convert NSOpenGLView pixel coordinates to OpenGL world coordinates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Convert NSOpenGLView pixel coordinates to OpenGL world coordinates


  • Subject: Convert NSOpenGLView pixel coordinates to OpenGL world coordinates
  • From: Ian was here <email@hidden>
  • Date: Thu, 4 Oct 2007 09:36:56 -0700 (PDT)

I've googled this one and have found some interesting
info, but no clear-cut way to convert an
NSOpenGLView's X,Y coordinate to an OpenGL world's X,Y
coordinate (not too concerned with the Z coordinate).
I need to know if two dimensional objects are getting
mouse clicks.

Has anyone done this before or know of any sample
code? Thanks.




      ____________________________________________________________________________________
Shape Yahoo! in your own image.  Join our Network Research Panel today!   http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Convert NSOpenGLView pixel coordinates to OpenGL world coordinates
      • From: Alastair Houghton <email@hidden>
  • Prev by Date: Re: Question about NSURLRequest
  • Next by Date: Re: Question about NSURLRequest
  • Previous by thread: Re: Question about NSURLRequest
  • Next by thread: Re: Convert NSOpenGLView pixel coordinates to OpenGL world coordinates
  • Index(es):
    • Date
    • Thread