Class DriftFX


  • public class DriftFX
    extends java.lang.Object
    Bindings to the DriftFX class.
    • Method Detail

      • driftfxGet

        public static long driftfxGet()
      • ndriftfxGetSurface

        public static long ndriftfxGetSurface​(long _this,
                                              long surfaceId)
      • driftfxGetSurface

        public static long driftfxGetSurface​(long _this,
                                             long surfaceId)
      • ndriftfxSurfaceInitialize

        public static void ndriftfxSurfaceInitialize​(long _this)
        Unsafe version of: SurfaceInitialize
      • driftfxSurfaceInitialize

        public static void driftfxSurfaceInitialize​(long _this)
        Initializes this surface.

        Should be called on your render thread. This will create a GLContext. Its accessible via SurfaceGetContext.

      • ndriftfxSurfaceCleanup

        public static void ndriftfxSurfaceCleanup​(long _this)
        Unsafe version of: SurfaceCleanup
      • driftfxSurfaceCleanup

        public static void driftfxSurfaceCleanup​(long _this)
        Cleanup this native surface.

        Should be called on your render thread. Releases all pending resources and destroys its contexts.

      • ndriftfxSurfaceAcquire

        public static long ndriftfxSurfaceAcquire​(long _this,
                                                  int width,
                                                  int height,
                                                  long transferMode)
        Unsafe version of: SurfaceAcquire
      • driftfxSurfaceAcquire

        public static long driftfxSurfaceAcquire​(long _this,
                                                 int width,
                                                 int height,
                                                 long transferMode)
        Acquires a new RenderTarget with the given size.
        Parameters:
        width - the render target width, or -1 to use the surface width
        height - the render target height, or -1 to use the surface height
        transferMode - the transfer mode, or null to use the default
      • ndriftfxSurfaceAcquireV

        public static long ndriftfxSurfaceAcquireV​(long _this,
                                                   long size)
        Unsafe version of: SurfaceAcquireV
      • driftfxSurfaceAcquireV

        public static long driftfxSurfaceAcquireV​(long _this,
                                                  Vec2ui size)
        Acquires a new RenderTarget with the given size.

        Should be called from your render thread.

      • ndriftfxSurfaceAcquireVM

        public static long ndriftfxSurfaceAcquireVM​(long _this,
                                                    long size,
                                                    long transferMode)
        Unsafe version of: SurfaceAcquireVM
      • driftfxSurfaceAcquireVM

        public static long driftfxSurfaceAcquireVM​(long _this,
                                                   Vec2ui size,
                                                   long transferMode)
        Acquires a new RenderTarget with the given size.

        Should be called from your render thread.

      • ndriftfxSurfacePresent

        public static void ndriftfxSurfacePresent​(long _this,
                                                  long target,
                                                  int hint)
        Unsafe version of: SurfacePresent
      • driftfxSurfacePresent

        public static void driftfxSurfacePresent​(long _this,
                                                 long target,
                                                 int hint)
        Presents a previously acquired RenderTarget.

        Should be called from your render thread.

      • ndriftfxSurfaceGetContext

        public static long ndriftfxSurfaceGetContext​(long _this)
      • driftfxSurfaceGetContext

        public static long driftfxSurfaceGetContext​(long _this)
      • ndriftfxSurfaceGetWidth

        public static int ndriftfxSurfaceGetWidth​(long _this)
        Unsafe version of: SurfaceGetWidth
      • driftfxSurfaceGetWidth

        public static int driftfxSurfaceGetWidth​(long _this)
        Returns the current width of the NativeSurface in JavaFX.
      • ndriftfxSurfaceGetHeight

        public static int ndriftfxSurfaceGetHeight​(long _this)
        Unsafe version of: SurfaceGetHeight
      • driftfxSurfaceGetHeight

        public static int driftfxSurfaceGetHeight​(long _this)
        Returns the current height of the NativeSurface in JavaFX.
      • ndriftfxSurfaceGetSurfaceSize

        public static void ndriftfxSurfaceGetSurfaceSize​(long _this,
                                                         long __result)
        Unsafe version of: SurfaceGetSurfaceSize
      • driftfxSurfaceGetSurfaceSize

        public static Vec2d driftfxSurfaceGetSurfaceSize​(long _this,
                                                         Vec2d __result)
        Returns the current surface size in JavaFX units.
      • ndriftfxSurfaceGetScreenScale

        public static void ndriftfxSurfaceGetScreenScale​(long _this,
                                                         long __result)
        Unsafe version of: SurfaceGetScreenScale
      • driftfxSurfaceGetScreenScale

        public static Vec2d driftfxSurfaceGetScreenScale​(long _this,
                                                         Vec2d __result)
        Returns the current screen scale.
      • ndriftfxSurfaceGetUserScale

        public static void ndriftfxSurfaceGetUserScale​(long _this,
                                                       long __result)
        Unsafe version of: SurfaceGetUserScale
      • driftfxSurfaceGetUserScale

        public static Vec2d driftfxSurfaceGetUserScale​(long _this,
                                                       Vec2d __result)
        Returns the current user scale.
      • ndriftfxSurfaceGetScaledSize

        public static void ndriftfxSurfaceGetScaledSize​(long _this,
                                                        long __result)
        Unsafe version of: SurfaceGetScaledSize
      • driftfxSurfaceGetScaledSize

        public static Vec2ui driftfxSurfaceGetScaledSize​(long _this,
                                                         Vec2ui __result)
        Returns ceil(surfaceSize * screenScale * userScale).
      • ndriftfxSurfaceGetAvailableTransferModes

        public static long ndriftfxSurfaceGetAvailableTransferModes​(long modes,
                                                                    long modesLength)
      • driftfxSurfaceGetAvailableTransferModes

        public static long driftfxSurfaceGetAvailableTransferModes​(@Nullable
                                                                   org.lwjgl.PointerBuffer modes)
      • driftfxSurfaceGetPlatformDefaultTransferMode

        public static long driftfxSurfaceGetPlatformDefaultTransferMode()
      • driftfxSurfaceGetFallbackTransferMode

        public static long driftfxSurfaceGetFallbackTransferMode()
      • ndriftfxContextCreateTexture

        public static long ndriftfxContextCreateTexture​(long _this,
                                                        int width,
                                                        int height)
      • driftfxContextCreateTexture

        public static long driftfxContextCreateTexture​(long _this,
                                                       int width,
                                                       int height)
      • ndriftfxRenderTargetGetWidth

        public static int ndriftfxRenderTargetGetWidth​(long _this)
      • driftfxRenderTargetGetWidth

        public static int driftfxRenderTargetGetWidth​(long _this)
      • ndriftfxRenderTargetGetHeight

        public static int ndriftfxRenderTargetGetHeight​(long _this)
      • driftfxRenderTargetGetHeight

        public static int driftfxRenderTargetGetHeight​(long _this)
      • ndriftfxRenderTargetGetGLTexture

        public static int ndriftfxRenderTargetGetGLTexture​(long _this)
      • driftfxRenderTargetGetGLTexture

        public static int driftfxRenderTargetGetGLTexture​(long _this)
      • ndriftfxTextureGetWidth

        public static int ndriftfxTextureGetWidth​(long _this)
      • driftfxTextureGetWidth

        public static int driftfxTextureGetWidth​(long _this)
      • ndriftfxTextureGetHeight

        public static int ndriftfxTextureGetHeight​(long _this)
      • driftfxTextureGetHeight

        public static int driftfxTextureGetHeight​(long _this)
      • ndriftfxTransferModeId

        public static int ndriftfxTransferModeId​(long _this)
      • driftfxTransferModeId

        public static int driftfxTransferModeId​(long _this)
      • ndriftfxTransferModeName

        public static long ndriftfxTransferModeName​(long _this,
                                                    long name,
                                                    long nameLength)
      • driftfxTransferModeName

        public static long driftfxTransferModeName​(long _this,
                                                   @Nullable
                                                   java.nio.ByteBuffer name)
      • ndriftfxGLContextSetCurrent

        public static void ndriftfxGLContextSetCurrent​(long _this)
      • driftfxGLContextSetCurrent

        public static void driftfxGLContextSetCurrent​(long _this)
      • ndriftfxGLContextUnsetCurrent

        public static void ndriftfxGLContextUnsetCurrent​(long _this)
      • driftfxGLContextUnsetCurrent

        public static void driftfxGLContextUnsetCurrent​(long _this)
      • ndriftfxGLContextIsCurrent

        public static boolean ndriftfxGLContextIsCurrent​(long _this)
      • driftfxGLContextIsCurrent

        public static boolean driftfxGLContextIsCurrent​(long _this)
      • ndriftfxGLContextCreateSharedContext

        public static long ndriftfxGLContextCreateSharedContext​(long _this)
      • driftfxGLContextCreateSharedContext

        public static long driftfxGLContextCreateSharedContext​(long _this)
      • ndriftfxGLContextCreateTexture

        public static long ndriftfxGLContextCreateTexture​(long _this,
                                                          int width,
                                                          int height)
      • driftfxGLContextCreateTexture

        public static long driftfxGLContextCreateTexture​(long _this,
                                                         int width,
                                                         int height)
      • ndriftfxGLContextGetName

        public static long ndriftfxGLContextGetName​(long _this,
                                                    long name,
                                                    long nameLength)
      • driftfxGLContextGetName

        public static long driftfxGLContextGetName​(long _this,
                                                   @Nullable
                                                   java.nio.ByteBuffer name)