BenQ Mobile

javax.microedition.m3g
Class Appearance

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

public class Appearance
extends Object3D

A set of component objects that define the rendering attributes of a Mesh or Sprite3D.


Constructor Summary
Appearance()
          Constructs an Appearance object with default values.
 
Method Summary
 CompositingMode getCompositingMode()
          Returns the current CompositingMode for this Appearance.
 Fog getFog()
          Returns the current fogging attributes for this Appearance.
 int getLayer()
          Gets the current rendering layer for this Appearance.
 Material getMaterial()
          Returns the current Material for this Appearance.
 PolygonMode getPolygonMode()
          Returns the current PolygonMode for this Appearance.
 Texture2D getTexture(int index)
          Retrieves the current texture image and its attributes for the given texturing unit.
 void setCompositingMode(CompositingMode compositingMode)
          Sets the CompositingMode to use for this Appearance.
 void setFog(Fog fog)
          Sets the fogging attributes to use for this Appearance.
 void setLayer(int layer)
          Sets the rendering layer for this Appearance.
 void setMaterial(Material material)
          Sets the Material to use when lighting this Appearance.
 void setPolygonMode(PolygonMode polygonMode)
          Sets the PolygonMode to use for this Appearance.
 void setTexture(int index, Texture2D texture)
          Sets the texture image and its attributes for the given 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

Appearance

public Appearance()
Constructs an Appearance object with default values.

Method Detail

setLayer

public void setLayer(int layer)
Sets the rendering layer for this Appearance.


getLayer

public int getLayer()
Gets the current rendering layer for this Appearance.


setFog

public void setFog(Fog fog)
Sets the fogging attributes to use for this Appearance.


getFog

public Fog getFog()
Returns the current fogging attributes for this Appearance.


setPolygonMode

public void setPolygonMode(PolygonMode polygonMode)
Sets the PolygonMode to use for this Appearance.


getPolygonMode

public PolygonMode getPolygonMode()
Returns the current PolygonMode for this Appearance.


setCompositingMode

public void setCompositingMode(CompositingMode compositingMode)
Sets the CompositingMode to use for this Appearance.


getCompositingMode

public CompositingMode getCompositingMode()
Returns the current CompositingMode for this Appearance.


setTexture

public void setTexture(int index,
                       Texture2D texture)
Sets the texture image and its attributes for the given texturing unit.


getTexture

public Texture2D getTexture(int index)
Retrieves the current texture image and its attributes for the given texturing unit.


setMaterial

public void setMaterial(Material material)
Sets the Material to use when lighting this Appearance.


getMaterial

public Material getMaterial()
Returns the current Material for this Appearance.


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.