Jazz3D API


com.sygem.jazz3d3
Class RenderTexturedHQ

java.lang.Object
  |
  +--com.sygem.jazz3d3.Render
        |
        +--com.sygem.jazz3d3.RenderTextured
              |
              +--com.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
Author:
SyGem Software

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 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.
 
Methods inherited from class com.sygem.jazz3d3.RenderTextured
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

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 RenderTextured

©2001 SyGem Software