OpenGL
®
Game
Programming
This Page Intentionally Left Blank
OpenGL
®
Game
Programming
Kevin Hawkins
and
Dave Astle
© 2001 by Prima Publishing. All rights reserved. No part of this book may be reproduced or
transmitted in any form or by any means, electronic or mechanical, including photocopying,
recording, or by any information storage or retrieval system without written permission from Prima
Publishing, except for the inclusion of brief quotations in a review.
A Division of Prima Publishing
Prima Publishing and colophon are registered trademarks of Prima Communications, Inc.
PRIMA TECH and the Game Development series are trademarks of Prima
Communications, Inc., Roseville, California 95661.
Publisher: Stacy L. Hiquet
Associate Marketing Manager: Jennifer Breece
Managing Editor: Sandy Doell
Acquisitions Editor: Jody Kennen
Project Editor: Kelly Talbot
Technical Reviewer: Nathan Beittenmiller
Copy Editor: Kate Welsh
Interior Layout: Bill Hartman
Cover Design: Prima Design Team
Indexer: Sharon Shock
Proofreader: Kim Benbow
Silicon Graphics, IRIX, Onyx, OpenGL, and O2 are registered trademarks, and SGI and Origin are
trademarks, of Silicon Graphics, Inc. Alias|Wavefront is a trademark of Alias/Wavefront, a division of
Silicon Graphics Limited. Microsoft, Windows, Windows NT, Encarta, Internet Explorer, DirectX,
DirectDraw, Direct3D, DirectInput, DirectSound, DirectPlay, DirectShow, and DirectMusic are either
registered trademarks or trademarks of Microsoft Corporation in the United States and/or other
countries. Netscape is a registered trademark of Netscape Communications Corporation in the U.S.
and other countries. GeForce and NVIDIA are registered trademarks or trademarks of NVIDIA
Corporation in the United States and/or other countries. All other trademarks are the property of
their respective owners.
Important: Prima Publishing cannot provide software support. Please contact the appropriate
software manufacturer’s technical support line or Web site for assistance.
Prima Publishing and the author have attempted throughout this book to distinguish proprietary
trademarks from descriptive terms by following the capitalization style used by the manufacturer.
Information contained in this book has been obtained by Prima Publishing from sources believed to
be reliable. However, because of the possibility of human or mechanical error by our sources, Prima
Publishing, or others, the Publisher does not guarantee the accuracy, adequacy, or completeness of any
information and is not responsible for any errors or omissions or the results obtained from use of such
information. Readers should be particularly aware of the fact that the Internet is an ever-changing enti-
ty. Some facts may have changed since this book went to press.
ISBN: 0-7615-3330-3
Library of Congress Catalog Card Number: 2001-086796
Printed in the United States of America
02 03 04 05 BH 10 9 8 7 6 5 4 3