This book is a comprehensive tutorial as well as a reference guide for programming in X--the system known for its workstation versatility and advanced graphics-handling ability. The most up-to-date book of its kind, it covers the new X11R6 version and shows readers how to build interactive applications. The disk contains all the text examples, which work on a variety of systems.
SGI's X Windows graphics expert explains how to construct real and useful 3D applications using OpenGL and X, and how to tightly integrate OpenGL applications with the X Window System. Using the OpenGL Utility Toolkit (GLUT) to show how OpenGL programs can be quickly constructed, the book explores OpenGL features using examples written in GLUT.
This is the missing X Window book. While others have shown what the X Window system has available, this book shows how to convert this potential into working tools to fulfil your visualisation needs. It is of the show-me class of books. The majority of the book covers Xlib, although a short coverage of Xcb is also given. Included are: . The relationship between Xlib and the X Window protocol; . All the basic Xlib topics are covered; . Complete working programs with their results; . Exercises to reinforce the material just covered. A 9 part partition to building a complete X program is used throughout. This partitioning fosters the inclusion of all code necessary. All programs are written in C and are one to four pages in length. Open source programs with the occasional Postscript script are shown to provide support as needed. Throughout the examples consideration is given to using colour. The examples produce simple results with the aim of providing building blocks for application oriented codes. The book is directed at graduate students and researchers who create computer code to visualise their data.
This book puts you in charge of the most flexible and adaptable graphical interface in the computer industry. The X Window System underlies graphical desktops on Linux and Unix systems, and supports advanced features of modern graphics cards. More people use the X Window System than ever before, but there are few books about X in print. X Power Tools fills that hole with the most practical and up-to-date information available. Written in O'Reilly's popular Power Tools format, X Power Tools offers dozens of standalone articles, thoroughly cross-referenced, on useful tools and techniques for using X. This unique inside look at X gives Unix/Linux system administrators, owners of self-administered systems, and power users a lot of useful ways to harness the power of this system effectively. This book: Offers a thorough grounding in X configuration and how the system works Provides the complete ins and outs of changing a desktop's behavior, such as fonts, keyboard settings, and remote security Includes articles on how to take advantage of X's "network transparency" -- its ability to display graphical applications on a remote machine Explores intriguing areas such as using multiple monitors, building kiosks, and accessibility Features discussions on X Window innovations and the future of the system X Power Tools covers configuration and use of X, focusing on Linux but also including notes on other operating systems such as Solaris and FreeBSD. Each article in the book gives you insight into X; the entire book gives you a real grasp on this system and what you can do with it.
Write software that draws directly on services offered by the Linux kernel and core system libraries. With this comprehensive book, Linux kernel contributor Robert Love provides you with a tutorial on Linux system programming, a reference manual on Linux system calls, and an insider’s guide to writing smarter, faster code. Love clearly distinguishes between POSIX standard functions and special services offered only by Linux. With a new chapter on multithreading, this updated and expanded edition provides an in-depth look at Linux from both a theoretical and applied perspective over a wide range of programming topics, including: A Linux kernel, C library, and C compiler overview Basic I/O operations, such as reading from and writing to files Advanced I/O interfaces, memory mappings, and optimization techniques The family of system calls for basic process management Advanced process management, including real-time processes Thread concepts, multithreaded programming, and Pthreads File and directory management Interfaces for allocating memory and optimizing memory access Basic and advanced signal interfaces, and their role on the system Clock management, including POSIX clocks and high-resolution timers
Intended for programmers who want to understand how to write applications using the X Window System, this volume describes how to use the System to create user interfaces, focusing on the Xlib, the Xt Intrinsics, and the OSF/Motif widget set. This guide demonstrates event handlers, callbacks, the translation manager, the resource manager, and other key features of the Xt Intrinsics and OSF/Motif; explains and demonstrates the concepts involved in programming with X to allow readers to understand how to write X-based applications; illustrates each of the key features of the X Window System through working programs as well as explanations; and more.
The Definitive Guide to Windows API Programming, Fully Updated for Windows 7, Windows Server 2008, and Windows Vista Windows System Programming, Fourth Edition, now contains extensive new coverage of 64-bit programming, parallelism, multicore systems, and many other crucial topics. Johnson Hart’s robust code examples have been updated and streamlined throughout. They have been debugged and tested in both 32-bit and 64-bit versions, on single and multiprocessor systems, and under Windows 7, Vista, Server 2008, and Windows XP. To clarify program operation, sample programs are now illustrated with dozens of screenshots. Hart systematically covers Windows externals at the API level, presenting practical coverage of all the services Windows programmers need, and emphasizing how Windows functions actually behave and interact in real-world applications. Hart begins with features used in single-process applications and gradually progresses to more sophisticated functions and multithreaded environments. Topics covered include file systems, memory management, exceptions, processes, threads, synchronization, interprocess communication, Windows services, and security. New coverage in this edition includes Leveraging parallelism and maximizing performance in multicore systems Promoting source code portability and application interoperability across Windows, Linux, and UNIX Using 64-bit address spaces and ensuring 64-bit/32-bit portability Improving performance and scalability using threads, thread pools, and completion ports Techniques to improve program reliability and performance in all systems Windows performance-enhancing API features available starting with Windows Vista, such as slim reader/writer locks and condition variables A companion Web site, jmhartsoftware.com, contains all sample code, Visual Studio projects, additional examples, errata, reader comments, and Windows commentary and discussion.