projects
/
sixth-3d.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactoring.
[sixth-3d.git]
/
src
/
main
/
java
/
eu
/
svjatoslav
/
sixth
/
e3d
/
renderer
/
raster
/
shapes
/
basic
/
ForwardOrientedTexture.java
diff --git
a/src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/shapes/basic/ForwardOrientedTexture.java
b/src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/shapes/basic/ForwardOrientedTexture.java
index
49af48c
..
4d2bb1f
100644
(file)
--- a/
src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/shapes/basic/ForwardOrientedTexture.java
+++ b/
src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/shapes/basic/ForwardOrientedTexture.java
@@
-1,10
+1,10
@@
/*
/*
- * Sixth - System for data storage, computation, exploration and interaction.
- * Copyright ©2012-2016, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- *
+ * Sixth 3D engine. 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.
+ *
*/
package eu.svjatoslav.sixth.e3d.renderer.raster.shapes.basic;
*/
package eu.svjatoslav.sixth.e3d.renderer.raster.shapes.basic;
@@
-18,7
+18,7
@@
import eu.svjatoslav.sixth.e3d.renderer.raster.texture.TextureBitmap;
public class ForwardOrientedTexture extends AbstractCoordinateShape {
public class ForwardOrientedTexture extends AbstractCoordinateShape {
- p
ublic
static final double SIZE_MULTIPLIER = 0.005;
+ p
rivate
static final double SIZE_MULTIPLIER = 0.005;
public Texture texture;
private double scale;
public Texture texture;
private double scale;
@@
-78,7
+78,7
@@
public class ForwardOrientedTexture extends AbstractCoordinateShape {
if (xEnd > targetRenderingArea.width)
xEnd = targetRenderingArea.width;
if (xEnd > targetRenderingArea.width)
xEnd = targetRenderingArea.width;
- final byte[] targetRenderingAreaBytes = targetRenderingArea.
byte
s;
+ final byte[] targetRenderingAreaBytes = targetRenderingArea.
pixel
s;
final int textureWidth = textureBitmap.width;
final int textureWidth = textureBitmap.width;
@@
-105,4
+105,8
@@
public class ForwardOrientedTexture extends AbstractCoordinateShape {
this.scale = scale * SIZE_MULTIPLIER;
}
this.scale = scale * SIZE_MULTIPLIER;
}
+ public Point3D getLocation() {
+ return coordinates[0].coordinate;
+ }
+
}
}