[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Slick Forums :: View topic - TWL and LWJGL 3
Slick Forums
https://slick.ninjacave.com/forum/

TWL and LWJGL 3
https://slick.ninjacave.com/forum/viewtopic.php?f=18&t=7090
Page 1 of 1

Author:  obidobi [ Mon Nov 24, 2014 5:02 am ]
Post subject:  TWL and LWJGL 3

Hi I'm wondering if someone has made any efforts getting TWL to work with LWJGL 3?

LWJGL 3 is using GLFW for display/input handling. When it comes to how TWL interfaces with LWJGL regarding Mouse/Keyboard/Display and Cursors there are some rewriting required.

Author:  dayrinni [ Tue Nov 25, 2014 1:54 pm ]
Post subject:  Re: TWL and LWJGL 3


Author:  obidobi [ Sat Nov 29, 2014 8:15 am ]
Post subject:  Re: TWL and LWJGL 3

Well I took a look at it. I'm not just sure about the best way to go about it at this time.

The Mouse/Keyboard/Display and Cursor classes with static methods in LWJGL are gone since changing to glfw. Instead you register callback functions.
These callback functions receive a window pointer so you can control multiple windows. I guess one easy way to to get TWL to work with glfw would be to reimplement Mouse and Keyboard have them grab the callbacks and only support one window.

GLFW is certainly a big improvement over what was used in LWJGL 2. Nice API with enough documentation. Great support for multiple monitors and much more.
http://www.glfw.org/docs/latest/modules.html

Cursor handling is much better you can set a cursor to be in Normal, Hidden and Disabled mode. Disabled meaning it is hidden and locked and when you drag you get unlimited x and y coordinates, perfect for free look. Hidden moves the invisible cursor just giving coordinates within the limits of the window or screen resolution in case of fullscreen. I found the grabbed solution in lwjgl 2 always needing some hacky solution with Robot for free look.

One thing lacking LWJGL 3 is a usable GUI library. I like TWL since you can do pretty much anything with it :). With the theme editor as a nice reference implementation of a real application.

I'll let you know if I get somewhere with TWL and GLFW.

Author:  dayrinni [ Mon Dec 29, 2014 4:07 pm ]
Post subject:  Re: TWL and LWJGL 3


Author:  ClickerMonkey [ Fri Sep 30, 2016 7:57 am ]
Post subject:  Re: TWL and LWJGL 3

I just implemented a port (https://github.com/ClickerMonkey/twl/tree/lwjgl3) - working on creating a separate project and build.

Author:  dayrinni [ Sat Oct 01, 2016 1:59 pm ]
Post subject:  Re: TWL and LWJGL 3


Author:  ClickerMonkey [ Sat Oct 01, 2016 8:17 pm ]
Post subject:  Re: TWL and LWJGL 3

All but the custom cursor code is "working" with TWL in my port (works in my games and tools).

I submitted an issue to the Git repo and he responded - he said ideally we would have a TWL-LWJGL2.jar and a TWL-LWJGL3.jar since the LWJGL version specific classes can easily be pulled out. I'm awaiting on him creating some repos so I can do the work. If he doesn't do it anytime soon, I'll probably just do it myself.

Author:  dayrinni [ Sun Oct 02, 2016 3:43 pm ]
Post subject:  Re: TWL and LWJGL 3


Author:  ClickerMonkey [ Sun Oct 02, 2016 6:56 pm ]
Post subject:  Re: TWL and LWJGL 3

I'll work on putting it together later tonight.

Author:  ClickerMonkey [ Mon Oct 03, 2016 2:16 am ]
Post subject:  Re: TWL and LWJGL 3

Here are the projects created in the new organization:

https://github.com/ThemableWidgetLibrary/twl
https://github.com/ThemableWidgetLibrary/twl-lwjgl2
https://github.com/ThemableWidgetLibrary/twl-lwjgl3

You can see the README.md on those projects to a link to the built JARs.

Author:  dayrinni [ Thu Oct 06, 2016 1:28 pm ]
Post subject:  Re: TWL and LWJGL 3


Author:  ClickerMonkey [ Thu Oct 06, 2016 5:10 pm ]
Post subject:  Re: TWL and LWJGL 3

I took the initiative and created the organization and repos. He seemed to be busy!

Author:  dayrinni [ Sat Nov 26, 2016 4:17 pm ]
Post subject:  Re: TWL and LWJGL 3


Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/