Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

OpenGLDisplayDevice.C File Reference

OpenGLRenderer subclass managing X-windows window and input state, OpenGL GLX context, and framebuffer management. More...

#include <stdlib.h>
#include <math.h>
#include <GL/gl.h>
#include <GL/glx.h>
#include <X11/Xlib.h>
#include <X11/cursorfont.h>
#include <X11/keysym.h>
#include "OpenGLDisplayDevice.h"
#include "Inform.h"
#include "utilities.h"
#include "config.h"
#include "VMDApp.h"
#include "VideoStream.h"
#include <X11/extensions/XI.h>
#include <X11/extensions/XInput.h>

Go to the source code of this file.

Compounds

struct  xidevhandle
struct  xinputhandle

Functions

xidevhandlexinput_open_device (xinputhandle *handle, XID devinfo)
void xinput_close_device (xinputhandle *handle, xidevhandle *xdhandle)
int xinput_device_decode_event (xinputhandle *handle, xidevhandle *dev, XEvent *xev, spaceballevent *sballevent)
int xinput_decode_event (xinputhandle *handle, XEvent *xev, spaceballevent *sballevent)
xinputhandlexinput_enable (Display *dpy, Window win)
void xinput_close (xinputhandle *handle)
spaceballhandlespaceball_enable (Display *dpy, Window win)
void spaceball_close (spaceballhandle *handle)
int spaceball_decode_event (spaceballhandle *handle, const XEvent *xev, spaceballevent *sballevent)
void spaceball_init_event (spaceballevent *sballevent)
void spaceball_clear_event (spaceballevent *sballevent)
XVisualInfo * vmd_get_visual (glxdata *glxsrv, int *stereo, int *msamp, int *numsamples)
void setfullscreen (int fson, Display *dpy, Window win, int xinescreen)

Variables

const char * glStereoNameStr [OPENGL_STEREO_MODES]
const char * glRenderNameStr [OPENGL_RENDER_MODES]
const char * glCacheNameStr [OPENGL_CACHE_MODES]
XColor cursorFG
XColor cursorBG


Detailed Description

OpenGLRenderer subclass managing X-windows window and input state, OpenGL GLX context, and framebuffer management.

Renders drawing commands into a single X window.

Definition in file OpenGLDisplayDevice.C.


Function Documentation

void setfullscreen int    fson,
Display *    dpy,
Window    win,
int    xinescreen
[static]
 

Definition at line 630 of file OpenGLDisplayDevice.C.

Referenced by OpenGLDisplayDevice::do_resize_window.

void spaceball_clear_event spaceballevent   sballevent [static]
 

Definition at line 422 of file OpenGLDisplayDevice.C.

References spaceballevent::event, spaceballevent::period, spaceballevent::rx, spaceballevent::ry, spaceballevent::rz, spaceballevent::tx, spaceballevent::ty, and spaceballevent::tz.

Referenced by glwin_create, glwin_handle_events, and OpenGLDisplayDevice::read_event.

void spaceball_close spaceballhandle   handle [static]
 

Definition at line 369 of file OpenGLDisplayDevice.C.

Referenced by glwin_destroy, and OpenGLDisplayDevice::~OpenGLDisplayDevice.

int spaceball_decode_event spaceballhandle   handle,
const XEvent *    xev,
spaceballevent   sballevent
[static]
 

Definition at line 374 of file OpenGLDisplayDevice.C.

References spaceballevent::buttons, spaceballhandle::ev_button_press, spaceballhandle::ev_button_release, spaceballhandle::ev_motion, spaceballevent::event, NULL, spaceballevent::period, spaceballevent::rx, spaceballevent::ry, spaceballevent::rz, spaceballevent::tx, spaceballevent::ty, and spaceballevent::tz.

Referenced by glwin_handle_events, and OpenGLDisplayDevice::read_event.

spaceballhandle* spaceball_enable Display *    dpy,
Window    win
[static]
 

Definition at line 303 of file OpenGLDisplayDevice.C.

References spaceballhandle::drv_win, spaceballhandle::ev_button_press, spaceballhandle::ev_button_release, spaceballhandle::ev_command, spaceballhandle::ev_motion, and NULL.

Referenced by OpenGLDisplayDevice::open_window.

void spaceball_init_event spaceballevent   sballevent [static]
 

Definition at line 417 of file OpenGLDisplayDevice.C.

Referenced by glwin_create, and OpenGLDisplayDevice::open_window.

XVisualInfo* vmd_get_visual glxdata   glxsrv,
int *    stereo,
int *    msamp,
int *    numsamples
[static]
 

Definition at line 434 of file OpenGLDisplayDevice.C.

References conf, glxdata::dpy, glxdata::dpyScreen, and NULL.

Referenced by OpenGLDisplayDevice::open_window.

void xinput_close xinputhandle   handle
 

Definition at line 291 of file OpenGLDisplayDevice.C.

References xinputhandle::dev_spaceball, NULL, and xinput_close_device.

Referenced by OpenGLDisplayDevice::~OpenGLDisplayDevice.

void xinput_close_device xinputhandle   handle,
xidevhandle   xdhandle
[static]
 

Definition at line 134 of file OpenGLDisplayDevice.C.

References xidevhandle::dev, xinputhandle::dpy, and NULL.

Referenced by xinput_close.

int xinput_decode_event xinputhandle   handle,
XEvent *    xev,
spaceballevent   sballevent
[static]
 

Definition at line 181 of file OpenGLDisplayDevice.C.

References xinputhandle::dev_spaceball, NULL, and xinput_device_decode_event.

Referenced by OpenGLDisplayDevice::read_event.

int xinput_device_decode_event xinputhandle   handle,
xidevhandle   dev,
XEvent *    xev,
spaceballevent   sballevent
[static]
 

Definition at line 145 of file OpenGLDisplayDevice.C.

References xidevhandle::buttonpressevent, xidevhandle::buttonreleaseevent, spaceballevent::buttons, spaceballevent::event, xidevhandle::motionevent, spaceballevent::period, spaceballevent::rx, spaceballevent::ry, spaceballevent::rz, spaceballevent::tx, spaceballevent::ty, and spaceballevent::tz.

Referenced by xinput_decode_event.

xinputhandle* xinput_enable Display *    dpy,
Window    win
[static]
 

Definition at line 195 of file OpenGLDisplayDevice.C.

References xinputhandle::dev_spaceball, xinputhandle::dpy, NULL, strupncmp, xinputhandle::win, and xinput_open_device.

Referenced by OpenGLDisplayDevice::open_window.

xidevhandle* xinput_open_device xinputhandle   handle,
XID    devinfo
[static]
 

Definition at line 111 of file OpenGLDisplayDevice.C.

References xidevhandle::buttonpressevent, xidevhandle::buttonpresseventclass, xidevhandle::buttonreleaseevent, xidevhandle::buttonreleaseeventclass, xidevhandle::dev, xinputhandle::dpy, xidevhandle::evclasses, xidevhandle::motionevent, xidevhandle::motioneventclass, NULL, and xinputhandle::win.

Referenced by xinput_enable.


Variable Documentation

XColor cursorBG [static]
 

Initial value:

 { 0, 0xffff, 0xffff, 0xffff, 
                         DoRed | DoGreen | DoBlue, 0 }

Definition at line 83 of file OpenGLDisplayDevice.C.

Referenced by OpenGLDisplayDevice::open_window.

XColor cursorFG [static]
 

Initial value:

 { 0, 0xffff,      0,      0, 
                         DoRed | DoGreen | DoBlue, 0 }

Definition at line 81 of file OpenGLDisplayDevice.C.

Referenced by OpenGLDisplayDevice::open_window.

const char* glCacheNameStr[OPENGL_CACHE_MODES] [static]
 

Initial value:

 
{ "Off",
  "On" }

Definition at line 71 of file OpenGLDisplayDevice.C.

Referenced by OpenGLDisplayDevice::OpenGLDisplayDevice.

const char* glRenderNameStr[OPENGL_RENDER_MODES] [static]
 

Initial value:

 
{ "Normal",
  "GLSL",



  "Acrobat3D" }

Definition at line 63 of file OpenGLDisplayDevice.C.

Referenced by OpenGLDisplayDevice::OpenGLDisplayDevice.

const char* glStereoNameStr[OPENGL_STEREO_MODES] [static]
 

Initial value:

 { "Off",
   "QuadBuffered",
   "HDTV SideBySide",
   "Checkerboard",
   "ColumnInterleaved",
   "RowInterleaved",
   "Anaglyph",
   "SideBySide",
   "AboveBelow",
   "Left",
   "Right" }

Definition at line 50 of file OpenGLDisplayDevice.C.

Referenced by OpenGLDisplayDevice::OpenGLDisplayDevice.


Generated on Fri Mar 29 02:46:45 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002