com.jogamp.opengl.impl.macosx.cgl
Class MacOSXOnscreenCGLDrawable

java.lang.Object
  extended by com.jogamp.opengl.impl.GLDrawableImpl
      extended by com.jogamp.opengl.impl.macosx.cgl.MacOSXCGLDrawable
          extended by com.jogamp.opengl.impl.macosx.cgl.MacOSXOnscreenCGLDrawable
All Implemented Interfaces:
GLDrawable

public class MacOSXOnscreenCGLDrawable
extends MacOSXCGLDrawable


Field Summary
 
Fields inherited from class com.jogamp.opengl.impl.macosx.cgl.MacOSXCGLDrawable
CGL_MODE, NSOPENGL_MODE
 
Fields inherited from class com.jogamp.opengl.impl.GLDrawableImpl
component, DEBUG, factory, realized, requestedCapabilities
 
Constructor Summary
protected MacOSXOnscreenCGLDrawable(GLDrawableFactory factory, NativeWindow component)
           
 
Method Summary
 GLContext createContext(GLContext shareWith)
          Creates a new context for drawing to this drawable that will optionally share display lists and other server-side OpenGL objects with the specified GLContext.
 int getHeight()
          Returns the current height of this GLDrawable.
 int getOpenGLMode()
           
 int getWidth()
          Returns the current width of this GLDrawable.
 void setOpenGLMode(int mode)
           
protected  void swapBuffersImpl()
           
 
Methods inherited from class com.jogamp.opengl.impl.macosx.cgl.MacOSXCGLDrawable
getGLDynamicLookupHelper, getThreadName, setRealizedImpl
 
Methods inherited from class com.jogamp.opengl.impl.GLDrawableImpl
destroy, destroyHandle, getChosenGLCapabilities, getFactory, getFactoryImpl, getGLProfile, getHandle, getNativeWindow, getRequestedGLCapabilities, isRealized, isSurfaceLocked, lockSurface, setRealized, swapBuffers, toHexString, toString, unlockSurface, updateHandle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MacOSXOnscreenCGLDrawable

protected MacOSXOnscreenCGLDrawable(GLDrawableFactory factory,
                                    NativeWindow component)
Method Detail

createContext

public GLContext createContext(GLContext shareWith)
Description copied from interface: GLDrawable
Creates a new context for drawing to this drawable that will optionally share display lists 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 on context sharing.


getWidth

public int getWidth()
Description copied from interface: GLDrawable
Returns the current width of this GLDrawable.

Specified by:
getWidth in interface GLDrawable
Overrides:
getWidth in class GLDrawableImpl

getHeight

public int getHeight()
Description copied from class: GLDrawableImpl
Returns the current height of this GLDrawable.

Specified by:
getHeight in interface GLDrawable
Overrides:
getHeight in class GLDrawableImpl

swapBuffersImpl

protected void swapBuffersImpl()
Specified by:
swapBuffersImpl in class GLDrawableImpl

setOpenGLMode

public void setOpenGLMode(int mode)
Specified by:
setOpenGLMode in class MacOSXCGLDrawable

getOpenGLMode

public int getOpenGLMode()
Specified by:
getOpenGLMode in class MacOSXCGLDrawable


Copyright 2010 JogAmp Community.