Jogamp
Bug 1031: Remove Deprecated Classes and Methods (JOGL)
authorSven Gothel <sgothel@jausoft.com>
Wed, 9 Jul 2014 23:11:00 +0000 (01:11 +0200)
committerSven Gothel <sgothel@jausoft.com>
Wed, 9 Jul 2014 23:11:00 +0000 (01:11 +0200)
commitec2d94ca26ddab8ec67135ebc5f2d0a43f6a4c25
treee405f17400b8d52ffe38347d226ca9927ac4f3ec
parentefa5f1110725d41b7ea58010fe34b2a8aacd185b
Bug 1031: Remove Deprecated Classes and Methods (JOGL)

Removed Deprecated Class:
  - com/jogamp/opengl/util/TGAWriter.java
    - Use TextureIO w/ .tga suffix

  - com/jogamp/opengl/util/awt/Screenshot.java
    - Use:
      - com.jogamp.opengl.util.GLReadBufferUtil, or
      - com.jogamp.opengl.util.awt.AWTGLReadBufferUtil
      The latter for reading into AWT BufferedImage

      See: TestBug461FBOSupersamplingSwingAWT, TestBug605FlippedImageAWT

  - javax/media/opengl/GLPbuffer.java
    - Use:
      caps.setPBuffer(true);
      final GLAutoDrawable pbuffer = GLDrawableFactory.getFactory( caps.getGLProfile() ).createOffscreenAutoDrawable(null, caps, null, 512, 512);
    - See: TestPBufferDeadlockAWT, ..

Removed Deprecated Methods:
  - Constructor of AWT-GLCanvas, SWT-GLCanvas, AWT-GLJPanel
    with argument 'final GLContext shareWith'
    See GLSharedContextSetter, i.e. glCanvas.setSharedContext(..) !

  - GLDrawableFactory.createOffscreenAutoDrawable(..)
    with argument 'final GLContext shareWith'
    See GLSharedContextSetter, i.e. offscreenAutoDrawable.setSharedContext(..) !

  - GLDrawableFactory.createGLPbuffer(..),
    see above!

  - com.jogamp.opengl.util.av.AudioSink 'enqueueData(AudioDataFrame audioDataFrame)',
    use 'enqueueData(int, ByteBuffer, int)'

  - GLSharedContextSetter.areAllGLEventListenerInitialized(),
    migrated to GLAutoDrawable !

  - GLBase's
    - glGetBoundBuffer(int), use getBoundBuffer(int)
    - glGetBufferSize(int), use getBufferStorage(int).getSize()
    - glIsVBOArrayBound(), use isVBOArrayBound()
    - glIsVBOElementArrayBound(), use isVBOElementArrayBound()

  - NEWT MouseEvent.BUTTON_NUMBER, use BUTTON_COUNT
37 files changed:
make/config/jogl/gl-if-CustomJavaCode-es3.java
make/config/jogl/gl-impl-CustomJavaCode-common.java
make/config/jogl/gl-impl-CustomJavaCode-gl4bc.java
make/config/jogl/gl-impl-CustomJavaCode-gles3.java
make/config/jogl/glu-CustomJavaCode-base.java
make/config/jogl/glu-CustomJavaCode-gl2.java
make/config/jogl/glu-CustomJavaCode-gl2es1.java
make/scripts/tests.sh
src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java
src/jogl/classes/com/jogamp/opengl/util/TGAWriter.java [deleted file]
src/jogl/classes/com/jogamp/opengl/util/av/AudioSink.java
src/jogl/classes/com/jogamp/opengl/util/awt/AWTGLReadBufferUtil.java
src/jogl/classes/com/jogamp/opengl/util/awt/Screenshot.java [deleted file]
src/jogl/classes/javax/media/opengl/GLAutoDrawable.java
src/jogl/classes/javax/media/opengl/GLBase.java
src/jogl/classes/javax/media/opengl/GLDrawableFactory.java
src/jogl/classes/javax/media/opengl/GLPbuffer.java [deleted file]
src/jogl/classes/javax/media/opengl/GLSharedContextSetter.java
src/jogl/classes/javax/media/opengl/Threading.java
src/jogl/classes/javax/media/opengl/awt/GLCanvas.java
src/jogl/classes/javax/media/opengl/awt/GLJPanel.java
src/jogl/classes/jogamp/opengl/GLBufferObjectTracker.java
src/jogl/classes/jogamp/opengl/GLContextImpl.java
src/jogl/classes/jogamp/opengl/GLDrawableFactoryImpl.java
src/jogl/classes/jogamp/opengl/GLPbufferImpl.java [deleted file]
src/jogl/classes/jogamp/opengl/MemoryObject.java [deleted file]
src/jogl/classes/jogamp/opengl/openal/av/ALAudioSink.java
src/jogl/classes/jogamp/opengl/util/av/JavaSoundAudioSink.java
src/jogl/classes/jogamp/opengl/util/av/NullAudioSink.java
src/newt/classes/com/jogamp/newt/event/MouseEvent.java
src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLExtensionQueryOffscreen.java
src/test/com/jogamp/opengl/test/junit/jogl/acore/TestNEWTCloseX11DisplayBug565.java
src/test/com/jogamp/opengl/test/junit/jogl/acore/TestPBufferDeadlockAWT.java
src/test/com/jogamp/opengl/test/junit/jogl/awt/TestBug461FBOSupersamplingSwingAWT.java
src/test/com/jogamp/opengl/test/junit/jogl/awt/TestBug461PBufferSupersamplingSwingAWT.java
src/test/com/jogamp/opengl/test/junit/jogl/caps/TestBug605FlippedImageAWT.java
src/test/com/jogamp/opengl/test/junit/jogl/glsl/GLSLMiscHelper.java
http://JogAmp.org git info: FAQ, tutorial and man pages.