Class QuadMeshBuilder
Class QuadMeshBuilder
- java.lang.Object
-
- com.here.NativeBase
-
- com.here.sdk.mapview.MeshBuilder
-
- com.here.sdk.mapview.QuadMeshBuilder
-
public final class QuadMeshBuilder extends MeshBuilder
Builder for a single quad.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MeshBuilderwithTextureCoordinates(Anchor2D a, Anchor2D b, Anchor2D c, Anchor2D d)Adds texture coordinates to a quad.-
Methods inherited from class com.here.sdk.mapview.MeshBuilder
build, quad, triangle
-
-
-
-
Method Detail
-
withTextureCoordinates
@NonNull public MeshBuilder withTextureCoordinates(@NonNull Anchor2D a, @NonNull Anchor2D b, @NonNull Anchor2D c, @NonNull Anchor2D d)
Adds texture coordinates to a quad. Coordinates are specified as
<u,v>with<0,0>representing the bottom-left and<1,1>upper-right corner.- Parameters:
a-Texture coordinate for vertex a. See
MeshBuilder.quad(com.here.sdk.core.Point3D, com.here.sdk.core.Point3D, com.here.sdk.core.Point3D, com.here.sdk.core.Point3D)b-Texture coordinate for vertex b. See
MeshBuilder.quad(com.here.sdk.core.Point3D, com.here.sdk.core.Point3D, com.here.sdk.core.Point3D, com.here.sdk.core.Point3D)c-Texture coordinate for vertex c. See
MeshBuilder.quad(com.here.sdk.core.Point3D, com.here.sdk.core.Point3D, com.here.sdk.core.Point3D, com.here.sdk.core.Point3D)d-Texture coordinate for vertex d. See
MeshBuilder.quad(com.here.sdk.core.Point3D, com.here.sdk.core.Point3D, com.here.sdk.core.Point3D, com.here.sdk.core.Point3D)- Returns:
A
MeshBuilderinstance.
-
-