This is the OpenGL "standard" Gears demo, originally by Brian Paul
| Modifier and Type | Field and Description |
|---|---|
| private float | |
| private int | |
| private int | |
| private int | |
| private float | |
| private float | |
| private float |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| 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. |
| private void | |
| private void | |
| public static void |
| angle | back to summary |
|---|---|
| private float angle | |
| gear1 | back to summary |
|---|---|
| private int gear1 | |
| gear2 | back to summary |
|---|---|
| private int gear2 | |
| gear3 | back to summary |
|---|---|
| private int gear3 | |
| 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 | |
| Gears | back to summary |
|---|---|
| public Gears() | |
| destroy | back to summary |
|---|---|
| private void destroy() | |
| execute | back to summary |
|---|---|
| private void execute() | |
| 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.
| |
| init | back to summary |
|---|---|
| private void init() throws LWJGLException | |
| loop | back to summary |
|---|---|
| private void loop() | |
| main | back to summary |
|---|---|
| public static void main(String[] args) | |