|
BenQ Mobile |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.microedition.m3g.Graphics3D
A singleton 3D graphics context that can be bound to a rendering target. All rendering is done through the render methods in this class, including the rendering of World objects. There is no other way to draw anything in this API.
Field Summary | |
static int |
ANTIALIAS
A parameter to bindTarget, specifying that antialiasing should be turned on. |
static int |
DITHER
A parameter to bindTarget, specifying that dithering should be turned on. |
static int |
TRUE_COLOR
A parameter to bindTarget, specifying that true color rendering should be turned on. |
Method Summary | |
int |
addLight(Light light,
Transform transform)
Binds a Light to use in subsequent immediate mode rendering. |
void |
bindTarget(java.lang.Object target)
Binds the given Graphics or mutable Image2D as the rendering target of this Graphics3D. |
void |
bindTarget(java.lang.Object target,
boolean depthBuffer,
int hints)
Binds the given Graphics or mutable Image2D as the rendering target of this Graphics3D. |
void |
clear(Background background)
Clears the viewport as specified in the given Background object. |
static Graphics3D |
getInstance()
Retrieves the singleton Graphics3D instance that is associated with this application. |
static java.util.Hashtable |
getProperties()
Retrieves implementation specific properties. |
void |
releaseTarget()
Flushes the rendered 3D image to the currently bound target and then releases the target. |
void |
render(Node node,
Transform transform)
Renders the given Sprite3D, Mesh, or Group node with the given transformation from local coordinates to world coordinates. |
void |
render(VertexBuffer vertices,
IndexBuffer triangles,
Appearance appearance,
Transform transform)
Renders the given submesh with the given transformation from local coordinates to world coordinates. |
void |
render(VertexBuffer vertices,
IndexBuffer triangles,
Appearance appearance,
Transform transform,
int scope)
Renders the given submesh with the given scope and the given transformation from local coordinates to world coordinates. |
void |
render(World world)
Renders an image of world as viewed by the active camera of that World. |
void |
resetLights()
Clears the array of current Lights. |
void |
setCamera(Camera camera,
Transform transform)
Sets the Camera to use in subsequent immediate mode rendering. |
void |
setDepthRange(float near,
float far)
Specifies the mapping of depth values from normalized device coordinates to window coordinates. |
void |
setLight(int index,
Light light,
Transform transform)
Binds or unbinds a Light for subsequent immediate mode rendering. |
void |
setViewport(int x,
int y,
int width,
int height)
Specifies a rectangular viewport on the currently bound rendering target. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ANTIALIAS
public static final int DITHER
public static final int TRUE_COLOR
Method Detail |
public static final Graphics3D getInstance()
public void bindTarget(java.lang.Object target)
public void bindTarget(java.lang.Object target, boolean depthBuffer, int hints)
public void releaseTarget()
public void setViewport(int x, int y, int width, int height)
public void setDepthRange(float near, float far)
public void clear(Background background)
public void render(World world)
public void render(Node node, Transform transform)
public void render(VertexBuffer vertices, IndexBuffer triangles, Appearance appearance, Transform transform, int scope)
public void render(VertexBuffer vertices, IndexBuffer triangles, Appearance appearance, Transform transform)
public void setCamera(Camera camera, Transform transform)
public void setLight(int index, Light light, Transform transform)
public int addLight(Light light, Transform transform)
public void resetLights()
public static final java.util.Hashtable getProperties()
|
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. |