com.sygem.jazz3d3
Class RenderTexturedHQ

java.lang.Object
  extended bycom.sygem.jazz3d3.Render
      extended bycom.sygem.jazz3d3.RenderTextured
          extended bycom.sygem.jazz3d3.RenderTexturedHQ
Direct Known Subclasses:
RenderMultiTextured

public class RenderTexturedHQ
extends RenderTextured

Renderer that provides HighQuality texture-mapping. This means the ability to use environment-mapping, transparency and bilinear filtering.

Version:
3.0a

Field Summary
 
Fields inherited from class com.sygem.jazz3d3.Render
FLAT, GOURAUD, IMAGE, LINE, NOSHADE, PARTICLE
 
Constructor Summary
RenderTexturedHQ()
          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.RenderTextured
isPerspectiveCorrect, setPerspectiveCorrect, setTexture, setTexture, wrapUV
 
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

RenderTexturedHQ

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

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

cloneRenderer

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

Overrides:
cloneRenderer in class RenderTextured

read

public void read(java.io.FileInputStream reader)
          throws java.io.IOException
Overrides:
read in class RenderTextured
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
Overrides:
write in class RenderTextured
Throws:
java.io.IOException


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