Package be.yildizgames.module.window.swt
Class SwtWindowEngine
- java.lang.Object
-
- be.yildizgames.module.window.swt.SwtWindowEngine
-
- All Implemented Interfaces:
be.yildizgames.module.window.WindowEngine
public final class SwtWindowEngine extends Object implements be.yildizgames.module.window.WindowEngine
SWT implementation for the window engine.- Author:
- Grégory Van den Borre
-
-
Constructor Summary
Constructors Constructor Description SwtWindowEngine(boolean fullScreen, be.yildizgames.module.coordinate.Coordinates c)Simple constructor.SwtWindowEngine(SwtWindow window, be.yildizgames.module.coordinate.Coordinates c)Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateCursor(be.yildizgames.module.window.Cursor cursor)voiddeleteLoadingResources()Delete the resources used during loading.be.yildizgames.module.window.WindowHandlegetHandle()be.yildizgames.module.window.ScreenSizegetScreenSize()voidhideCursor()voidregisterInput(be.yildizgames.module.window.input.WindowInputListener listener)voidsetCursor(be.yildizgames.module.window.Cursor cursor)voidsetWindowIcon(String file)voidsetWindowTitle(String title)voidshowCursor()voidupdateWindow()
-
-
-
Constructor Detail
-
SwtWindowEngine
public SwtWindowEngine(boolean fullScreen, be.yildizgames.module.coordinate.Coordinates c)Simple constructor.
-
SwtWindowEngine
public SwtWindowEngine(SwtWindow window, be.yildizgames.module.coordinate.Coordinates c)
Simple constructor.
-
-
Method Detail
-
setWindowTitle
public final void setWindowTitle(String title)
- Specified by:
setWindowTitlein interfacebe.yildizgames.module.window.WindowEngine
-
setWindowIcon
public final void setWindowIcon(String file)
- Specified by:
setWindowIconin interfacebe.yildizgames.module.window.WindowEngine
-
createCursor
public final void createCursor(be.yildizgames.module.window.Cursor cursor)
- Specified by:
createCursorin interfacebe.yildizgames.module.window.WindowEngine
-
updateWindow
public final void updateWindow()
- Specified by:
updateWindowin interfacebe.yildizgames.module.window.WindowEngine
-
getHandle
public final be.yildizgames.module.window.WindowHandle getHandle()
- Specified by:
getHandlein interfacebe.yildizgames.module.window.WindowEngine- Returns:
- The handle to link the game window and the 3d context.
-
deleteLoadingResources
public final void deleteLoadingResources()
Delete the resources used during loading.- Specified by:
deleteLoadingResourcesin interfacebe.yildizgames.module.window.WindowEngine
-
setCursor
public final void setCursor(be.yildizgames.module.window.Cursor cursor)
- Specified by:
setCursorin interfacebe.yildizgames.module.window.WindowEngine
-
showCursor
public final void showCursor()
- Specified by:
showCursorin interfacebe.yildizgames.module.window.WindowEngine
-
hideCursor
public final void hideCursor()
- Specified by:
hideCursorin interfacebe.yildizgames.module.window.WindowEngine
-
getScreenSize
public final be.yildizgames.module.window.ScreenSize getScreenSize()
- Specified by:
getScreenSizein interfacebe.yildizgames.module.window.WindowEngine
-
registerInput
public void registerInput(be.yildizgames.module.window.input.WindowInputListener listener)
- Specified by:
registerInputin interfacebe.yildizgames.module.window.WindowEngine
-
-