Changeset 288:fdbcedd769f0
- Timestamp:
- 12/02/2008 12:19:26 AM
(1 month ago)
- Author:
- marc@f1.local
- branch:
- default
- Message:
Faceless wasn't
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r269 |
r288 |
|
| 29 | 29 | <classpathentry exported="true" kind="lib" path="depends/xstream-1.2.2/xstream/target/xstream-SNAPSHOT.jar" sourcepath="depends/xstream-1.2.2/xstream/src"/> |
|---|
| 30 | 30 | <classpathentry exported="true" kind="lib" path="depends/jdnc-0_7-all.jar" sourcepath="/Users/marc/fieldwork/field/development/depends/swingx/docs"/> |
|---|
| 31 | | <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> |
|---|
| | 31 | <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.launching.macosx.MacOSXType/JVM 1.5.0 (MacOS X Default)"/> |
|---|
| 32 | 32 | <classpathentry kind="src" output="classes" path=".apt_generated"> |
|---|
| 33 | 33 | <attributes> |
|---|
| r221 |
r288 |
|
| 3 | 3 | import field.core.execution.AutoEngage; |
|---|
| 4 | 4 | import field.core.execution.PhantomFluidSheet; |
|---|
| 5 | | import field.core.ui.FieldMenus; |
|---|
| 6 | 5 | import field.launch.Launcher; |
|---|
| 7 | 6 | import field.launch.SystemProperties; |
|---|
| … | … | |
| 21 | 20 | public void launch() { |
|---|
| 22 | 21 | |
|---|
| 23 | | phantom = FieldMenus.fieldMenus.openSheet(SystemProperties.getProperty("field.scratch", "field.Blank.xml"), false); |
|---|
| 24 | | |
|---|
| | 22 | phantom = new PhantomFluidSheet(SystemProperties.getProperty("field.scratch", "field.Blank.xml"), false, false); |
|---|
| | 23 | |
|---|
| 25 | 24 | Launcher.getLauncher().registerUpdateable(new iUpdateable() { |
|---|
| 26 | 25 | |
|---|
| r267 |
r288 |
|
| 2 | 2 | |
|---|
| 3 | 3 | import java.net.URL; |
|---|
| 4 | | import java.nio.ByteBuffer; |
|---|
| 5 | 4 | |
|---|
| 6 | 5 | import javax.media.opengl.GL; |
|---|
| … | … | |
| 260 | 259 | |
|---|
| 261 | 260 | |
|---|
| 262 | | ByteBuffer b = image.getImage(); |
|---|
| 263 | | |
|---|
| 264 | | for (int i = 0; i < b.capacity(); i++) { |
|---|
| 265 | | if (i % 4 == 0) |
|---|
| 266 | | System.out.println(); |
|---|
| 267 | | System.out.print(b.get() + " "); |
|---|
| 268 | | } |
|---|
| 269 | | |
|---|
| | 261 | // ByteBuffer b = image.getImage(); |
|---|
| | 262 | // |
|---|
| | 263 | // for (int i = 0; i < b.capacity(); i++) { |
|---|
| | 264 | // if (i % 4 == 0) |
|---|
| | 265 | // System.out.println(); |
|---|
| | 266 | // System.out.print(b.get() + " "); |
|---|
| | 267 | // } |
|---|
| | 268 | // |
|---|
| 270 | 269 | |
|---|
| 271 | 270 | return true; |
|---|
| r267 |
r288 |
|
| 8 | 8 | public class ByteImage { |
|---|
| 9 | 9 | |
|---|
| 10 | | private final String filename; |
|---|
| | 10 | private String filename; |
|---|
| 11 | 11 | private int width; |
|---|
| 12 | 12 | private int height; |
|---|
| … | … | |
| 23 | 23 | |
|---|
| 24 | 24 | if (image == 0) |
|---|
| | 25 | { |
|---|
| | 26 | System.err.println(" about to load image <"+filename+">"); |
|---|
| | 27 | if (filename.indexOf(":")==-1) |
|---|
| | 28 | filename = "file://"+filename; |
|---|
| 25 | 29 | image = new CoreImage().image_createWithURL(filename); |
|---|
| | 30 | } |
|---|
| 26 | 31 | |
|---|
| 27 | 32 | width = (int) new CoreImage().image_getExtentWidth(image); |
|---|