Jazz3D API


com.sygem.jazz3d3
Class RenderTextured

java.lang.Object
  |
  +--com.sygem.jazz3d3.Render
        |
        +--com.sygem.jazz3d3.RenderTextured
Direct Known Subclasses:
RenderTexturedHQ

public class RenderTextured
extends Render

Renderer that provides the ability to use texture-mapping. The type of texture-mapping used here is perspective-correct, with 16-pixel scanline subdivision. This makes for accurate renderings, with excellent speed.

Version:
3.0a
Author:
SyGem Software

Fields inherited from class com.sygem.jazz3d3.Render
FLAT, GOURAUD, IMAGE, LINE, NOSHADE, PARTICLE
 
Constructor Summary
RenderTextured()
          Default constructor.
 
Method Summary
 Render cloneRenderer()
          Returns a copy of the current renderer.
 void setTexture(int i)
          For animated textures - set the current texture to one previously loaded using setTexture
 int setTexture(Texture tex)
          Load a texture into the renderer
 void wrapUV(boolean wrap)
          Turn on/off UV wrapping.
 
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

RenderTextured

public RenderTextured()
Default constructor. Initial rendering mode is FLAT.
See Also:
Render.NOSHADE, Render.FLAT, Render.GOURAUD
Method Detail

setTexture

public final int setTexture(Texture tex)
Load a texture into the renderer
Parameters:
tex - A Texture
Returns:
An integer which can be used to identify the texture later
See Also:
Texture, setTexture(int)

setTexture

public final void setTexture(int i)
For animated textures - set the current texture to one previously loaded using setTexture
Parameters:
i - The new texture id
See Also:
setTexture(Texture)

cloneRenderer

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

wrapUV

public final void wrapUV(boolean wrap)
Turn on/off UV wrapping. With UV mapping off, each face usually maps the whole texture.
Parameters:
wrap - True if UV Mapping is to be used, false if not

©2001 SyGem Software