package eu.svjatoslav.sixth.e3d.examples;
import eu.svjatoslav.sixth.e3d.geometry.Point3D;
+import eu.svjatoslav.sixth.e3d.gui.ViewPanel;
import eu.svjatoslav.sixth.e3d.math.Transform;
-import eu.svjatoslav.sixth.e3d.gui.ViewContext;
import eu.svjatoslav.sixth.e3d.gui.ViewFrame;
import eu.svjatoslav.sixth.e3d.gui.ViewRenderListener;
import eu.svjatoslav.sixth.e3d.renderer.raster.Color;
}
@Override
- public boolean beforeRender(final ViewContext viewContext,
+ public boolean beforeRender(final ViewPanel viewPanel,
final int millisecondsSinceLastFrame) {
- final Collection<AbstractShape> shapes = viewContext
+ final Collection<AbstractShape> shapes = viewPanel
.getRootShapeCollection().getShapes();
final double translateAmount = millisecondsSinceLastFrame / 50d;
return true;
}
- private void run() throws IOException {
+ private void run() {
final ViewFrame viewFrame = new ViewFrame();
final ShapeCollection geometryCollection = viewFrame.getViewPanel()
- .getContext().getRootShapeCollection();
+ .getRootShapeCollection();
Random random = new Random();