|
||||||||
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.RenderOutline
Renderer that provides the ability to use wireframe, particle or image modes. NOTE: All objects start life with a RenderOutline by default.
Field Summary | |
static int |
SIXTEEN
Set the rendered image size to 16x16 |
static int |
SIXTYFOUR
Set the rendered image size to 64x64 |
static int |
THIRTYTWO
Set the rendered image size to 32x32 |
Fields inherited from class com.sygem.jazz3d3.Render |
FLAT, GOURAUD, IMAGE, LINE, NOSHADE, PARTICLE |
Constructor Summary | |
RenderOutline()
Default constructor |
Method Summary | |
Render |
cloneRenderer()
Returns a copy of the current renderer. |
boolean |
getHiddenLineRemoval()
Query the current hidden-line removal state. |
int |
getPenColourB()
Returns the Blue colour of the lines/particles |
int |
getPenColourG()
Returns the Green colour of the lines/particles |
int |
getPenColourR()
Returns the Red colour of the lines/particles |
void |
read(java.io.FileInputStream reader)
|
void |
setHiddenLineRemoval(boolean t)
Turn on/off hidden-line removal. |
void |
setImageSize(int size)
Set the size of the image for the image-rendering mode. |
void |
setPenColour(int r,
int g,
int b)
Set the colour of the lines/particles |
int |
setVertexImage(Texture tex)
Load a texture to be used with the image-render mode. |
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 |
Field Detail |
public static final int SIXTEEN
public static final int SIXTYFOUR
public static final int THIRTYTWO
Constructor Detail |
public RenderOutline()
Method Detail |
public Render cloneRenderer()
cloneRenderer
in class Render
public final boolean getHiddenLineRemoval()
public final int getPenColourB()
public final int getPenColourG()
public final int getPenColourR()
public void read(java.io.FileInputStream reader) throws java.io.IOException
read
in class Render
java.io.IOException
public final void setHiddenLineRemoval(boolean t)
public final void setImageSize(int size)
size
- Either SIXTEEN, THIRTYTWO or SIXTYFOURSIXTEEN
,
THIRTYTWO
,
SIXTYFOUR
public final void setPenColour(int r, int g, int b)
r
- The red component of the colourg
- The green component of the colourb
- The blue component of the colourpublic final int setVertexImage(Texture tex)
tex
- A TextureObject3d.setVertexTexture(int, int)
public 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 |