com.sygem.jazz3d3
Class RenderMultiTextured
java.lang.Object
|
+--com.sygem.jazz3d3.Render
|
+--com.sygem.jazz3d3.RenderTextured
|
+--com.sygem.jazz3d3.RenderTexturedHQ
|
+--com.sygem.jazz3d3.RenderMultiTextured
- public class RenderMultiTextured
- extends RenderTexturedHQ
Renderer that provides the ability to use 2 textures per face.
- Version:
- 3.0a
- Author:
- SyGem Software
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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ADD
public static final int ADD
- Additive multi-texturing - places one texture
above another, using the texture's transparency.
- See Also:
Texture.setTransparentColour(int)
MIX
public static final int MIX
- Mixed multi-texturing - mixes the 2 textures
RenderMultiTextured
public RenderMultiTextured()
- Default constructor
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)
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)
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)
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)
setMode
public final void setMode(int i)
- Set the multi-texturing mode
- Parameters:
i
- The new mode- See Also:
MIX
,
ADD
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
cloneRenderer
public Render cloneRenderer()
- Returns a copy of the current renderer. All fields are copied across.
- Overrides:
cloneRenderer
in class RenderTexturedHQ