aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun/javafx/newt/awt/AWTDisplay.java
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2008-06-27 00:00:33 +0000
committerKenneth Russel <[email protected]>2008-06-27 00:00:33 +0000
commit1f64245f42db1bf5b5ff63ff4425b4dfd9e1b70d (patch)
tree349c70f041075dc6fb7d24d66a66e07119f2b2e6 /src/classes/com/sun/javafx/newt/awt/AWTDisplay.java
parentef077b7abd6b54308071c48d1081cae8902f6dec (diff)
Mac OS X port of new JOGL and Newt. Currently leverages the AWT; will
re-host Newt on lower level code when a port to an AWT-less Mac OS X-based mobile device is done. Added support to NativeWindow and Newt for wrapping a Java-based window from a toolkit like the AWT, and added appropriate code to the GLDrawableFactory implementations to recognize and handle these NativeWindows. Fixed naming of native method for JAWT_DrawingSurfaceInfo.platformInfo0(). Fixed linker definition on Mac and cleaned up Windows variants. Fixed intptr_t definitions in ES1 and ES2 native code. Added workaround for GLU type reference in com.sun.opengl.util.texture.Texture. Fixed bugs in Newt event dispatching. Tested with RedSquare demo on Mac OS X. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1698 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com/sun/javafx/newt/awt/AWTDisplay.java')
-rw-r--r--src/classes/com/sun/javafx/newt/awt/AWTDisplay.java46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/classes/com/sun/javafx/newt/awt/AWTDisplay.java b/src/classes/com/sun/javafx/newt/awt/AWTDisplay.java
new file mode 100644
index 000000000..37d1af2ed
--- /dev/null
+++ b/src/classes/com/sun/javafx/newt/awt/AWTDisplay.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright (c) 2008 Sun Microsystems, Inc. All Rights Reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * - Redistribution of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * - Redistribution in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * Neither the name of Sun Microsystems, Inc. or the names of
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * This software is provided "AS IS," without a warranty of any kind. ALL
+ * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
+ * INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
+ * PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN
+ * MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE FOR
+ * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
+ * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR
+ * ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR
+ * DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE
+ * DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY,
+ * ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF
+ * SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+ *
+ */
+
+package com.sun.javafx.newt.awt;
+
+import com.sun.javafx.newt.*;
+import com.sun.opengl.impl.*;
+
+public class AWTDisplay extends Display {
+ public AWTDisplay() {
+ }
+
+ protected void createNative() {
+ handle = 0;
+ }
+}