Top Inners Fields Constructors Methods
jogamp.opengl.x11.glx

public Class X11ExternalGLXContext

extends X11GLXContext
Class Inheritance
Imports
java.nio.IntBuffer, com.jogamp.nativewindow.NativeSurface, .VisualIDHolder, com.jogamp.opengl.GLCapabilities, .GLContext, .GLDrawableFactory, .GLException, .GLProfile, jogamp.nativewindow.WrappedSurface, jogamp.opengl.GLContextShareSet, com.jogamp.common.nio.Buffers, com.jogamp.nativewindow.x11.X11GraphicsScreen

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Inherited from jogamp.opengl.x11.glx.X11GLXContext:
glXServerVersionisDirectisGLXVersionGreaterEqualOneThree

Constructor Summary

AccessConstructor and Description
private
X11ExternalGLXContext(final X11ExternalGLXContext.Drawable drawable, final long ctx)

Method Summary

Modifier and TypeMethod and Description
protected static X11ExternalGLXContext
create(final GLDrawableFactory factory, final GLProfile glp)

protected boolean
createImpl(final long
the shared context handle or 0
shareWithHandle
)

Overrides jogamp.opengl.x11.glx.X11GLXContext.createImpl.

Platform dependent entry point for context creation.
protected void
protected void
protected void
Inherited from jogamp.opengl.x11.glx.X11GLXContext:
bindSwapBarrierImplcopyImplcreateContextARBImpldestroyContextARBImplforceGLXVersionOneOnegetExtensionNameMapgetFunctionNameMapgetGLXExtgetGLXExtProcAddressTablegetPlatformExtensionsStringImplgetPlatformExtProcAddressTablegetPlatformGLExtensionsisGLReadDrawableAvailableisGLXVersionGreaterEqualOneThreejoinSwapGroupImplqueryMaxSwapGroupsImplresetStatessetSwapIntervalImpl2toStringupdateGLXProcAddressTable

Constructor Detail

X11ExternalGLXContextback to summary
private X11ExternalGLXContext(final X11ExternalGLXContext.Drawable drawable, final long ctx)

Method Detail

createback to summary
protected static X11ExternalGLXContext create(final GLDrawableFactory factory, final GLProfile glp)
createImplback to summary
protected boolean createImpl(final long shareWithHandle) throws GLException

Overrides jogamp.opengl.x11.glx.X11GLXContext.createImpl.

Doc from jogamp.opengl.GLContextImpl.createImpl.

Platform dependent entry point for context creation.

This method is called from makeCurrentWithinLock() .. makeCurrent() .

The implementation shall verify this context with a MakeContextCurrent call.

The implementation must leave the context current.

Non fatal context creation failure via return false is currently implemented for: MacOSXCGLContext.

Parameters
shareWithHandle:long

the shared context handle or 0

Returns:boolean

true if successful. Method returns false if the context creation failed non fatally, hence it may be created at a later time. Otherwise method throws GLException.

Annotations
@Override
Exceptions
GLException:
if method fatally fails creating the context and no attempt shall be made at a later time.
destroyImplback to summary
protected void destroyImpl() throws GLException

Overrides jogamp.opengl.x11.glx.X11GLXContext.destroyImpl.

Annotations
@Override
makeCurrentImplback to summary
protected void makeCurrentImpl() throws GLException

Overrides jogamp.opengl.x11.glx.X11GLXContext.makeCurrentImpl.

Annotations
@Override
releaseImplback to summary
protected void releaseImpl() throws GLException

Overrides jogamp.opengl.x11.glx.X11GLXContext.releaseImpl.

Annotations
@Override
jogamp.opengl.x11.glx back to summary

pack-priv Class X11ExternalGLXContext.Drawable

extends X11GLXDrawable
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv
Drawable(final GLDrawableFactory factory, final NativeSurface comp)

Method Summary

Modifier and TypeMethod and Description
public GLContext
createContext(final GLContext shareWith)

Implements com.jogamp.opengl.GLDrawable.createContext.

Creates a new context for drawing to this drawable that will optionally share buffer objects, textures and other server-side OpenGL objects with the specified GLContext.
public int
getSurfaceHeight()

Overrides jogamp.opengl.GLDrawableImpl.getSurfaceHeight.

Implements com.jogamp.opengl.GLDrawable.getSurfaceHeight.

Returns the height of this GLDrawable's surface client area in pixel units.
public int
getSurfaceWidth()

Overrides jogamp.opengl.GLDrawableImpl.getSurfaceWidth.

Implements com.jogamp.opengl.GLDrawable.getSurfaceWidth.

Returns the width of this GLDrawable's surface client area in pixel units.
public void
setSize(final int width, final int height)

Inherited from jogamp.opengl.x11.glx.X11GLXDrawable:
setRealizedImplswapBuffersImpl

Constructor Detail

Drawableback to summary
pack-priv Drawable(final GLDrawableFactory factory, final NativeSurface comp)

Method Detail

createContextback to summary
public GLContext createContext(final GLContext shareWith)

Implements com.jogamp.opengl.GLDrawable.createContext.

Doc from com.jogamp.opengl.GLDrawable.createContext.

Creates a new context for drawing to this drawable that will optionally share buffer objects, textures and other server-side OpenGL objects with the specified GLContext.

The GLContext share need not be associated with this GLDrawable and may be null if sharing of display lists and other objects is not desired. See the note in the overview documentation context sharing as well as GLSharedContextSetter.

Annotations
@Override
getSurfaceHeightback to summary
public int getSurfaceHeight()

Overrides jogamp.opengl.GLDrawableImpl.getSurfaceHeight.

Implements com.jogamp.opengl.GLDrawable.getSurfaceHeight.

Doc from com.jogamp.opengl.GLDrawable.getSurfaceHeight.

Returns the height of this GLDrawable's surface client area in pixel units.

Annotations
@Override
getSurfaceWidthback to summary
public int getSurfaceWidth()

Overrides jogamp.opengl.GLDrawableImpl.getSurfaceWidth.

Implements com.jogamp.opengl.GLDrawable.getSurfaceWidth.

Doc from com.jogamp.opengl.GLDrawable.getSurfaceWidth.

Returns the width of this GLDrawable's surface client area in pixel units.

Annotations
@Override
setSizeback to summary
public void setSize(final int width, final int height)