Author Topic: calling LWJGL methods directly  (Read 8571 times)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: calling LWJGL methods directly
« Reply #15 on: March 30, 2009, 03:55:07 pm »
that code makes y axis increase downwards. is it also possible to convert mouse coordinate system ?
Which is natural IMHO. If you want it reversed, just do something like this:

Code: [Select]
GL11.glOrtho(0, 800, 0, 600, 0.0f, 0.1f);

Offline raft

  • quad
  • ******
  • Posts: 1993
    • View Profile
    • http://www.aptalkarga.com
Re: calling LWJGL methods directly
« Reply #16 on: March 30, 2009, 07:56:50 pm »
Quote
Which is natural IMHO. If you want it reversed, just do something like this:
Code: [Select]
GL11.glOrtho(0, 800, 0, 600, 0.0f, 0.1f);
no, i'm happy it reverses Y coordinate. i just wonder if same can be done for lwjgl Mouse class ?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: calling LWJGL methods directly
« Reply #17 on: March 30, 2009, 08:08:38 pm »
no, i'm happy it reverses Y coordinate. i just wonder if same can be done for lwjgl Mouse class ?
I don't really know, but i don't think so.