org.deegree.rendering.r3d.opengl.tesselation
Class TexturedVertex
java.lang.Object
org.deegree.rendering.r3d.opengl.tesselation.Vertex
org.deegree.rendering.r3d.opengl.tesselation.TexturedVertex
public class TexturedVertex
- extends Vertex
The TexturedVertex a textured vertex.
- Version:
- $Revision: 18171 $, $Date: 2009-06-17 16:00:07 +0200 (Mi, 17 Jun 2009) $
- Author:
- Rutger Bezema, last edited by: $Author: mschneider $
|
Field Summary |
(package private) float |
tex_u
|
(package private) float |
tex_v
|
| Fields inherited from class org.deegree.rendering.r3d.opengl.tesselation.Vertex |
normal, x, y, z |
|
Constructor Summary |
TexturedVertex(double[] coordinates,
TexturedVertex[] otherVertices,
float[] weights)
Construct a textured vertex and calculate it's values from the given vertices |
TexturedVertex(float[] coordinates,
float[] textureCoordinates)
Construct a textured vertex with a white color and a 1,0,0 normal. |
TexturedVertex(float[] coordinates,
float[] normal,
float[] textureCoordinates)
Construct a textured vertex with given color and normal. |
tex_u
float tex_u
tex_v
float tex_v
TexturedVertex
TexturedVertex(double[] coordinates,
TexturedVertex[] otherVertices,
float[] weights)
- Construct a textured vertex and calculate it's values from the given vertices
- Parameters:
coordinates - of the vertex may not be null and must have a length of 3
TexturedVertex
TexturedVertex(float[] coordinates,
float[] textureCoordinates)
- Construct a textured vertex with a white color and a 1,0,0 normal.
- Parameters:
coordinates - of the vertex may not be null and must have a length of 3textureCoordinates - of the vertex may not be null and must have a length of 2
TexturedVertex
public TexturedVertex(float[] coordinates,
float[] normal,
float[] textureCoordinates)
- Construct a textured vertex with given color and normal.
- Parameters:
coordinates - of the vertex may not be null and must have a length of 3normal - if null 1,0,0 will be used.textureCoordinates - of the vertex may not be null and must have a length of 2
getTextureCoords
public float[] getTextureCoords()
- Returns:
- the u and v (x,y) texture coordinates of this vertex.
toString
public String toString()
- Overrides:
toString in class Vertex
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org]]>