| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | PositionTest.
Minute implementation of GLUT: COPYRIGHT: The OpenGL Utility Toolkit distribution for Win32 (Windows NT & Windows 95) contains source code modified from the original source code for GLUT version 3.3 which was developed by Mark J. |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | CENTER
CENTER enumeration |
| private FloatBuffer | centerPosition
Position of center sound |
| private FloatBuffer | centerVelocity
Velocity of center sound |
| private boolean | finished
Whether the demo is done |
| private PositionTest. | glut
Small* glut implementation :) |
| public static final int | LEFT
LEFT enumeration |
| private FloatBuffer | leftPosition
Position of left sound |
| private FloatBuffer | leftVelocity
Velocity of left sound |
| private FloatBuffer | listenerOrientation
Orientation of listener |
| private FloatBuffer | listenerPosition
Position of listener |
| private FloatBuffer | listenerVelocity
Velocity of listener |
| private boolean | pauseMode
Whether in pause mode |
| public static final int | RIGHT
RIGHT enumeration |
| private FloatBuffer | rightPosition
Position of right sound |
| private FloatBuffer | rightVelocity
Velocity of right sound |
| private IntBuffer | soundBuffers
OpenAL buffers |
| private IntBuffer | soundSources
OpenAL sources |
| public static final int | WINDOW_HEIGHT
Height of window |
| public static final int | WINDOW_WIDTH
Width of window |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| private void | |
| public static void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void |
| CENTER | back to summary |
|---|---|
| public static final int CENTER CENTER enumeration | |
| centerPosition | back to summary |
|---|---|
| private FloatBuffer centerPosition Position of center sound | |
| centerVelocity | back to summary |
|---|---|
| private FloatBuffer centerVelocity Velocity of center sound | |
| finished | back to summary |
|---|---|
| private boolean finished Whether the demo is done | |
| glut | back to summary |
|---|---|
| private PositionTest. Small* glut implementation :) | |
| LEFT | back to summary |
|---|---|
| public static final int LEFT LEFT enumeration | |
| leftPosition | back to summary |
|---|---|
| private FloatBuffer leftPosition Position of left sound | |
| leftVelocity | back to summary |
|---|---|
| private FloatBuffer leftVelocity Velocity of left sound | |
| listenerOrientation | back to summary |
|---|---|
| private FloatBuffer listenerOrientation Orientation of listener | |
| listenerPosition | back to summary |
|---|---|
| private FloatBuffer listenerPosition Position of listener | |
| listenerVelocity | back to summary |
|---|---|
| private FloatBuffer listenerVelocity Velocity of listener | |
| pauseMode | back to summary |
|---|---|
| private boolean pauseMode Whether in pause mode | |
| RIGHT | back to summary |
|---|---|
| public static final int RIGHT RIGHT enumeration | |
| rightPosition | back to summary |
|---|---|
| private FloatBuffer rightPosition Position of right sound | |
| rightVelocity | back to summary |
|---|---|
| private FloatBuffer rightVelocity Velocity of right sound | |
| soundBuffers | back to summary |
|---|---|
| private IntBuffer soundBuffers OpenAL buffers | |
| soundSources | back to summary |
|---|---|
| private IntBuffer soundSources OpenAL sources | |
| WINDOW_HEIGHT | back to summary |
|---|---|
| public static final int WINDOW_HEIGHT Height of window | |
| WINDOW_WIDTH | back to summary |
|---|---|
| public static final int WINDOW_WIDTH Width of window | |
| PositionTest | back to summary |
|---|---|
| public PositionTest() | |
| execute | back to summary |
|---|---|
| protected void execute(String[] args) Runs the actual test, using supplied arguments | |
| handleInput | back to summary |
|---|---|
| private void handleInput() Handles any input | |
| main | back to summary |
|---|---|
| public static void main(String[] args) main entry point
| |
| paused | back to summary |
|---|---|
| private void paused(boolean paused) Handles any changes in pause mode
| |
| render | back to summary |
|---|---|
| private void render() Render the scene | |
| run | back to summary |
|---|---|
| private void run() Runs the actual demonstration | |
| setup | back to summary |
|---|---|
| private void setup() throws Exception Performs setup of demonstration | |
| shutdown | back to summary |
|---|---|
| private void shutdown() Shutdown of demonstration | |
| startSounds | back to summary |
|---|---|
| private void startSounds() Starts playing the sounds at different times | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int[][] | |
| pack-priv float[][] | |
| pack-priv float[][] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | |
| public void |
| faces | back to summary |
|---|---|
| pack-priv int[][] faces | |
| n | back to summary |
|---|---|
| pack-priv float[][] n | |
| v | back to summary |
|---|---|
| pack-priv float[][] v | |
| GLUT | back to summary |
|---|---|
| pack-priv GLUT() | |
| drawBox | back to summary |
|---|---|
| private void drawBox(float size, int type) | |
| glutSolidCube | back to summary |
|---|---|
| public void glutSolidCube(float size) | |
| glutWireCube | back to summary |
|---|---|
| public void glutWireCube(float size) | |