Class dnx.ice.DNXRendGraphics3D
All Packages Class Hierarchy This Package Previous Next Index
Class dnx.ice.DNXRendGraphics3D
java.lang.Object
|
+----dnx.ice.Graphics3D
|
+----dnx.ice.DNXRendGraphics3D
- public class DNXRendGraphics3D
- extends Graphics3D
A Graphics3D object encapsulates a framebuffer and state used in 3D rendering.
It is a fairly low-level interface to whatever native 3D graphics system
a platform provides.
-
accumLoad(float)
- Similar to accumulate, except that the values in the accumulation
buffer are replaced with the contents of the color buffer
multiplied by value.
-
accumMult(float)
- Multiply the contents of the accumulation buffer by value.
-
accumReturn(float)
- Multiply the contents of the accumulation buffer by value and
load them into the color buffer.
-
accumulate(float)
- Multiply the contents of the color buffer by value and add
to the accumulation buffer.
-
beginRendering()
- beginRendering must be called before rendering models.
-
clear(int)
- Clear one or more buffers; the buffers parameter
specifies which buffers will be cleared.
-
concatModelMatrix(Matrix4)
- Push the product of a matrix and the current model matrix onto the stack
-
copyBuffers(Graphics3D, int)
- Copy buffers from one viewport to another.
-
copyRect(Rectangle, int, int)
-
-
disableBackfaceCulling()
- Disable back face culling.
-
disableFeature(int)
-
-
disableTwoSidedLighting()
- Disable two-sided lighting.
-
doSetClearColor(int)
-
-
drawImage()
-
-
drawRect(Rectangle, Color)
-
-
drawRect(Rectangle, Color, float)
-
-
enableBackfaceCulling()
- Enable back face culling.
-
enableFeature(int)
-
-
enableTwoSidedLighting()
- Enable two-sided lighting calculations.
-
endRendering()
- endRendering must be called after all models have been rendered
and before paint is called.
-
finalize()
-
-
getModelMatrix(Matrix4)
- Load the current model matrix into m.
-
getTextureMatrix(Matrix4)
- Load the current texture matrix into m.
-
loadModelMatrix(Matrix4)
- Push a transformation onto the model matrix stack.
-
loadTextureMatrix(Matrix4)
- Push a transformation onto the texture transformation stack.
-
location()
-
-
paint(Graphics, int, int)
-
-
popLight()
- Remove the top light off the light stack.
-
popModelMatrix()
- Pop a transformation off the model transformation stack.
-
pushLight(Light)
- Push a light onto the light stack.
-
rayPick(Model, Ray3, PickResult)
-
-
render(Model)
- Render a model.
-
resetLights()
- Remove all lights from the stack.
-
resetModelMatrix()
- Pop all model transformations off the stack and set the current
model transformation to the identity.
-
resize(Dimension)
- Resize to the specified dimension
-
resize(int, int)
- Resize to the specified height and width
-
rotateModel(float, float, float, float)
- Rotate the model by angle radians about the axis [ ax, ay, az]
-
rotateModel(Quaternion)
-
-
scaleModel(float)
- Scale the model uniformly on all axes
-
scaleModel(float, float, float)
- Scale the model
-
setClearColor(Color)
- Set the color to which the color buffer will be cleared when the clear
method is invoked.
-
setClearColor(float, float, float)
- Set the color to which the color buffer will be cleared when the clear
method is invoked.
-
setClearDepth(float)
- Set the depth to which the depth buffer will be cleared when the clear
method is invoked.
-
setColorBufferMask(int)
-
-
setDepthBufferMask(int)
- Enable or disable reading from or writing to the depth buffer.
-
setFog(Fog)
- Set the type of fog (i.e.
-
setMaterial(Material)
- Set the current material
-
setModelRenderMode(int)
-
-
setModifiedMaterialColor(int)
- Set the material component which will be modified by
per-vertex and per-face colors in models.
-
setProjection(Projection)
- Set the camera projection
-
setShadeMode(int)
- Set the shade mode.
-
setTextureBlendMode(int)
-
-
setTextureCoordinateGeneration(TextureCoordinateGenerator)
- Set the rules for automatically generating texture coordinates
-
setTextureFilter(int)
-
-
setTextureWrapping(boolean, boolean)
-
-
size()
- Return the dimensions
-
translateModel(float, float, float)
- Translate the model
-
useTexture(Texture)
- Set the texture to be used when rendering models containing texture
coordinates.
paint
public void paint(Graphics g,
int x,
int y)
- Overrides:
- paint in class Graphics3D
beginRendering
public void beginRendering()
- beginRendering must be called before rendering models.
- Overrides:
- beginRendering in class Graphics3D
endRendering
public void endRendering()
- endRendering must be called after all models have been rendered
and before paint is called.
- Overrides:
- endRendering in class Graphics3D
render
public void render(Model model)
- Render a model.
- Overrides:
- render in class Graphics3D
rayPick
public boolean rayPick(Model model,
Ray3 ray,
PickResult result)
- Overrides:
- rayPick in class Graphics3D
size
public Dimension size()
- Return the dimensions
- Overrides:
- size in class Graphics3D
location
public Point location()
- Overrides:
- location in class Graphics3D
resize
public void resize(Dimension d)
- Resize to the specified dimension
- Overrides:
- resize in class Graphics3D
resize
public void resize(int width,
int height)
- Resize to the specified height and width
- Overrides:
- resize in class Graphics3D
concatModelMatrix
public void concatModelMatrix(Matrix4 m)
- Push the product of a matrix and the current model matrix onto the stack
- Overrides:
- concatModelMatrix in class Graphics3D
loadModelMatrix
public void loadModelMatrix(Matrix4 m)
- Push a transformation onto the model matrix stack.
- Overrides:
- loadModelMatrix in class Graphics3D
popModelMatrix
public void popModelMatrix()
- Pop a transformation off the model transformation stack.
- Overrides:
- popModelMatrix in class Graphics3D
translateModel
public void translateModel(float tx,
float ty,
float tz)
- Translate the model
- Overrides:
- translateModel in class Graphics3D
scaleModel
public void scaleModel(float sx,
float sy,
float sz)
- Scale the model
- Overrides:
- scaleModel in class Graphics3D
scaleModel
public void scaleModel(float s)
- Scale the model uniformly on all axes
- Overrides:
- scaleModel in class Graphics3D
rotateModel
public void rotateModel(float ax,
float ay,
float az,
float angle)
- Rotate the model by angle radians about the axis [ ax, ay, az]
- Overrides:
- rotateModel in class Graphics3D
rotateModel
public void rotateModel(Quaternion q)
- Overrides:
- rotateModel in class Graphics3D
resetModelMatrix
public void resetModelMatrix()
- Pop all model transformations off the stack and set the current
model transformation to the identity.
- Overrides:
- resetModelMatrix in class Graphics3D
loadTextureMatrix
public void loadTextureMatrix(Matrix4 m)
- Push a transformation onto the texture transformation stack.
- Overrides:
- loadTextureMatrix in class Graphics3D
getModelMatrix
public void getModelMatrix(Matrix4 m)
- Load the current model matrix into m.
- Overrides:
- getModelMatrix in class Graphics3D
getTextureMatrix
public void getTextureMatrix(Matrix4 m)
- Load the current texture matrix into m.
- Overrides:
- getTextureMatrix in class Graphics3D
setModelRenderMode
public void setModelRenderMode(int renderMode)
- Overrides:
- setModelRenderMode in class Graphics3D
setProjection
public void setProjection(Projection p)
- Set the camera projection
- Overrides:
- setProjection in class Graphics3D
setMaterial
public void setMaterial(Material m)
- Set the current material
- Overrides:
- setMaterial in class Graphics3D
setModifiedMaterialColor
public void setModifiedMaterialColor(int color)
- Set the material component which will be modified by
per-vertex and per-face colors in models.
- Overrides:
- setModifiedMaterialColor in class Graphics3D
pushLight
public void pushLight(Light l)
- Push a light onto the light stack.
- Overrides:
- pushLight in class Graphics3D
- See Also:
- DirectionalLight, PointLight, SpotLight
popLight
public void popLight()
- Remove the top light off the light stack.
- Overrides:
- popLight in class Graphics3D
resetLights
public void resetLights()
- Remove all lights from the stack.
- Overrides:
- resetLights in class Graphics3D
setFog
public void setFog(Fog f)
- Set the type of fog (i.e. how colors are attenuated as distance from
the viewer increases.) If the argument is null, fog is turned off.
- Overrides:
- setFog in class Graphics3D
setShadeMode
public void setShadeMode(int shadeMode)
- Set the shade mode.
- Overrides:
- setShadeMode in class Graphics3D
enableFeature
public void enableFeature(int feature)
- Overrides:
- enableFeature in class Graphics3D
disableFeature
public void disableFeature(int feature)
- Overrides:
- disableFeature in class Graphics3D
setTextureBlendMode
public void setTextureBlendMode(int blendMode)
- Overrides:
- setTextureBlendMode in class Graphics3D
setTextureWrapping
public void setTextureWrapping(boolean wrapU,
boolean wrapV)
- Overrides:
- setTextureWrapping in class Graphics3D
setTextureFilter
public void setTextureFilter(int filter)
- Overrides:
- setTextureFilter in class Graphics3D
setTextureCoordinateGeneration
public void setTextureCoordinateGeneration(TextureCoordinateGenerator gen)
- Set the rules for automatically generating texture coordinates
- Overrides:
- setTextureCoordinateGeneration in class Graphics3D
useTexture
public void useTexture(Texture t)
- Set the texture to be used when rendering models containing texture
coordinates.
- Overrides:
- useTexture in class Graphics3D
setDepthBufferMask
public void setDepthBufferMask(int mask)
- Enable or disable reading from or writing to the depth buffer. This
has no effect if a graphics context has no depth buffer.
- Overrides:
- setDepthBufferMask in class Graphics3D
setColorBufferMask
public void setColorBufferMask(int mask)
- Overrides:
- setColorBufferMask in class Graphics3D
drawRect
public void drawRect(Rectangle r,
Color c)
- Overrides:
- drawRect in class Graphics3D
drawRect
public void drawRect(Rectangle r,
Color c,
float opacity)
- Overrides:
- drawRect in class Graphics3D
copyRect
public void copyRect(Rectangle src,
int x,
int y)
- Overrides:
- copyRect in class Graphics3D
drawImage
public void drawImage()
- Overrides:
- drawImage in class Graphics3D
copyBuffers
public void copyBuffers(Graphics3D g,
int buffers)
- Copy buffers from one viewport to another.
- Overrides:
- copyBuffers in class Graphics3D
setClearColor
public void setClearColor(Color c)
- Set the color to which the color buffer will be cleared when the clear
method is invoked.
- Overrides:
- setClearColor in class Graphics3D
setClearColor
public void setClearColor(float r,
float g,
float b)
- Set the color to which the color buffer will be cleared when the clear
method is invoked.
doSetClearColor
public void doSetClearColor(int color)
setClearDepth
public void setClearDepth(float depth)
- Set the depth to which the depth buffer will be cleared when the clear
method is invoked.
- Overrides:
- setClearDepth in class Graphics3D
clear
public void clear(int buffers)
- Clear one or more buffers; the buffers parameter
specifies which buffers will be cleared.
- Overrides:
- clear in class Graphics3D
enableTwoSidedLighting
public void enableTwoSidedLighting()
- Enable two-sided lighting calculations. Surface normals of back
facing polygons will be inverted for lighting calculations.
- Overrides:
- enableTwoSidedLighting in class Graphics3D
disableTwoSidedLighting
public void disableTwoSidedLighting()
- Disable two-sided lighting.
- Overrides:
- disableTwoSidedLighting in class Graphics3D
enableBackfaceCulling
public void enableBackfaceCulling()
- Enable back face culling. Back facing polygons will not be rendered.
Turning on back face culling can speed up rendering significantly, although
models which aren't 'solid' or which have inconsistently ordered polygons
will not be rendered correctly.
- Overrides:
- enableBackfaceCulling in class Graphics3D
disableBackfaceCulling
public void disableBackfaceCulling()
- Disable back face culling.
- Overrides:
- disableBackfaceCulling in class Graphics3D
accumulate
public void accumulate(float value)
- Multiply the contents of the color buffer by value and add
to the accumulation buffer. For this and all other
accumulation buffer operations, float is clamped to
[0, 1]. Accumulation has no effect if the Graphics3D has
no accumulation buffer.
- Overrides:
- accumulate in class Graphics3D
accumLoad
public void accumLoad(float value)
- Similar to accumulate, except that the values in the accumulation
buffer are replaced with the contents of the color buffer
multiplied by value.
- Overrides:
- accumLoad in class Graphics3D
accumReturn
public void accumReturn(float value)
- Multiply the contents of the accumulation buffer by value and
load them into the color buffer.
- Overrides:
- accumReturn in class Graphics3D
accumMult
public void accumMult(float value)
- Multiply the contents of the accumulation buffer by value.
- Overrides:
- accumMult in class Graphics3D
finalize
public void finalize()
- Overrides:
- finalize in class Object
All Packages Class Hierarchy This Package Previous Next Index