diff options
author | Sven Gothel <[email protected]> | 2009-06-11 07:05:29 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2009-06-11 07:05:29 +0000 |
commit | 0dec290ca2ff1245f16787bb3ccc62dab4bd9bfb (patch) | |
tree | 5dbeb595e2683333401a260ccbd92c550f70fffa /make/build.xml | |
parent | 3c5704666a2f64f66de432ef21ac223cc81131e8 (diff) |
- Fixing SPEC documentation for bindings JOGL and NativeWindow,
lot's of javadoc changes/fixes.
- Fixing transparency values RGB[A] in GLX and EGL, adding those in GLCapabilities.
- Adding EGLPbuffer (untested yet)
Added EGLOnscreenContext, EGLOnscreenDrawable and EGLPbufferContext, EGLPbufferDrawable,
which completes the now abstract EGLContext and EGLDrawable.
- Decoupling EGLDrawableFactory and DynamicLookupHelper:
Since OpenGL ES has 2 libraries and hence 2 DynamicLookupHelper, one for each,
these are decoupled in EGLES1DynamicLookupHelper and EGLES2DynamicLookupHelper,
where each uses the base class EGLDynamicLookupHelper.
EGLDynamicLookupHelper act's also as the owner of these singleton instances.
EGLDrawableFactory is now pure singleton,
and has no more relation to the ES[12] libraries.
Still, GLDrawableFactory.getFactory(GLProfile) stays, due to the selection
of the right factory, ie EGLDrawableFactory or a native one (X11GLX, WindowsWGL or MacOSXCGL).
Added GLDrawableImpl.getDynamicLookupHelper().
DynamicLookupHelper implementation is pushed down to the specialisation of GLDrawableImpl,
hence removed GLDrawableImpl implements DynamicLookupHelper.
- Fixing Locking
- Always throw an Exception if unlock is called without being locked.
- Removed NativeWindow.LOCK_NOT_SUPPORTED, since it made the locking state ambiguos.
- Using a generated Exception at locking to mark the object locked,
and to let it throw in case of double locking.
- Removed redundant lockToolkit() calls, where lockSurface() calls are made
- Fixing GLWindow wrapped toolkit (e.g. AWTWindow) usage
- In case the passed NativeWindow only contains a wrapper window,
we use the NativeWindowFactory.getNativeWindow() pipeline to produce a valid
NativeWindow. This object is only referenced within the drawable, hence we have
to use it for actual NativeWindow related operations.
- Add setVisible(): lockSurface()/unlockSurface() to allow getting the windowHandle
- Overwriting all drawable related Window method's, using the drawable's NativeWindow if exists.
- getNativeWindow()
- lockSurface()/unlockSurface()/..
- getWindowHandle()/getSurfaceHandle()
- Fix NativeWindowFactory.getNativeWindowType(),
so the custom and pure values are set once (static init) - not overwritten (prev. bug).
- NEWT: Added WindowEvent.EVENT_WINDOW_DESTROY_NOTIFY support in AWTWindow.
Now the proper dispose() calls are made to all GLEventListeners if the AWT window
is being closed - before it is actually destroyed.
- Threading now uses the AWTThreadingPlugin,
a ThreadingPlugin interface AWT implementation, containing the refactored
Threading code.
- Reintroduced getChosen*Capabilities and getRequested*Capabilites,
where get*Capabilities is renamed back to getRequested*Capabilities.
The semantics are necessary to allow the drawables (and NativeWindow)
to be regenerated in case of a device change in a multihead environment.
Otherwise there is a risk that recursive choosing of the Capabilities
will degenerate the result.
- Multihead logic ..
Exception: Xinerama, where all monitors share the same static configuration,
and the window handle 'survive'
X11, MacOSX and Win32 with a Xinerama behavior
1) Recognition of a display/screen/surface change
- It is prooven that the JAWT model (JAWT_LOCK_SURFACE_CHANGED)
while locking the surface is not reliably propagated, ie doesn't work here,
if the display change happens.
- AWT's Canvas.getGraphicsConfiguration() can reliably being used
to detect this case, ie compare the old GraphicsConfiguration with the new one.
- A solution for other native windowing toolkits must be found,
ie query the current underlying pixel-configuration, if it changed - act.
In which case the the following shall be done:
2.0) - notify all GLEventListener via the dispose(GLAutoDrawable)
2.1) - destroy the OpenGL context
2.2) - call GLDrawable's setRealized(false)
2.3) - call GLDrawable's setRealized(true)
2.4) - create a new OpenGL context
2.5) - notify all GLEventListener via the init(GLAutoDrawable)
Steps 2.0 - 2.5 are executed with GLAutoDrawable's dispose(true) call.
Step 2.3, setRealized(true) on GLDrawable shall:
2.3.1) - Choose the GLCapabilities again, based on the requested ones,
and update the choosen ones in the AbstractGraphicsConfiguration.
2.3.2) - Update AbstractScreen within the new AbstractGraphicsConfiguration to
reflect the possible screen change.
DONE: Xinerama mode: X11 + Xinerama, MacOSX
DONE: Introducing GLAutoDrawable.dispose(boolean regenerate)
DONE: 2.3.1 on setRealized(true): Windows, MacOSX (implicit on createContext)
TODO: Windows setRealized(true) on AWT Canvas getGraphicsConfiguration(),
can't lock the JAWT surface sometimes - exception, code disabled, see GLCanvas.java
TODO: 2.3.1 on setRealized(true): X11 and EGL
TODO: Find a test case, without Xinerama behavior
TODO: Code for Newt/NativeWindow to detect (1) and propagate GLAutoDrawable's dispose(true).
TESTS:
- MacOSX (Xinerama) OK
- X11
-TwinView (NV) OK
-Xinerama (NV) OK
- Win32 (Xinerama) OK
- GLAutoDrawable's dispose(true)
-
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1929 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/build.xml')
-rw-r--r-- | make/build.xml | 47 |
1 files changed, 37 insertions, 10 deletions
diff --git a/make/build.xml b/make/build.xml index 9da8ca3fe..70df11981 100644 --- a/make/build.xml +++ b/make/build.xml @@ -2,6 +2,8 @@ <project name="JOGL_ALL" basedir="." default="all"> <target name="init"> + <property name="base_version_jogl" value="1.2.0-rc1"/> + <property name="base_version_nw" value="1.0.0-rc1"/> <property name="project.root" value=".." /> <condition property="rootrel.build" value="build"> <not> @@ -23,15 +25,23 @@ <!-- The javadoc dirs. --> <property name="javadoc" value="${project.root}/javadoc_public" /> - <property name="javadoc.spec" value="${project.root}/javadoc_spec" /> - <property name="javadoc.dev" value="${project.root}/javadoc_dev" /> <property name="javadoc.link" value="http://java.sun.com/j2se/1.4.2/docs/api/" /> + <property name="javadoc.overview" value="doc/jogl/spec-overview.html" /> + + <property name="javadoc.spec" value="${project.root}/javadoc_jogl_spec" /> + <property name="javadoc.spec.windowtitle" value="JOGL API -- JSR-231 ${base_version_jogl} Specification" /> + <property name="javadoc.spec.packagenames" value="javax.media.opengl.*" /> + <property name="javadoc.windowtitle" value="JOGL, NativeWindow and NEWT APIs" /> - <property name="javadoc.spec.windowtitle" value="JOGL and NativeWindow APIs -- JSR-231 ${base_version} Specification" /> - <property name="javadoc.overview" value="spec-overview.html" /> - <property name="javadoc.spec.packagenames" value="javax.media.nativewindow.*, javax.media.opengl.*" /> <property name="javadoc.packagenames" value="${javadoc.spec.packagenames},com.sun.opengl.util.*,com.sun.javafx.newt, com.sun.javafx.newt.opengl" /> + + <property name="javadoc.dev" value="${project.root}/javadoc_dev" /> <property name="javadoc.dev.packagenames" value="${javadoc.packagenames},com.sun.opengl.impl.*,com.sun.nativewindow.impl.*,com.sun.javafx.newt.*,com.sun.gluegen,com.sun.gluegen.runtime" /> + + <property name="javadoc.nw.overview" value="../src/nativewindow/classes/javax/media/nativewindow/package.html" /> + <property name="javadoc.nw.spec" value="${project.root}/javadoc_nativewindow_spec" /> + <property name="javadoc.nw.spec.windowtitle" value="NativeWindow API -- ${base_version_nw} Specification" /> + <property name="javadoc.nw.spec.packagenames" value="javax.media.nativewindow.*" /> <property name="javadoc.bottom" value="Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to <a href="http://jcp.org/en/jsr/detail?id=231">license terms</a>." /> <property name="gluegen-rt.jar" value="../../gluegen/${rootrel.build}/gluegen-rt.jar" /> @@ -69,7 +79,7 @@ </target> <target name="javadoc" depends="init"> - <!-- Build the general Javadoc --> + <!-- Build the general publi Javadoc --> <javadoc packagenames="${javadoc.packagenames}" excludepackagenames="${java.excludes.javadoc.packagenames}" sourcepath="${all.srcj.path};${all.genj.path}" @@ -82,17 +92,18 @@ </javadoc> </target> - <target name="javadoc.spec" depends="init"> - <!-- Build the general Javadoc --> + <target name="javadoc.jogl.spec" depends="init,javadoc.nw.spec"> + <!-- Build the specification Javadoc --> <javadoc packagenames="${javadoc.spec.packagenames}" excludepackagenames="${java.excludes.javadoc.packagenames}" sourcepath="${all.srcj.path};${all.genj.path}" - destdir="${javadoc.spec}" windowtitle="${javadoc.windowtitle}" + destdir="${javadoc.spec}" windowtitle="${javadoc.spec.windowtitle}" overview="${javadoc.overview}" source="1.4" - linkoffline="${javadoc.link} 142-packages" bottom="${javadoc.bottom}" > <classpath refid="all.classpath"/> + <link offline="true" href="${javadoc.link}" packagelistLoc="142-packages" /> + <link offline="false" href="${javadoc.nw.spec}" /> </javadoc> </target> @@ -110,6 +121,22 @@ </javadoc> </target> + <target name="javadoc.nw.spec" depends="init"> + <!-- Build the general Javadoc --> + <javadoc packagenames="${javadoc.nw.spec.packagenames}" + excludepackagenames="${java.excludes.javadoc.packagenames}" + sourcepath="${all.srcj.path};${all.genj.path}" + destdir="${javadoc.nw.spec}" windowtitle="${javadoc.nw.spec.windowtitle}" + overview="${javadoc.nw.overview}" + source="1.4" + linkoffline="${javadoc.link} 142-packages" + bottom="${javadoc.bottom}" > + <classpath refid="all.classpath"/> + </javadoc> + </target> + + <target name="javadoc.spec" description="Build Specifications JOGL and Nativewindow" depends="init,javadoc.jogl.spec" /> + <target name="all.doc" description="Build NativeWindow, JOGL and NEWT docs" depends="init,javadoc,javadoc.spec,javadoc.dev" /> </project> |