/* attempt to deal with prototype, bootstrap, jquery conflicts */ /* for dropdown menus */

Jump to content

Image of the Day

Day 17 -- a bunch more tools join the table :) #blender3d #screenshotsaturday #itssaturdaysomewhere #lowpoly #3D https://t.co/CYJucn0Lfv
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net's newsletters to receive the latest updates and exclusive content.


Sign up now

coordinatess and point on mouse click QT

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
No replies to this topic

#1 giugio   Members   

246
Like
0Likes
Like

Posted 22 November 2012 - 07:01 AM

hello.
I have create a system that draws little circles or points in opengl 3 where I click the mouse in a qt opengl widget.
The problem are the coordinates: the circle is not drawed in the position of the mouse when i click.
I divide the point x for the width and the point y for the height for and I have a point from 0 to 1
But how i can trasform these points from 0 to 1 to the opengl coordinates?
i must use the opengl viewport?
or the ortho matrix?
how?

ps.
the glwidget is on a mdi window
thanks.




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.