com.sygem.jazz3d3
Class RenderMultiTextured

java.lang.Object
  extended bycom.sygem.jazz3d3.Render
      extended bycom.sygem.jazz3d3.RenderTextured
          extended bycom.sygem.jazz3d3.RenderTexturedHQ
              extended bycom.sygem.jazz3d3.RenderMultiTextured

public class RenderMultiTextured
extends RenderTexturedHQ

Renderer that provides the ability to use 2 textures per face.

Version:
3.0a

Field Summary
static int ADD
          Additive multi-texturing - places one texture above another, using the texture's transparency.
static int MIX
          Mixed multi-texturing - mixes the 2 textures
 
Fields inherited from class com.sygem.jazz3d3.Render
FLAT, GOURAUD, IMAGE, LINE, NOSHADE, PARTICLE
 
Constructor Summary
RenderMultiTextured()
          Default constructor
 
Method Summary
 Render cloneRenderer()
          Returns a copy of the current renderer.
 void read(java.io.FileInputStream reader)
           
 void setMixAmount(double mixer)
          Sets the amount of the base texture to mix.
 void setMode(int i)
          Set the multi-texturing mode
 void setTextureBank1(int i)
          For animated textures - set the base texture to one previously loaded using setTextureBank1
 int setTextureBank1(Texture tex)
          Load a base texture
 void setTextureBank2(int i)
          For animated textures - set the top texture to one previously loaded using setTextureBank2
 int setTextureBank2(Texture tex)
          Load a top-level texture
 void write(java.io.FileOutputStream writer)
           
 
Methods inherited from class com.sygem.jazz3d3.RenderTexturedHQ
setEnvironmentMap, setEnvironmentMap, setEnvMapping, setReflectivity, setTransparency
 
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
 

Field Detail

ADD

public static final int ADD
Additive multi-texturing - places one texture above another, using the texture's transparency.

See Also:
Texture.setTransparentColour(int), Constant Field Values

MIX

public static final int MIX
Mixed multi-texturing - mixes the 2 textures

See Also:
Constant Field Values
Constructor Detail

RenderMultiTextured

public RenderMultiTextured()
Default constructor

Method Detail

cloneRenderer

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

Overrides:
cloneRenderer in class RenderTexturedHQ

read

public void read(java.io.FileInputStream reader)
          throws java.io.IOException
Overrides:
read in class RenderTexturedHQ
Throws:
java.io.IOException

setMixAmount

public final void setMixAmount(double mixer)
Sets the amount of the base texture to mix. This is a value between 0 and 1 - the higher the number, the more of the base texture is mixed.

Parameters:
mixer - The amount to mix of the base texture

setMode

public final void setMode(int i)
Set the multi-texturing mode

Parameters:
i - The new mode
See Also:
MIX, ADD

setTextureBank1

public final void setTextureBank1(int i)
For animated textures - set the base texture to one previously loaded using setTextureBank1

Parameters:
i - The new texture id
See Also:
setTextureBank1(Texture)

setTextureBank1

public final int setTextureBank1(Texture tex)
Load a base texture

Parameters:
tex - A Texture
Returns:
An integer which can be used to identify the texture later
See Also:
Texture, setTextureBank2(com.sygem.jazz3d3.Texture)

setTextureBank2

public final void setTextureBank2(int i)
For animated textures - set the top texture to one previously loaded using setTextureBank2

Parameters:
i - The new texture id
See Also:
setTextureBank2(Texture)

setTextureBank2

public final int setTextureBank2(Texture tex)
Load a top-level texture

Parameters:
tex - A Texture
Returns:
An integer which can be used to identify the texture later
See Also:
Texture, setTextureBank1(com.sygem.jazz3d3.Texture)

write

public void write(java.io.FileOutputStream writer)
           throws java.io.IOException
Overrides:
write in class RenderTexturedHQ
Throws:
java.io.IOException


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