com.sygem.jazz3d3
Class RenderTextured

java.lang.Object
  extended bycom.sygem.jazz3d3.Render
      extended bycom.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

Field Summary
 
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.
 boolean isPerspectiveCorrect()
           
 void read(java.io.FileInputStream reader)
           
 void setPerspectiveCorrect(boolean persp)
           
 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.
 void write(java.io.FileOutputStream writer)
           
 
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

cloneRenderer

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

Specified by:
cloneRenderer in class Render

isPerspectiveCorrect

public boolean isPerspectiveCorrect()

read

public void read(java.io.FileInputStream reader)
          throws java.io.IOException
Specified by:
read in class Render
Throws:
java.io.IOException

setPerspectiveCorrect

public void setPerspectiveCorrect(boolean persp)

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)

setTexture

public 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)

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

write

public void write(java.io.FileOutputStream writer)
           throws java.io.IOException
Specified by:
write in class Render
Throws:
java.io.IOException


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