29package com.jogamp.nativewindow;
31import com.jogamp.common.util.locks.RecursiveLock;
A generic exception for OpenGL errors used throughout the binding as a substitute for RuntimeExceptio...
A marker interface describing a graphics configuration, visual, or pixel format in a toolkit-independ...
Provides low-level information required for hardware-accelerated rendering using a surface in a platf...
int lockSurface()
Lock the surface of this native window.
static final int LOCK_SURFACE_UNLOCKED
Unlocked state, {@value}.
boolean isSurfaceLockedByOtherThread()
Query if surface is locked by another thread, i.e.
Thread getSurfaceLockOwner()
Return the locking owner's Thread, or null if not locked.
int getSurfaceWidth()
Returns the width of the client area excluding insets (window decorations) in pixel units.
static final int LOCK_SURFACE_NOT_READY
Returned by lockSurface() if the surface is not ready to be locked, {@value}.
AbstractGraphicsConfiguration getGraphicsConfiguration()
Returns the graphics configuration corresponding to this window.
long getSurfaceHandle()
Returns the handle to the surface for this NativeSurface.
int[] convertToPixelUnits(final int[] windowUnitsAndResult)
Converts the given window units into pixel units in place.
int[] convertToWindowUnits(final int[] pixelUnitsAndResult)
Converts the given pixel units into window units in place.
static final int LOCK_SURFACE_CHANGED
Returned by lockSurface() if the surface is locked, but has changed, {@value}.
void unlockSurface()
Unlock the surface of this native window.
void addSurfaceUpdatedListener(SurfaceUpdatedListener l)
Appends the given SurfaceUpdatedListener to the end of the list.
RecursiveLock getLock()
Returns the implementation's RecursiveLock synchronizing multithreaded access if used.
int getSurfaceHeight()
Returns the height of the client area excluding insets (window decorations) in pixel units.
boolean surfaceSwap()
Provide a mechanism to utilize custom (pre-) swap surface code.
long getDisplayHandle()
Convenience: Get display handle from AbstractGraphicsConfiguration .
void removeSurfaceUpdatedListener(SurfaceUpdatedListener l)
Remove the specified SurfaceUpdatedListener from the list.
int getScreenIndex()
Convenience: Get display handle from AbstractGraphicsConfiguration .
static final int LOCK_SUCCESS
Returned by lockSurface() if the surface is locked, and is unchanged, {@value}.
Clients may add their SurfaceUpdateListener implementation to a com.jogamp.nativewindow....