|
BenQ Mobile |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.microedition.m3g.Object3D
javax.microedition.m3g.VertexBuffer
VertexBuffer holds references to VertexArrays that contain the positions, colors, normals, and texture coordinates for a set of vertices.
Constructor Summary | |
VertexBuffer()
Constructs an empty vertex buffer, with all vertex attributes set to null. |
Method Summary | |
VertexArray |
getColors()
Gets the current color array, or null if per-vertex colors are not set. |
int |
getDefaultColor()
Retrieves the default color of this VertexBuffer. |
VertexArray |
getNormals()
Gets the current normal vector array, or null if normals are not set. |
VertexArray |
getPositions(float[] scaleBias)
Returns the current vertex position array, or null if positions are not set. |
VertexArray |
getTexCoords(int index,
float[] scaleBias)
Gets the current texture coordinate array for the specified texturing unit, or null if texture coordinates for that unit are not set. |
int |
getVertexCount()
Retrieves the current number of vertices in this VertexBuffer. |
void |
setColors(VertexArray colors)
Sets the per-vertex colors for this VertexBuffer. |
void |
setDefaultColor(int ARGB)
Sets the color to use in absence of per-vertex colors. |
void |
setNormals(VertexArray normals)
Sets the normal vectors for this VertexBuffer. |
void |
setPositions(VertexArray positions,
float scale,
float[] bias)
Sets the vertex positions for this VertexBuffer. |
void |
setTexCoords(int index,
VertexArray texCoords,
float scale,
float[] bias)
Sets the texture coordinates for the specified texturing unit. |
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 |
public VertexBuffer()
Method Detail |
public int getVertexCount()
public void setPositions(VertexArray positions, float scale, float[] bias)
public void setTexCoords(int index, VertexArray texCoords, float scale, float[] bias)
public void setNormals(VertexArray normals)
public void setColors(VertexArray colors)
public VertexArray getPositions(float[] scaleBias)
public VertexArray getTexCoords(int index, float[] scaleBias)
public VertexArray getNormals()
public VertexArray getColors()
public void setDefaultColor(int ARGB)
public int getDefaultColor()
|
BenQ Mobile |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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. |