|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectRenderer
public class Renderer
Object for drawing a view of the scene onto pixels.
| Constructor Summary | |
|---|---|
Renderer()
Constructs an empty renderer. |
|
| Method Summary | |
|---|---|
void |
render(Scene scene)
Renders the scene into the current destination array. |
void |
setFrustum(double left,
double right,
double top,
double bottom,
double near,
double far)
Sets the coordinates of the view frustum. |
void |
setPixels(int[] pixels,
int width,
int height)
Sets the destination array where pixels should be stored once computed. |
void |
setView(Point lookFrom,
Point lookAt,
Vector up)
Sets the location and orientation of the viewer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Renderer()
| Method Detail |
|---|
public void setPixels(int[] pixels,
int width,
int height)
public void setFrustum(double left,
double right,
double top,
double bottom,
double near,
double far)
public void setView(Point lookFrom,
Point lookAt,
Vector up)
public void render(Scene scene)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||