gnu.x11.extension.glx
Class Application

java.lang.Object
  extended by gnu.app.Application
      extended by gnu.x11.Application
          extended by gnu.x11.extension.glx.Application

public abstract class Application
extends Application

OpenGL application.


Field Summary
protected static int BUTTON_MOTION_BIT
           
protected static int BUTTON_PRESS_BIT
           
protected static int BUTTON1_MOTION_BIT
           
protected static int BUTTON2_MOTION_BIT
           
protected static int BUTTON3_MOTION_BIT
           
protected static int BUTTON4_MOTION_BIT
           
protected static int BUTTON5_MOTION_BIT
           
protected static int DELETE_BIT
           
protected  Event event
           
protected static int EVENT_BIT
           
protected  int event_mask
           
protected  GL gl
           
protected  GLU glu
           
protected  GLUT glut
           
protected  GLX glx
           
protected static int KEYBOARD_BIT
           
protected  boolean leave_display_open
           
protected static int POINTER_MOTION_BIT
           
protected static int RESIZE_BIT
           
protected  VisualConfig visual_config
           
protected  Window window
           
protected  boolean window_dirty
           
 
Fields inherited from class gnu.x11.Application
display, option
 
Fields inherited from class gnu.app.Application
exit_now, help_option
 
Constructor Summary
protected Application(java.lang.String[] args, int event_mask)
           
 
Method Summary
protected  void about(java.lang.String version, java.lang.String description, java.lang.String author, java.lang.String url, java.lang.String extra)
          Check if print "about" and possible options and then exit.
protected  void exec()
           
protected  void handle_button(int key, int state, int x, int y)
           
protected  boolean handle_delete()
           
protected  boolean handle_event(Event event)
           
protected abstract  void handle_expose()
           
protected  void handle_keyboard(int key, int state, int x, int y)
           
protected  void handle_motion(int state, int x, int y)
           
protected  void handle_resize(int width, int height)
           
protected  void init_window(int width, int height)
           
protected  void mark_window_dirty()
           
 
Methods inherited from class gnu.app.Application
about, exit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EVENT_BIT

protected static final int EVENT_BIT
See Also:
Constant Field Values

DELETE_BIT

protected static final int DELETE_BIT
See Also:
Constant Field Values

BUTTON_PRESS_BIT

protected static final int BUTTON_PRESS_BIT
See Also:
Constant Field Values

BUTTON_MOTION_BIT

protected static final int BUTTON_MOTION_BIT
See Also:
Constant Field Values

BUTTON1_MOTION_BIT

protected static final int BUTTON1_MOTION_BIT
See Also:
Constant Field Values

BUTTON2_MOTION_BIT

protected static final int BUTTON2_MOTION_BIT
See Also:
Constant Field Values

BUTTON3_MOTION_BIT

protected static final int BUTTON3_MOTION_BIT
See Also:
Constant Field Values

BUTTON4_MOTION_BIT

protected static final int BUTTON4_MOTION_BIT
See Also:
Constant Field Values

BUTTON5_MOTION_BIT

protected static final int BUTTON5_MOTION_BIT
See Also:
Constant Field Values

KEYBOARD_BIT

protected static final int KEYBOARD_BIT
See Also:
Constant Field Values

POINTER_MOTION_BIT

protected static final int POINTER_MOTION_BIT
See Also:
Constant Field Values

RESIZE_BIT

protected static final int RESIZE_BIT
See Also:
Constant Field Values

event_mask

protected int event_mask

event

protected Event event

gl

protected GL gl

glu

protected GLU glu

glut

protected GLUT glut

glx

protected GLX glx

leave_display_open

protected boolean leave_display_open

visual_config

protected VisualConfig visual_config

window

protected Window window

window_dirty

protected boolean window_dirty
Constructor Detail

Application

protected Application(java.lang.String[] args,
                      int event_mask)
Method Detail

handle_expose

protected abstract void handle_expose()

mark_window_dirty

protected void mark_window_dirty()

handle_button

protected void handle_button(int key,
                             int state,
                             int x,
                             int y)

handle_delete

protected boolean handle_delete()

handle_event

protected boolean handle_event(Event event)

handle_keyboard

protected void handle_keyboard(int key,
                               int state,
                               int x,
                               int y)

handle_motion

protected void handle_motion(int state,
                             int x,
                             int y)

handle_resize

protected void handle_resize(int width,
                             int height)

init_window

protected void init_window(int width,
                           int height)

about

protected void about(java.lang.String version,
                     java.lang.String description,
                     java.lang.String author,
                     java.lang.String url,
                     java.lang.String extra)
Description copied from class: gnu.app.Application
Check if print "about" and possible options and then exit. This method should be called only once after all options are specified.

Overrides:
about in class gnu.app.Application

exec

protected void exec()