/*
- * Sixth 3D engine demos. Copyright ©2012-2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Sixth 3D engine demos. Copyright ©2012-2019, 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
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.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;
public static void main(final String[] args) {
final ViewFrame viewFrame = new ViewFrame();
- final ViewContext context = viewFrame.getViewPanel().getContext();
+ final ViewPanel viewPanel = viewFrame.getViewPanel();
- final ShapeCollection geometryCollection = context
+ final ShapeCollection geometryCollection = viewPanel
.getRootShapeCollection();
final LineAppearance appearance = new LineAppearance(4, new Color(255,
makeWobblySurface(geometryCollection, 200);
makeWobblySurface(geometryCollection, -200);
- context.getAvatar().setLocation(new Point3D(0, 0, -340));
+ viewPanel.getAvatar().setLocation(new Point3D(0, 0, -340));
}
}