BenQ Mobile

javax.microedition.m3g
Class VertexArray

java.lang.Object
  extended byjavax.microedition.m3g.Object3D
      extended byjavax.microedition.m3g.VertexArray

public class VertexArray
extends Object3D

An array of integer vectors representing vertex positions, normals, colors, or texture coordinates.


Constructor Summary
VertexArray(int numVertices, int numComponents, int componentSize)
          Constructs a new VertexArray with the given dimensions.
 
Method Summary
 void set(int firstVertex, int numVertices, byte[] values)
          Copies in an array of 8-bit vertex attributes.
 void set(int firstVertex, int numVertices, short[] values)
          Copies in an array of 16-bit vertex attributes.
 
Methods inherited from class javax.microedition.m3g.Object3D
addAnimationTrack, animate, duplicate, find, getAnimationTrack, getAnimationTrackCount, getReferences, getUserID, getUserObject, removeAnimationTrack, setUserID, setUserObject
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VertexArray

public VertexArray(int numVertices,
                   int numComponents,
                   int componentSize)
Constructs a new VertexArray with the given dimensions.

Method Detail

set

public void set(int firstVertex,
                int numVertices,
                short[] values)
Copies in an array of 16-bit vertex attributes.


set

public void set(int firstVertex,
                int numVertices,
                byte[] values)
Copies in an array of 8-bit vertex attributes.


BenQ Mobile

Copyright © 2006 BenQ Mobile GmbH & Co. OHG or respective copyright owner.
All Rights Reserved.
BenQ Corp. is a trademark licensee of Siemens AG.


For further information about Mobility Toolkit (MTK) visit our Developer Portal.