Example usage for javax.media.j3d QuadArray setTextureCoordinates

List of usage examples for javax.media.j3d QuadArray setTextureCoordinates

Introduction

In this page you can find the example usage for javax.media.j3d QuadArray setTextureCoordinates.

Prototype

public void setTextureCoordinates(int index, float texCoords[]) 

Source Link

Usage

From source file:Drag.java

public Cube(Appearance appearance) {

    QuadArray quadArray = new QuadArray(24,
            QuadArray.COORDINATES | QuadArray.NORMALS | QuadArray.TEXTURE_COORDINATE_2);
    quadArray.setCoordinates(0, verts);// w  w  w .  ja  va 2 s .  co  m
    quadArray.setNormals(0, normals);
    quadArray.setTextureCoordinates(0, textCoords);

    shape3D = new Shape3D(quadArray, appearance);
}