Interface GLFWPlatform

All Superinterfaces:
AutoCloseable, ca.nodeengine.quantum.platform.QuantumPlatform

public interface GLFWPlatform extends ca.nodeengine.quantum.platform.QuantumPlatform
Adds support for GLFW through LWJGL3
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ca.nodeengine.quantum.InputDevice
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default Class<?>
     
    void
    registerWindow(long windowHandle)
    Registers a window with any platform that supports it.
    void
    unregisterWindow(long windowHandle)
    Unregisters a window from any platform that supports it.
    default boolean
     

    Methods inherited from interface AutoCloseable

    close

    Methods inherited from interface ca.nodeengine.quantum.platform.QuantumPlatform

    getInputDevices, initialize, isSupported, update
  • Field Details

    • GLFW_DEVICE

      static final ca.nodeengine.quantum.InputDevice GLFW_DEVICE
  • Method Details

    • registerWindow

      void registerWindow(long windowHandle)
      Registers a window with any platform that supports it.
      Parameters:
      windowHandle - the handle of the window to register
    • unregisterWindow

      void unregisterWindow(long windowHandle)
      Unregisters a window from any platform that supports it.
      Parameters:
      windowHandle - the handle of the window to unregister
    • getApiClass

      default Class<?> getApiClass()
      Specified by:
      getApiClass in interface ca.nodeengine.quantum.platform.QuantumPlatform
    • usesGlobalDevice

      default boolean usesGlobalDevice()
      Specified by:
      usesGlobalDevice in interface ca.nodeengine.quantum.platform.QuantumPlatform