[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]
GL3.2 Version 4.1 for AIX: Programming Concepts
About This Book
GL3.2 Version 4 for AIX: Programming Concepts provides information on the
Graphics Library (GL). GL is an application programming interface (API) for performing
advanced 3-D rendering, window management, and input device support. This book serves as
both a tutorial and a guide; it is a programmer's source book for learning about 3-D
graphics from a programmer's perspective.
Who Should Use This Book
This book is intended for programmers with C programming knowledge who want to develop 3-D applications. You should be acquainted with the C programming language enough to be able to write, compile, and link a program that prints Hello, World!
on the screen. This book does not assume knowledge of computer graphics as a prerequisite.
Before You Begin
Having a basic understanding of the concepts of computer graphics makes this book easier to understand. An introduction to computer graphics can be found in one of the following books:
- Foley, James D.; van Dam, Andries; Feiner, Steven K.; and Hughes, John F. Computer Graphics: Principles and Practice, Second Edition. Reading, Massachusetts: Addison-Wesley Publishing Company, 1990.
- Rogers, David F. Procedural Elements for Computer Graphics. New York: McGraw-Hill Book Company, 1985.
- Hearn, Donald; and Baker, M. Pauline. Computer Graphics. Englewood Cliffs, New Jersey: Prentice-Hall, Inc., 1986.
How to Use This Book
In general, each chapter begins with basic information and progresses to more advanced topics. On first reading, advanced topics can be skipped.
Overview of Contents
This book contains the following chapters and appendixes:
- Chapter 1, "AIX Graphics Library Overview," describes the AIX Graphics Library (GL) structure and function. It includes hardware and software prerequisites for running GL applications in addition to information on choosing the right GL subroutine.
- Chapter 2, "Getting Started in GL," introduces GL functions with a series of programs.
- Chapter 3, "Drawing with the Graphics Library," describes the GL drawing subroutines, including begin-end style, move-draw style, high-level, text, wire-frame, and NURBS curve subroutines. It also discusses such drawing operations as transferring pixel blocks, antialiasing, and setting pipeline options and drawing attributes.
- Chapter 4, "Working with Coordinate Systems," discusses the coordinate transformations necessary to manipulate geometric figures and viewpoints in 3-D space.
- Chapter 5, "Using Viewports and Screenmasks," describes the uses and implementation of viewports and screenmasks in a GL application.
- Chapter 6, "Removing Hidden Surfaces," discusses GL use of a z-buffer.
- Chapter 7, "Creating Lighting Effects," describes the GL lighting facility, used to specify light and material properties.
- Chapter 8, "Performing Depth-Cueing," discusses how to make an image appear three-dimensional by drawing those points brighter that are nearer to the viewer.
- Chapter 9, "Configuring the Frame Buffer," describes the organization and control of the frame buffer.
- Chapter 10, "Working with Objects (Display Lists)," discusses grouping a sequence of drawing subroutines as a single list to facilitate drawing identical figures. These graphical objects, or display lists, can be edited subsequently to create other figures.
- Chapter 11, "Picking and Selecting," describes two methods of obtaining three-dimensional input from a user.
- Chapter 12, "Understanding Windows and Input Control," discusses window management, cursors, keyboard input, queue and device control, system queries, pop-up menus, and textports.
- Chapter 13, "Using Enhanced X-Windows Calls with GL Subroutines," discusses how Enhanced X-Windows subroutines and GL subroutines can be used together.
- Chapter 14, "Portability, Compatibility, and Performance," provides a list of enhancements included in this release (new or revised subroutines, new example programs, and new utilities), and discusses performance tuning.
- Chapter 15, "System Programming Considerations," discusses special programming considerations applicable to multiple process management, linking and compiling using the GL shared library, linking FORTRAN and C modules; and lists unsupported or obsolete subroutines.
- Chapter 16, "Understanding the Graphics Adapter," describes frame buffer configurations of various adapters, and discusses other relevant hardware considerations.
- Appendix A lists the GL subroutines in alphabetical order.
- Appendix B gives an overview of important modalities for GL subroutines.
- Appendix C lists getgdesc subroutine return values for various adapters.
- Appendix D describes two procedures that detail how to port SGI GL applications to your GL environment.
For the subroutines themselves and for example programs not shown in this book, see GL3.2 Version 4 for AIX: Graphics Library (GL) Technical Reference.
The examples given in this book and in GL3.2 Version 4 for AIX: Graphics Library (GL) Technical Reference are merely examples, provided for the sole purpose of illustrating that the GL basic subroutines can be used to create extended or enhanced subroutines. The subroutines are provided "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. The entire risk as to the quality and performance of each GL subroutine is with you.
Highlighting
The following highlighting conventions are used in this book:
Bold |
Identifies commands, subroutines, keywords, files, structures, directories, and other items whose names are predefined by the system. Also identifies graphical objects such as buttons, labels, and icons that the user selects. |
Italics |
Identifies parameters whose actual names or values are to be supplied by the user. |
Monospace |
Identifies examples of specific data values, examples of text similar to what you might see displayed, examples of portions of program code similar to what you might write as a programmer, messages from the system, or information you should actually type. |
Related Publications
The following books contain information about or related to programming graphics:
- AIX and Related Products Documentation Overview, Order Number SC23-2456.
- AIX Version 4.3 System Management Guide: Operating System and Devices, Order Number SC23-4126.
- GL3.2 Version 4 for AIX: Graphics Library (GL) Technical Reference, Order Number SC23-2630.
- Introducing the 7235 POWER GTO, Order Number SA23-2125.
- OpenGL Reference Manual, order number SR28-5125.
- OpenGL Programming Guide, order number SR28-5126.
Ordering Publications
You can order publications from your sales representative or from your point of sale.
To order additional copies of this book, use order number SC23-2612.
[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]