Commit Graph

30 Commits

Author SHA1 Message Date
kappaOne eb2e7176b8 Add new LWJGL API Display.getPixelScaleFactor() for use in high DPI
modes, like HiDPI retina mode on OS X.
2013-11-11 23:12:51 +00:00
kappa1 e5ebf82c81 Added the new public API's Display.getX() and Display.getY(). Currently implemented for Linux and Mac. Windows implementation pending. 2012-02-18 16:30:38 +00:00
Ioannis Tsakpinis 41af142324 Added support for OpenGL 3.2 on MacOS X 10.7+. 2011-09-03 18:52:45 +00:00
kappa1 5949d57bb1 Implement Resizing Display API for OS X 2011-07-13 22:15:35 +00:00
kappa1 9aafabd728 Add placeholder methods for initial resizing api for the Display 2011-07-12 22:07:32 +00:00
Ioannis Tsakpinis 40cbf3e45f Added support for OpenGL ES. 2011-05-17 16:53:57 +00:00
Elias Naur ed1f8d70f4 Removed redundant fullscreen argument from DisplayImplementation.createWindow 2008-10-28 10:05:37 +00:00
Ioannis Tsakpinis d7ee23f9b2 Added support for OpenGL 3.0 functionality
Added support for OpenGL 3.0 context creation (MAJOR/MINOR versions, DEBUG mode, FORWARD_COMBATIBLE mode)
Added support for OpenGL 3.0 context sharing
Added support for OpenGL 3.0 extension detection
Improved support for floating point PixelFormats (ARB_color_buffer_float)
Added support for packed floating point PixelFormats (EXT_packed_float)
Added support for sRGB PixelFormats (ARB_framebuffer_sRGB)
Added support for pseudo-FORWARD_COMBATIBLE mode (deprecated functions not loaded)
Added support for EXT_direct_state_access
2008-08-19 16:46:03 +00:00
Brian Matzon bb16ec7492 updated and added license where needed 2008-04-07 18:36:09 +00:00
Elias Naur c499f33bcf Added experimental Display.setParent to allow Display to be embedded in an AWT Canvas. Added basic linux implementation and test. 2008-04-06 20:56:52 +00:00
Elias Naur 3674d843c2 Added org.lwjgl.opengl.AWTInputAdapter which enabled use of Mouse and
Keyboard with AWTGLCanvases. Programs can now avoid implementing AWT input processing and access the mouse grabbing features from both Display and AWTGLCanvas. See org.lwjgl.test.opengl.awt.AWTInputAdapterTest for an example.

Note: This commit is the linux and generic AWT imlementation and can still
change a lot while implementing windows and mac os x.
2006-10-26 20:19:40 +00:00
Elias Naur 26c6de6363 Implemented variable sized events in preparation of timestamped input events 2006-07-03 23:16:26 +00:00
Elias Naur 3902c69c7a Now that no native side event_queue_t type is used anymore, convert input read() semantics to use normal nio Buffer semantics - that is, move the position when writing events 2006-07-03 19:09:47 +00:00
Elias Naur 48cf79e55f Linux: Fixed Display.setIcon memory leak. 2006-06-30 18:56:37 +00:00
Elias Naur 6cf49718db Windows: LWJGL didn't work well with jinput, but compatibility could be greatly improved if LWJGL used DirectInput 8 (like jinput). This can't be done unconditionally, since we need the DX3 support for older versions of windows. So, I've moved most Mouse and Keyboard stuff from native to java side and generalized DirectInput access through an abstract base class, with two concrete subclasses, one for dx3 and one for dx8. 2006-06-26 13:50:48 +00:00
Elias Naur 9f41ecaedb Removed Keyboard.isStateKeySet() - it is easily replaced by Toolkit.getLockingKeyState() 2006-06-10 20:42:26 +00:00
Kevin Glass 94e0bb30c0 Added methods to set the window icon. MacOS implementation added using AWT images. 2005-07-05 21:54:12 +00:00
Caspian Rychlik-Prince 200ed3792a Cleanup of unused imports 2005-05-04 20:59:44 +00:00
Elias Naur 61ddd625df Added Mouse.setCursorPosition(x, y) 2005-04-12 11:45:06 +00:00
Elias Naur 3085702a38 Mac OS X port of the refactoring. Linux and Win32 fixes. 2005-02-23 11:11:08 +00:00
Elias Naur fb5d89599b Linux support for AWTGLCanvas. Big refactor of context specific code into Context.java that is now shared between Display, Pbuffer and AWTGLCanvas. (Win32 and Mac OS X is now broken while I implement the same changes on those platforms) 2005-02-20 11:24:22 +00:00
Elias Naur 66181d1486 Delegate Sys platform dependent methods into SysImplementation instances 2005-01-18 20:23:05 +00:00
Elias Naur f4180a214d Cleaned up Mouse and Keyboard now that buffering and translation are always enabled 2005-01-18 16:42:31 +00:00
Elias Naur fbcd19698b Moved Mouse.getNativeCursorCaps() to Cursor.getCapabilities()
Renamed Pbuffer.getPbufferCaps() to Pbuffer.getCapabilities()
2005-01-18 12:34:36 +00:00
Elias Naur 925139bc7d Added a Pbuffer argument to the Pbuffer constructor to enable sharing between pbuffers when the display is not created. Moved Pbuffer native methods into DisplayImplementation. 2005-01-11 13:53:12 +00:00
Ioannis Tsakpinis 83dd8b6bbc Code cleanup 2004-11-25 22:31:38 +00:00
Elias Naur 2577ffd377 Split up Sys.openURL into the platform specific DisplayImplementation 2004-11-22 21:22:30 +00:00
Elias Naur 9ec94cb364 Move getPbufferCaps to DisplayImplementation. Mac OS X pbuffer support 2004-11-18 12:10:28 +00:00
Elias Naur 5b1b513aab Moved native cursors to DisplayImplementation 2004-11-11 13:27:59 +00:00
Elias Naur ddd61963ee Split out native implementation of Display/Mouse/Keyboard into implementers of DisplayImplementation 2004-11-02 12:48:58 +00:00