Hello Guest

mouse origin

  • 3 Replies
  • 7987 Views
mouse origin
« on: July 14, 2009, 15: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

*

Offline kappa

  • *****
  • 1319
Re: mouse origin
« Reply #1 on: July 14, 2009, 15:29:34 »
inverse is on you own  :)

there isn't a way to get lwjgl to do it.

Re: mouse origin
« Reply #2 on: July 14, 2009, 15: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

*

Offline kappa

  • *****
  • 1319
Re: mouse origin
« Reply #3 on: July 14, 2009, 15: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.