| Modifier and Type | Field and Description |
|---|---|
| private boolean | closing
Whether the test is closing |
| private int | direction
Direction mouse has moved |
| public static final boolean | FULLSCREEN
Fullscreen or not |
| private int | lastButton
Last button pressed |
| private int | lastScrollDirection
Last direction we scrolled in |
| private Vector3f[] | |
| private Vector3f[] | triangleColors
Triangle color |
| private Vector2f[] | triangles
Triangles to paint |
| private Vector2f | triangleSize
Triangle size |
| private static int | WINDOW_HEIGHT
Height of window |
| private static int | WINDOW_WIDTH
Width of window |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| public static void | |
| private void | |
| private void | |
| private void | |
| private void | |
| protected boolean | |
| private void | |
| private void | |
| private void | |
| private void |
| closing | back to summary |
|---|---|
| private boolean closing Whether the test is closing | |
| direction | back to summary |
|---|---|
| private int direction Direction mouse has moved | |
| FULLSCREEN | back to summary |
|---|---|
| public static final boolean FULLSCREEN Fullscreen or not | |
| lastButton | back to summary |
|---|---|
| private int lastButton Last button pressed | |
| lastScrollDirection | back to summary |
|---|---|
| private int lastScrollDirection Last direction we scrolled in | |
| quadColors | back to summary |
|---|---|
| private Vector3f[] quadColors | |
| triangleColors | back to summary |
|---|---|
| private Vector3f[] triangleColors Triangle color | |
| triangles | back to summary |
|---|---|
| private Vector2f[] triangles Triangles to paint | |
| triangleSize | back to summary |
|---|---|
| private Vector2f triangleSize Triangle size | |
| WINDOW_HEIGHT | back to summary |
|---|---|
| private static int WINDOW_HEIGHT Height of window | |
| WINDOW_WIDTH | back to summary |
|---|---|
| private static int WINDOW_WIDTH Width of window | |
| MouseTest | back to summary |
|---|---|
| public MouseTest() Creates a new instance of MouseTest | |
| executeTest | back to summary |
|---|---|
| public void executeTest() Executes the actual test | |
| handleKeyboard | back to summary |
|---|---|
| private void handleKeyboard() Handles the keyboard | |
| handleMouse | back to summary |
|---|---|
| private void handleMouse() handles the mouse | |
| handleWindow | back to summary |
|---|---|
| private void handleWindow() Handles the window | |
| initialize | back to summary |
|---|---|
| private void initialize() | |
| initializeOpenGL | back to summary |
|---|---|
| private void initializeOpenGL() Initializes OpenGL | |
| logic | back to summary |
|---|---|
| private void logic() Does the "model logic" | |
| main | back to summary |
|---|---|
public static void main(String[] args)
| |
| pause | back to summary |
|---|---|
| private void pause(long time) Pauses the current thread for a specified time
| |
| readBufferedMouse | back to summary |
|---|---|
| private void readBufferedMouse() reads a mouse in buffered mode | |
| render | back to summary |
|---|---|
| private void render() Render our triangles | |
| runTest | back to summary |
|---|---|
| private void runTest() Runs the test | |
| setDisplayMode | back to summary |
|---|---|
| protected boolean setDisplayMode() Sets the display mode for fullscreen mode | |
| setupDisplay | back to summary |
|---|---|
| private void setupDisplay() Setup display | |
| setupKeyboard | back to summary |
|---|---|
| private void setupKeyboard() Creates the keyboard | |
| setupMouse | back to summary |
|---|---|
| private void setupMouse() Creates the mouse | |
| updateState | back to summary |
|---|---|
| private void updateState() Updates our "model" | |