更新时间:2021-06-24 14:26:39
coverpage
Title Page
Copyright and Credits
C++ Game Development By Example
Dedication
About Packt
Why subscribe?
Packt.com
Contributors
About the author
About the reviewers
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Get in touch
Reviews
Section 1: Basic Concepts
C++ Concepts
Program basics
Variables
Strings
Operators
Statements
Iteration
Jump statements
Switch statement
Functions
Scope of variables
Arrays
Pointers
Structs
Enums
Classes
Inheritance
Summary
Mathematics and Graphics Concepts
3D coordinate system
Points
Vectors
Vector operations
Vector magnitude
Unit vector
Dot product
Cross product
Matrices
Matrix Addition and Subtraction
Matrix multiplication
Identity matrix
Matrix transpose
Matrix inverse
GLM OpenGL mathematics
OpenGL data types
Space transformations
Local/object space
World space
View space
Projection space
Screen space
Render pipeline
Vertex specification
Vertex shader
Vertex post-processing
Primitive assembly
Rasterization
Fragment shader
Per-sample operation
Framebuffer
Section 2: SFML 2D Game Development
Setting Up Your Game
An overview of SFML
Downloading SFML and configuring Visual Studio
Creating a window
Drawing shapes
Adding sprites
Keyboard input
Handing player movement
Creating Your Game
Starting afresh
Creating the hero class
Creating the enemy class
Adding enemies
Creating a rocket class
Adding rockets
Collision detection
Finalizing Your Game
Finishing the Gameloop and adding scoring
Adding text
Adding audio
Adding player animations
Section 3: Modern OpenGL 3D Game Development
Getting Started with OpenGL