com.sygem.jazz3d3
Class RenderSolid
java.lang.Object
|
+--com.sygem.jazz3d3.Render
|
+--com.sygem.jazz3d3.RenderSolid
- public class RenderSolid
- extends Render
Renderer that provides the ability to draw
Solid objects. Also supports environment
mapping.
- Version:
- 3.0a
- Author:
- SyGem Software
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RenderSolid
public RenderSolid()
- Default constructor. Initial rendering mode is FLAT.
- See Also:
Render.FLAT
,
Render.GOURAUD
setReflectivity
public final void setReflectivity(double d)
- Set the reflectiveness of the object - i.e. how much
of the environment map will be mixed with the colour
of the actual face. The bigger the number (between 0
and 1), the more reflective it is.
- Parameters:
d
- The reflectiveness
setEnvMapping
public final void setEnvMapping(boolean envmap)
- Turn on/off environment mapping
- Parameters:
envmap
- True if envrironment mapping is to be used, false if not
setEnvironmentMap
public final int setEnvironmentMap(Texture tex)
- Load a texture for use with environment mapping.
- Parameters:
tex
- A Texture- Returns:
- An integer, to be used with animated textures later
- See Also:
setEnvironmentMap(int)
setEnvironmentMap
public final void setEnvironmentMap(int i)
- Set the texture to use for environment mapping
- Parameters:
i
- A texture id- See Also:
setEnvironmentMap(Texture)
setTransparency
public final void setTransparency(double i)
- Sets the transparency of the renderer. This is a
value between 0 and 1 - the bigger the number,
the more transparent the object is.
- Parameters:
i
- The transparency
cloneRenderer
public Render cloneRenderer()
- Returns a copy of the current renderer. All fields are copied across.
- Overrides:
cloneRenderer
in class Render