com.sygem.jazz3d3
Class RenderSolid

java.lang.Object
  extended bycom.sygem.jazz3d3.Render
      extended bycom.sygem.jazz3d3.RenderSolid

public class RenderSolid
extends Render

Renderer that provides the ability to draw Solid objects. Also supports environment mapping.

Version:
3.0a

Field Summary
 
Fields inherited from class com.sygem.jazz3d3.Render
FLAT, GOURAUD, IMAGE, LINE, NOSHADE, PARTICLE
 
Constructor Summary
RenderSolid()
          Default constructor.
 
Method Summary
 Render cloneRenderer()
          Returns a copy of the current renderer.
 void read(java.io.FileInputStream reader)
           
 void setEnvironmentMap(int i)
          Set the texture to use for environment mapping
 int setEnvironmentMap(Texture tex)
          Load a texture for use with environment mapping.
 void setEnvMapping(boolean envmap)
          Turn on/off environment mapping
 void setReflectivity(double d)
          Set the reflectiveness of the object - i.e.
 void setTransparency(double i)
          Sets the transparency of the renderer.
 void write(java.io.FileOutputStream writer)
           
 
Methods inherited from class com.sygem.jazz3d3.Render
getDrawingMode, setDrawingMode
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenderSolid

public RenderSolid()
Default constructor. Initial rendering mode is FLAT.

See Also:
Render.FLAT, Render.GOURAUD
Method Detail

cloneRenderer

public Render cloneRenderer()
Returns a copy of the current renderer. All fields are copied across.

Specified by:
cloneRenderer in class Render

read

public void read(java.io.FileInputStream reader)
          throws java.io.IOException
Specified by:
read in class Render
Throws:
java.io.IOException

setEnvironmentMap

public final void setEnvironmentMap(int i)
Set the texture to use for environment mapping

Parameters:
i - A texture id
See Also:
setEnvironmentMap(Texture)

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)

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

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

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

write

public void write(java.io.FileOutputStream writer)
           throws java.io.IOException
Specified by:
write in class Render
Throws:
java.io.IOException


Copyright © 1999-2006 SyGem Software. All Rights Reserved.