projects
/
sixth-3d-demos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ignore IntelliJ and JRebel project files
[sixth-3d-demos.git]
/
src
/
main
/
java
/
eu
/
svjatoslav
/
sixth
/
e3d
/
examples
/
SphereDemo.java
diff --git
a/src/main/java/eu/svjatoslav/sixth/e3d/examples/SphereDemo.java
b/src/main/java/eu/svjatoslav/sixth/e3d/examples/SphereDemo.java
index
7fd62bc
..
24b455f
100755
(executable)
--- a/
src/main/java/eu/svjatoslav/sixth/e3d/examples/SphereDemo.java
+++ b/
src/main/java/eu/svjatoslav/sixth/e3d/examples/SphereDemo.java
@@
-1,7
+1,6
@@
/*
/*
- * Sixth - System for data storage, computation, exploration and interaction.
- * Copyright ©2012-2016, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- *
+ * Sixth 3D engine demos. Copyright ©2012-2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ *
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 3 of the GNU Lesser General Public License
* or later as published by the Free Software Foundation.
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 3 of the GNU Lesser General Public License
* or later as published by the Free Software Foundation.
@@
-10,8
+9,8
@@
package eu.svjatoslav.sixth.e3d.examples;
import eu.svjatoslav.sixth.e3d.geometry.Point3D;
package eu.svjatoslav.sixth.e3d.examples;
import eu.svjatoslav.sixth.e3d.geometry.Point3D;
-import eu.svjatoslav.sixth.e3d.gui.ViewContext;
import eu.svjatoslav.sixth.e3d.gui.ViewFrame;
import eu.svjatoslav.sixth.e3d.gui.ViewFrame;
+import eu.svjatoslav.sixth.e3d.gui.ViewPanel;
import eu.svjatoslav.sixth.e3d.renderer.raster.Color;
import eu.svjatoslav.sixth.e3d.renderer.raster.ShapeCollection;
import eu.svjatoslav.sixth.e3d.renderer.raster.shapes.basic.line.LineAppearance;
import eu.svjatoslav.sixth.e3d.renderer.raster.Color;
import eu.svjatoslav.sixth.e3d.renderer.raster.ShapeCollection;
import eu.svjatoslav.sixth.e3d.renderer.raster.shapes.basic.line.LineAppearance;
@@
-57,9
+56,9
@@
public class SphereDemo {
public static void main(final String[] args) {
final ViewFrame viewFrame = new ViewFrame();
public static void main(final String[] args) {
final ViewFrame viewFrame = new ViewFrame();
- final View
Context context = viewFrame.getView().getContext
();
+ final View
Panel viewPanel = viewFrame.getViewPanel
();
- final ShapeCollection geometryCollection =
context
+ final ShapeCollection geometryCollection =
viewPanel
.getRootShapeCollection();
final LineAppearance appearance = new LineAppearance(4, new Color(255,
.getRootShapeCollection();
final LineAppearance appearance = new LineAppearance(4, new Color(255,
@@
-73,7
+72,7
@@
public class SphereDemo {
makeWobblySurface(geometryCollection, 200);
makeWobblySurface(geometryCollection, -200);
makeWobblySurface(geometryCollection, 200);
makeWobblySurface(geometryCollection, -200);
-
context
.getAvatar().setLocation(new Point3D(0, 0, -340));
+
viewPanel
.getAvatar().setLocation(new Point3D(0, 0, -340));
}
}
}
}