Jazz3D API


com.sygem.jazz3d3
Class RenderOutline

java.lang.Object
  |
  +--com.sygem.jazz3d3.Render
        |
        +--com.sygem.jazz3d3.RenderOutline

public class RenderOutline
extends Render

Renderer that provides the ability to use wireframe, particle or image modes. NOTE: All objects start life with a RenderOutline by default.

Version:
3.0a
Author:
SyGem Software

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 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.
 
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

SIXTEEN

public static final int SIXTEEN
Set the rendered image size to 16x16

THIRTYTWO

public static final int THIRTYTWO
Set the rendered image size to 32x32

SIXTYFOUR

public static final int SIXTYFOUR
Set the rendered image size to 64x64
Constructor Detail

RenderOutline

public RenderOutline()
Default constructor
Method Detail

setHiddenLineRemoval

public final void setHiddenLineRemoval(boolean t)
Turn on/off hidden-line removal.

getHiddenLineRemoval

public final boolean getHiddenLineRemoval()
Query the current hidden-line removal state.

cloneRenderer

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

setImageSize

public final void setImageSize(int size)
Set the size of the image for the image-rendering mode.
Parameters:
size - Either SIXTEEN, THIRTYTWO or SIXTYFOUR
See Also:
SIXTEEN, THIRTYTWO, SIXTYFOUR

setVertexImage

public final int setVertexImage(Texture tex)
Load a texture to be used with the image-render mode.
Parameters:
tex - A Texture
See Also:
Object3d.setVertexTexture(int, int)

setPenColour

public final void setPenColour(int r,
                               int g,
                               int b)
Set the colour of the lines/particles
Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour

getPenColourR

public final int getPenColourR()
Returns the Red colour of the lines/particles

getPenColourG

public final int getPenColourG()
Returns the Green colour of the lines/particles

getPenColourB

public final int getPenColourB()
Returns the Blue colour of the lines/particles

©2001 SyGem Software