BenQ Mobile

javax.microedition.m3g
Class Fog

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

public class Fog
extends Object3D

An Appearance component encapsulating attributes for fogging.


Field Summary
static int EXPONENTIAL
          A parameter to setMode, specifying exponential fog.
static int LINEAR
          A parameter to setMode, specifying linear fog.
 
Constructor Summary
Fog()
          Constructs a new Fog object with default values.
 
Method Summary
 int getColor()
          Retrieves the current color of this Fog.
 float getDensity()
          Retrieves the fog density of exponential fog.
 float getFarDistance()
          Retrieves the linear fog far distance.
 int getMode()
          Retrieves the current fog mode.
 float getNearDistance()
          Retrieves the linear fog near distance.
 void setColor(int RGB)
          Sets the color of this Fog.
 void setDensity(float density)
          Sets the fog density for exponential fog.
 void setLinear(float near, float far)
          Sets the near and far distances for linear fog.
 void setMode(int mode)
          Sets the fog mode to either linear or exponential.
 
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
 

Field Detail

EXPONENTIAL

public static final int EXPONENTIAL
A parameter to setMode, specifying exponential fog.

See Also:
Constant Field Values

LINEAR

public static final int LINEAR
A parameter to setMode, specifying linear fog.

See Also:
Constant Field Values
Constructor Detail

Fog

public Fog()
Constructs a new Fog object with default values.

Method Detail

setMode

public void setMode(int mode)
Sets the fog mode to either linear or exponential.


getMode

public int getMode()
Retrieves the current fog mode.


setLinear

public void setLinear(float near,
                      float far)
Sets the near and far distances for linear fog.


getNearDistance

public float getNearDistance()
Retrieves the linear fog near distance.


getFarDistance

public float getFarDistance()
Retrieves the linear fog far distance.


setDensity

public void setDensity(float density)
Sets the fog density for exponential fog.


getDensity

public float getDensity()
Retrieves the fog density of exponential fog.


setColor

public void setColor(int RGB)
Sets the color of this Fog.


getColor

public int getColor()
Retrieves the current color of this Fog.


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.