public class DriftFX
extends java.lang.Object
DriftFX class.| Modifier and Type | Field and Description |
|---|---|
static int |
DRIFTFX_BOTTOM_CENTER
PresentationHint |
static int |
DRIFTFX_BOTTOM_LEFT
PresentationHint |
static int |
DRIFTFX_BOTTOM_RIGHT
PresentationHint |
static int |
DRIFTFX_CENTER
PresentationHint |
static int |
DRIFTFX_CENTER_LEFT
PresentationHint |
static int |
DRIFTFX_CENTER_RIGHT
PresentationHint |
static int |
DRIFTFX_CONTAIN
PresentationHint |
static int |
DRIFTFX_COVER
PresentationHint |
static int |
DRIFTFX_TOP_CENTER
PresentationHint |
static int |
DRIFTFX_TOP_LEFT
PresentationHint |
static int |
DRIFTFX_TOP_RIGHT
PresentationHint |
| Modifier and Type | Method and 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 new
RenderTarget with the given size. |
static long |
driftfxSurfaceAcquireV(long _this,
Vec2ui size)
Acquires a new
RenderTarget with the given size. |
static long |
driftfxSurfaceAcquireVM(long _this,
Vec2ui size,
long transferMode)
Acquires a new
RenderTarget 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 the
NativeSurface in JavaFX. |
static long |
driftfxSurfaceGetPlatformDefaultTransferMode() |
static Vec2ui |
driftfxSurfaceGetScaledSize(long _this,
Vec2ui __result)
Returns
ceil(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 the
NativeSurface in JavaFX. |
static void |
driftfxSurfaceInitialize(long _this)
Initializes this surface.
|
static void |
driftfxSurfacePresent(long _this,
long target,
int hint)
Presents a previously acquired
RenderTarget. |
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) |
public static final int DRIFTFX_CENTER
PresentationHint
public static final int DRIFTFX_COVER
PresentationHint
public static final int DRIFTFX_CONTAIN
PresentationHint
public static final int DRIFTFX_TOP_LEFT
PresentationHint
public static final int DRIFTFX_TOP_CENTER
PresentationHint
public static final int DRIFTFX_TOP_RIGHT
PresentationHint
public static final int DRIFTFX_CENTER_LEFT
PresentationHint
public static final int DRIFTFX_CENTER_RIGHT
PresentationHint
public static final int DRIFTFX_BOTTOM_LEFT
PresentationHint
public static final int DRIFTFX_BOTTOM_CENTER
PresentationHint
public static final int DRIFTFX_BOTTOM_RIGHT
PresentationHint
public static long driftfxGet()
public static long ndriftfxGetSurface(long _this,
long surfaceId)
public static long driftfxGetSurface(long _this,
long surfaceId)
public static void ndriftfxSurfaceInitialize(long _this)
SurfaceInitializepublic static void driftfxSurfaceInitialize(long _this)
Should be called on your render thread. This will create a GLContext. Its accessible via SurfaceGetContext.
public static void ndriftfxSurfaceCleanup(long _this)
SurfaceCleanuppublic static void driftfxSurfaceCleanup(long _this)
Should be called on your render thread. Releases all pending resources and destroys its contexts.
public static long ndriftfxSurfaceAcquire(long _this,
int width,
int height,
long transferMode)
SurfaceAcquirepublic static long driftfxSurfaceAcquire(long _this,
int width,
int height,
long transferMode)
RenderTarget with the given size.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, or null to use the defaultpublic static long ndriftfxSurfaceAcquireV(long _this,
long size)
SurfaceAcquireVpublic static long driftfxSurfaceAcquireV(long _this,
Vec2ui size)
RenderTarget with the given size.
Should be called from your render thread.
public static long ndriftfxSurfaceAcquireVM(long _this,
long size,
long transferMode)
SurfaceAcquireVMpublic static long driftfxSurfaceAcquireVM(long _this,
Vec2ui size,
long transferMode)
RenderTarget with the given size.
Should be called from your render thread.
public static void ndriftfxSurfacePresent(long _this,
long target,
int hint)
SurfacePresentpublic static void driftfxSurfacePresent(long _this,
long target,
int hint)
RenderTarget.
Should be called from your render thread.
public static long ndriftfxSurfaceGetContext(long _this)
public static long driftfxSurfaceGetContext(long _this)
public static int ndriftfxSurfaceGetWidth(long _this)
SurfaceGetWidthpublic static int driftfxSurfaceGetWidth(long _this)
NativeSurface in JavaFX.public static int ndriftfxSurfaceGetHeight(long _this)
SurfaceGetHeightpublic static int driftfxSurfaceGetHeight(long _this)
NativeSurface in JavaFX.public static void ndriftfxSurfaceGetSurfaceSize(long _this,
long __result)
SurfaceGetSurfaceSizepublic static Vec2d driftfxSurfaceGetSurfaceSize(long _this, Vec2d __result)
public static void ndriftfxSurfaceGetScreenScale(long _this,
long __result)
SurfaceGetScreenScalepublic static Vec2d driftfxSurfaceGetScreenScale(long _this, Vec2d __result)
public static void ndriftfxSurfaceGetUserScale(long _this,
long __result)
SurfaceGetUserScalepublic static Vec2d driftfxSurfaceGetUserScale(long _this, Vec2d __result)
public static void ndriftfxSurfaceGetScaledSize(long _this,
long __result)
SurfaceGetScaledSizepublic static Vec2ui driftfxSurfaceGetScaledSize(long _this, Vec2ui __result)
ceil(surfaceSize * screenScale * userScale).public static long ndriftfxSurfaceGetAvailableTransferModes(long modes,
long modesLength)
public static long driftfxSurfaceGetAvailableTransferModes(@Nullable
org.lwjgl.PointerBuffer modes)
public static long driftfxSurfaceGetPlatformDefaultTransferMode()
public static long driftfxSurfaceGetFallbackTransferMode()
public static long ndriftfxContextCreateTexture(long _this,
int width,
int height)
public static long driftfxContextCreateTexture(long _this,
int width,
int height)
public static int ndriftfxRenderTargetGetWidth(long _this)
public static int driftfxRenderTargetGetWidth(long _this)
public static int ndriftfxRenderTargetGetHeight(long _this)
public static int driftfxRenderTargetGetHeight(long _this)
public static int ndriftfxRenderTargetGetGLTexture(long _this)
public static int driftfxRenderTargetGetGLTexture(long _this)
public static int ndriftfxTextureGetWidth(long _this)
public static int driftfxTextureGetWidth(long _this)
public static int ndriftfxTextureGetHeight(long _this)
public static int driftfxTextureGetHeight(long _this)
public static int ndriftfxTransferModeId(long _this)
public static int driftfxTransferModeId(long _this)
public static long ndriftfxTransferModeName(long _this,
long name,
long nameLength)
public static long driftfxTransferModeName(long _this,
@Nullable
java.nio.ByteBuffer name)
public static void ndriftfxGLContextSetCurrent(long _this)
public static void driftfxGLContextSetCurrent(long _this)
public static void ndriftfxGLContextUnsetCurrent(long _this)
public static void driftfxGLContextUnsetCurrent(long _this)
public static boolean ndriftfxGLContextIsCurrent(long _this)
public static boolean driftfxGLContextIsCurrent(long _this)
public static long ndriftfxGLContextCreateSharedContext(long _this)
public static long driftfxGLContextCreateSharedContext(long _this)
public static long ndriftfxGLContextCreateTexture(long _this,
int width,
int height)
public static long driftfxGLContextCreateTexture(long _this,
int width,
int height)
public static long ndriftfxGLContextGetName(long _this,
long name,
long nameLength)
public static long driftfxGLContextGetName(long _this,
@Nullable
java.nio.ByteBuffer name)
Copyright LWJGL. All Rights Reserved. License terms.