Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3508 Members - Latest Member: PienueDut

26. May 2012, 10:35:04 am
Xith3D CommunityGeneral CategoryGeneral Discussion (Moderators: Marvin Fröhlich, 'n ddrylliog)RUN_IN_SEPARATE_THREAD
Pages: [1]
Print
Author Topic: RUN_IN_SEPARATE_THREAD  (Read 549 times)
elijah
Enjoying the stay
*
Offline Offline

Posts: 72


View Profile
« on: 04. March 2009, 08:07:26 am »

Hi guys,

Can RunMode.RUN_IN_SEPARATE_THREAD receives keyboard and mouse events in LWJGL ? How do you go about it. Please give some snip code.

Thanks
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 04. March 2009, 07:07:08 pm »

Can RunMode.RUN_IN_SEPARATE_THREAD receives keyboard and mouse events in LWJGL ? How do you go about it. Please give some snip code.

RUN_IN_SEPARATE_THREAD is a problem with LWJGL on Windows. The render thread must be the same as the one, which created the canvas (OpenGL context). So you can't currently use RUN_IN_SEPARATE_THREAD on Windows.

But you can simply start your whole app in a separate thread and use the main thread for other tasks. Or you can create a separate thread for these other tasks (preferred way).

Marvin
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic