X Window System

1. X Window System is a low-level protocol

    •Create/destroy windows

    •Move/resize windows

    •Map/unmap windows (show/hide windows)

    •Receive user inputs (key presses/releases, mouse events)

    •Draw lines/curves/bitmaps

2. Window Manager

    •Controls the general appearance of windows and other graphical elements of the GUI.

   •Chooses the size and position of windows, placing the decorative border around them, handling icons, handling mouse click outside windows (on the “background”) or on window-frame, handling certain keystrokes (e.g., Alt-F4).

3. Window

    Window information

    Some basic attributes describing the window, Includes id, title, coordinates, map state, override redirect state, etc.

    xwininfo

    •Window properties

    Extensible window attributes which heavily used by Window Manager

    Can also used to inter-client communication

    E.g., Icon, maximization state, coordinates hint, pid, etc.

    xprop

4. Xevent

    An XEvent is data generated asynchronously by the X server as a result of

    Some device activity

    Side effects of a request sent by the X client

    Event Categories

    Keyboard events: KeyPress, KeyRelease

    Mouse events: ButtonPress, ButtonRelease, MotionNotify

    Window crossing events: EnterNotify, LeaveNotify

    Input focus events: FocusIn, FocusOut

    Keymap state notification event: KeymapNotify

    Exposure events: Expose, GraphicsExpose, NoExpose

    Structure control events: CirculateRequest, ConfigureRequest, MapRequest, ResizeRequest

    Window state notification events: CirculateNotify, ConfigureNotify, CreateNotify

    Colormap state notification event: ColormapNotify

    Client communication events: ClientMessage, PropertyNotify, SelectionClear

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Product Description OpenGL is the fastest and most widely available software standard for producing high-quality color images of 3D scenes. This practical guide shows X programmers how to construct working 3D applications using OpenGL and how to tightly integrate OpenGL applications with the X Window System. Written by a Silicon Graphics X Window System and OpenGL expert, OpenGL Programming for the X Window System uses the OpenGL Utility Toolkit (GLUT) to show how OpenGL programs can be constructed quickly and explores OpenGL features using examples written with GLUT. This book also: *explains the GLX model for integrating OpenGL and Xlib *shows how to use OpenGL with Motif and other widget sets *discusses the latest OpenGL standards: OpenGL 1.1, GLX 1.2, and GLU 1.2 *covers advanced topics such as alternative input devices and overlays *includes valuable information for ensuring OpenGL portability and interoperability *provides pointers for performance tuning Each chapter contains source code demonstrating the techniques described. Source code for all the examples provided, and for the GLUT library itself, are available for downloading via the Internet. Intended for C programmers familiar with the Xlib and/or Motif programming interfaces. No previous OpenGL knowledge is required. 0201483599B04062001 From the Back Cover OpenGL is the fastest and most widely available software standard for producing high-quality color images of 3D scenes. This practical guide shows X programmers how to construct working 3D applications using OpenGL and how to tightly integrate OpenGL applications with the X Window System. Written by a Silicon Graphics X Window System and OpenGL expert, OpenGL Programming for the X Window System uses the OpenGL Utility Toolkit (GLUT) to show how OpenGL programs can be constructed quickly and explores OpenGL features using examples written with GLUT. This book also: explains the GLX model for integrating OpenGL and Xlib shows how to use OpenGL with Motif and other widget sets discusses the latest OpenGL standards: OpenGL 1.1, GLX 1.2, and GLU 1.2 covers advanced topics such as alternative input devices and overlays includes valuable information for ensuring OpenGL portability and interoperability provides pointers for performance tuning Each chapter contains source code demonstrating the techniques described. Source code for all the examples provided, and for the GLUT library itself, are available for downloading via the Internet. Intended for C programmers familiar with the Xlib and/or Motif programming interfaces. No previous OpenGL knowledge is required.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值