Package org.lwjgl.driftfx
Class DriftFX
- java.lang.Object
-
- org.lwjgl.driftfx.DriftFX
-
public class DriftFX extends java.lang.Object
Bindings to theDriftFX
class.
-
-
Field Summary
Fields Modifier and Type Field Description static int
DRIFTFX_BOTTOM_CENTER
DRIFTFX_BOTTOM_LEFT
DRIFTFX_BOTTOM_RIGHT
DRIFTFX_CENTER
DRIFTFX_CENTER_LEFT
DRIFTFX_CENTER_RIGHT
DRIFTFX_CONTAIN
DRIFTFX_COVER
DRIFTFX_TOP_CENTER
DRIFTFX_TOP_LEFT
DRIFTFX_TOP_RIGHTPresentationHint
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
driftfxContextCreateTexture(long _this, int width, int height)
static long
driftfxGet()
static long
driftfxGetSurface(long _this, long surfaceId)
static long
driftfxGLContextCreateSharedContext(long _this)
static long
driftfxGLContextCreateTexture(long _this, int width, int height)
static long
driftfxGLContextGetName(long _this, java.nio.ByteBuffer name)
static boolean
driftfxGLContextIsCurrent(long _this)
static void
driftfxGLContextSetCurrent(long _this)
static void
driftfxGLContextUnsetCurrent(long _this)
static int
driftfxRenderTargetGetGLTexture(long _this)
static int
driftfxRenderTargetGetHeight(long _this)
static int
driftfxRenderTargetGetWidth(long _this)
static long
driftfxSurfaceAcquire(long _this, int width, int height, long transferMode)
Acquires a newRenderTarget
with the given size.static long
driftfxSurfaceAcquireV(long _this, Vec2ui size)
Acquires a newRenderTarget
with the given size.static long
driftfxSurfaceAcquireVM(long _this, Vec2ui size, long transferMode)
Acquires a newRenderTarget
with the given size.static void
driftfxSurfaceCleanup(long _this)
Cleanup this native surface.static long
driftfxSurfaceGetAvailableTransferModes(org.lwjgl.PointerBuffer modes)
static long
driftfxSurfaceGetContext(long _this)
static long
driftfxSurfaceGetFallbackTransferMode()
static int
driftfxSurfaceGetHeight(long _this)
Returns the current height of theNativeSurface
in JavaFX.static long
driftfxSurfaceGetPlatformDefaultTransferMode()
static Vec2ui
driftfxSurfaceGetScaledSize(long _this, Vec2ui __result)
Returnsceil(surfaceSize * screenScale * userScale)
.static Vec2d
driftfxSurfaceGetScreenScale(long _this, Vec2d __result)
Returns the current screen scale.static Vec2d
driftfxSurfaceGetSurfaceSize(long _this, Vec2d __result)
Returns the current surface size in JavaFX units.static Vec2d
driftfxSurfaceGetUserScale(long _this, Vec2d __result)
Returns the current user scale.static int
driftfxSurfaceGetWidth(long _this)
Returns the current width of theNativeSurface
in JavaFX.static void
driftfxSurfaceInitialize(long _this)
Initializes this surface.static void
driftfxSurfacePresent(long _this, long target, int hint)
Presents a previously acquiredRenderTarget
.static int
driftfxTextureGetHeight(long _this)
static int
driftfxTextureGetWidth(long _this)
static int
driftfxTransferModeId(long _this)
static long
driftfxTransferModeName(long _this, java.nio.ByteBuffer name)
static long
ndriftfxContextCreateTexture(long _this, int width, int height)
static long
ndriftfxGetSurface(long _this, long surfaceId)
static long
ndriftfxGLContextCreateSharedContext(long _this)
static long
ndriftfxGLContextCreateTexture(long _this, int width, int height)
static long
ndriftfxGLContextGetName(long _this, long name, long nameLength)
static boolean
ndriftfxGLContextIsCurrent(long _this)
static void
ndriftfxGLContextSetCurrent(long _this)
static void
ndriftfxGLContextUnsetCurrent(long _this)
static int
ndriftfxRenderTargetGetGLTexture(long _this)
static int
ndriftfxRenderTargetGetHeight(long _this)
static int
ndriftfxRenderTargetGetWidth(long _this)
static long
ndriftfxSurfaceAcquire(long _this, int width, int height, long transferMode)
Unsafe version of:SurfaceAcquire
static long
ndriftfxSurfaceAcquireV(long _this, long size)
Unsafe version of:SurfaceAcquireV
static long
ndriftfxSurfaceAcquireVM(long _this, long size, long transferMode)
Unsafe version of:SurfaceAcquireVM
static void
ndriftfxSurfaceCleanup(long _this)
Unsafe version of:SurfaceCleanup
static long
ndriftfxSurfaceGetAvailableTransferModes(long modes, long modesLength)
static long
ndriftfxSurfaceGetContext(long _this)
static int
ndriftfxSurfaceGetHeight(long _this)
Unsafe version of:SurfaceGetHeight
static void
ndriftfxSurfaceGetScaledSize(long _this, long __result)
Unsafe version of:SurfaceGetScaledSize
static void
ndriftfxSurfaceGetScreenScale(long _this, long __result)
Unsafe version of:SurfaceGetScreenScale
static void
ndriftfxSurfaceGetSurfaceSize(long _this, long __result)
Unsafe version of:SurfaceGetSurfaceSize
static void
ndriftfxSurfaceGetUserScale(long _this, long __result)
Unsafe version of:SurfaceGetUserScale
static int
ndriftfxSurfaceGetWidth(long _this)
Unsafe version of:SurfaceGetWidth
static void
ndriftfxSurfaceInitialize(long _this)
Unsafe version of:SurfaceInitialize
static void
ndriftfxSurfacePresent(long _this, long target, int hint)
Unsafe version of:SurfacePresent
static int
ndriftfxTextureGetHeight(long _this)
static int
ndriftfxTextureGetWidth(long _this)
static int
ndriftfxTransferModeId(long _this)
static long
ndriftfxTransferModeName(long _this, long name, long nameLength)
-
-
-
Field Detail
-
DRIFTFX_CENTER, DRIFTFX_COVER, DRIFTFX_CONTAIN, DRIFTFX_TOP_LEFT, DRIFTFX_TOP_CENTER, DRIFTFX_TOP_RIGHT, DRIFTFX_CENTER_LEFT, DRIFTFX_CENTER_RIGHT, DRIFTFX_BOTTOM_LEFT, DRIFTFX_BOTTOM_CENTER, DRIFTFX_BOTTOM_RIGHT
PresentationHint
Enum values:
-
-
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 viaSurfaceGetContext
.
-
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 newRenderTarget
with the given size.- Parameters:
width
- the render target width, or -1 to use the surface widthheight
- the render target height, or -1 to use the surface heighttransferMode
- the transfer mode, ornull
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 newRenderTarget
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 newRenderTarget
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 acquiredRenderTarget
.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 theNativeSurface
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 theNativeSurface
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)
Returnsceil(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)
-
-