/*
- * Sixth 3D engine. Copyright ©2012-2016, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Sixth 3D engine. 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
public class ForwardOrientedTexture extends AbstractCoordinateShape {
- public static final double SIZE_MULTIPLIER = 0.005;
- public Texture texture;
+ private static final double SIZE_MULTIPLIER = 0.005;
+ public final Texture texture;
private double scale;
public ForwardOrientedTexture(final Point3D point, final double scale,
if (xEnd > targetRenderingArea.width)
xEnd = targetRenderingArea.width;
- final byte[] targetRenderingAreaBytes = targetRenderingArea.bytes;
+ final byte[] targetRenderingAreaBytes = targetRenderingArea.pixels;
final int textureWidth = textureBitmap.width;
this.scale = scale * SIZE_MULTIPLIER;
}
+ public Point3D getLocation() {
+ return coordinates[0].coordinate;
+ }
+
}