|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sygem.jazz3d3.Render
com.sygem.jazz3d3.RenderTextured
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.
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 |
public RenderTextured()
Render.NOSHADE
,
Render.FLAT
,
Render.GOURAUD
Method Detail |
public Render cloneRenderer()
cloneRenderer
in class Render
public boolean isPerspectiveCorrect()
public void read(java.io.FileInputStream reader) throws java.io.IOException
read
in class Render
java.io.IOException
public void setPerspectiveCorrect(boolean persp)
public final void setTexture(int i)
setTexture
i
- The new texture idsetTexture(Texture)
public int setTexture(Texture tex)
tex
- A Texture
Texture
,
setTexture(int)
public final void wrapUV(boolean wrap)
wrap
- True if UV Mapping is to be used, false if notpublic void write(java.io.FileOutputStream writer) throws java.io.IOException
write
in class Render
java.io.IOException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |