Class 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 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:
        setWindowTitle in interface be.yildizgames.module.window.WindowEngine
      • setWindowIcon

        public final void setWindowIcon​(String file)
        Specified by:
        setWindowIcon in interface be.yildizgames.module.window.WindowEngine
      • createCursor

        public final void createCursor​(be.yildizgames.module.window.Cursor cursor)
        Specified by:
        createCursor in interface be.yildizgames.module.window.WindowEngine
      • updateWindow

        public final void updateWindow()
        Specified by:
        updateWindow in interface be.yildizgames.module.window.WindowEngine
      • getHandle

        public final be.yildizgames.module.window.WindowHandle getHandle()
        Specified by:
        getHandle in interface be.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:
        deleteLoadingResources in interface be.yildizgames.module.window.WindowEngine
      • setCursor

        public final void setCursor​(be.yildizgames.module.window.Cursor cursor)
        Specified by:
        setCursor in interface be.yildizgames.module.window.WindowEngine
      • showCursor

        public final void showCursor()
        Specified by:
        showCursor in interface be.yildizgames.module.window.WindowEngine
      • hideCursor

        public final void hideCursor()
        Specified by:
        hideCursor in interface be.yildizgames.module.window.WindowEngine
      • getScreenSize

        public final be.yildizgames.module.window.ScreenSize getScreenSize()
        Specified by:
        getScreenSize in interface be.yildizgames.module.window.WindowEngine
      • registerInput

        public void registerInput​(be.yildizgames.module.window.input.WindowInputListener listener)
        Specified by:
        registerInput in interface be.yildizgames.module.window.WindowEngine