com.sygem.jazz3d3.primitive
Class Checkerboard3d
java.lang.Object
|
+--com.sygem.jazz3d3.Object3d
|
+--com.sygem.jazz3d3.primitive.Checkerboard3d
- public class Checkerboard3d
- extends Object3d
Create a flat, 2-colour chessboard type object.
- Version:
- 3.0a
- Author:
- SyGem Software
- See Also:
Object3d
|
Constructor Summary |
Checkerboard3d(int xsections,
int ysections,
double x,
double y,
double z)
Default constructor. |
|
Method Summary |
void |
setColour1(int red,
int green,
int blue)
Sets the colour of one set of squares. |
void |
setColour2(int red,
int green,
int blue)
Sets the colour of the other set of squares. |
| Methods inherited from class com.sygem.jazz3d3.Object3d |
addChild, addQuad, addTriangle, addVertex, applyFaceChanges, cleanUp, getCenter, getChildObjects, getCollidable, getCulling, getFace, getFaceColour, getID, getName, getNumberOfFaces, getNumberOfSubFaces, getNumberOfSubVertices, getNumberOfVertices, getRenderer, getShapeArray, getUseVertexUVCoords, getVertex, getVertexArray, getVisible, getWorldVertex, pick, pickClosest, pickFace, prepForDisplay, recreateVertexNormals, rotateLocal, rotateLocal, rotateWorld, rotateWorld, scaleObject, setAllTextures, setAmbientColour, setCollidable, setColour, setCulling, setFaceColour, setFaceColourQuick, setName, setPosition, setRenderer, setShapeArray, setTexture, setTexture, setUseVertexUVCoords, setVertexArray, setVertexTexture, setVisible, translateLocal, translateWorld |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Checkerboard3d
public Checkerboard3d(int xsections,
int ysections,
double x,
double y,
double z)
- Default constructor.
- Parameters:
xsections - The number of squares acrossysections - The number of squares downx - The x position of the center of the boardy - The y position of the center of the boardz - The z position of the center of the board
setColour1
public final void setColour1(int red,
int green,
int blue)
- Sets the colour of one set of squares.
- Parameters:
red - The red component of the new colour.green - The green component of the new colour.blue - The blue component of the new colour.
setColour2
public final void setColour2(int red,
int green,
int blue)
- Sets the colour of the other set of squares.
- Parameters:
red - The red component of the new colour.green - The green component of the new colour.blue - The blue component of the new colour.