AWT version of the gears demo
| Modifier and Type | Field and Description |
|---|---|
| private float | |
| pack-priv int | |
| pack-priv int | |
| pack-priv long | |
| private int | |
| private int | |
| private int | |
| pack-priv long | |
| private float | |
| private float | |
| private float |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | gear(float
radius of hole at center inner_radius, float radius at center of teeth outer_radius, float width of gear width, int number of teeth teeth, float depth of tooth tooth_depth)Draw a gear wheel. |
| public void | |
| private void | |
| public void | |
| public void |
| angle | back to summary |
|---|---|
| private float angle | |
| current_height | back to summary |
|---|---|
| pack-priv int current_height | |
| current_width | back to summary |
|---|---|
| pack-priv int current_width | |
| fps | back to summary |
|---|---|
| pack-priv long fps | |
| gear1 | back to summary |
|---|---|
| private int gear1 | |
| gear2 | back to summary |
|---|---|
| private int gear2 | |
| gear3 | back to summary |
|---|---|
| private int gear3 | |
| startTime | back to summary |
|---|---|
| pack-priv long startTime | |
| view_rotx | back to summary |
|---|---|
| private float view_rotx | |
| view_roty | back to summary |
|---|---|
| private float view_roty | |
| view_rotz | back to summary |
|---|---|
| private float view_rotz | |
| AWTGearsCanvas | back to summary |
|---|---|
| public AWTGearsCanvas() throws LWJGLException C'tor | |
| gear | back to summary |
|---|---|
| private void gear(float inner_radius, float outer_radius, float width, int teeth, float tooth_depth) Draw a gear wheel. You'll probably want to call this function when building a display list since we do a lot of trig here.
| |
| paintGL | back to summary |
|---|---|
| public void paintGL() Overrides org. Doc from org. Override this to do painting | |
| setup | back to summary |
|---|---|
| private void setup() | |
| start | back to summary |
|---|---|
| public void start() Implements org. | |
| stop | back to summary |
|---|---|
| public void stop() Implements org. | |