资源说明:Who This Book Is For
This book is for anyone who wants to learn how to write games for Linux. I
assume that you know the basics of working with Linux; if you know enough to
start X, open a terminal, copy files around, and fire up a text editor, you’re good
to go. I also assume that you have a reasonable grasp of the C programming
language. Flip through the book and see if you can decipher the syntax of the
examples. We’ll go through all of the necessary library calls, so don’t worry if
you see a bunch of unfamiliar function names, but you should be able to
understand the majority of the actual code. No prior experience with
multimedia programming is assumed, so don’t worry if you’ve never had the
perverse pleasure of hacking a graphics register or shoving a pixel into memory.
All in good time!
Although this isn’t a reference manual in the traditional sense, chapters 4, 5, 6,
and 8 provide reference boxes for most of the API functions we cover. I hope
that even experienced multimedia programmers can find something useful here.
I will not discuss 3D programming in this book. There are already plenty of
excellent books on OpenGL, and only a small bit of OpenGL programming is
directly related to Linux. However, I will demonstrate how to use SDL as an
effective replacement for the GLUT toolkit; see page 140.
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。