LWJGL
February 07, 2012, 22:42:48 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.8.3 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: mouse origin  (Read 1931 times)
theplayer
Newbie
*
Posts: 8


« on: July 14, 2009, 08:26:36 »

hi@ all,

is there a way to move the mouse origin (point 0,0) to upper left? or should i always inverse it on my own?

greetz theplayer
Logged
kappa
Administrator
Nerdus Imperius
*****
Posts: 889



« Reply #1 on: July 14, 2009, 08:29:34 »

inverse is on you own  Smiley

there isn't a way to get lwjgl to do it.
Logged
theplayer
Newbie
*
Posts: 8


« Reply #2 on: July 14, 2009, 08:33:57 »

thx

whats better:

rotate orthogonal projection to origin lower left or inverse mouse???

i know its a silly question but i want to know some other opinions

theplayer
Logged
kappa
Administrator
Nerdus Imperius
*****
Posts: 889



« Reply #3 on: July 14, 2009, 08:43:07 »

by default opengl uses lower left as origin(hence the reason lwjgl mouse reports it like that), while other libraries like java2d use top left for the origin.

If your working with opengl best to leave the origin at the lower left, however doesn't really matter though, use whatever works for you.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!