SDL 1.2 SDL_RendererFlip value
extensions 7 SDL_FLIP_HORIZONTAL 38
SDL_FLIP_NONE 38
SDL 1.2 extensions SDL_FLIP_VERTICAL 38
about 7
SDL_image 7 SDL_RENDERER_PRESENTVSYNC
SDL_mixer 7 flag 17
SDL_net 7
SDL_rtf 7 SDL_RENDERER_SOFTWARE flag 17
SDL_ttf 7 SDL_RENDERER_TARGETTEXTURE
SDL 2.0 flag 17
about 6, 7 SDL setup, in Visual C++ Express 2010
SDL 1.2 extensions 7
about 8
SDL 2.0 Roadmap 6 library, retrieving 8
SDL_CreateRenderer function 14 linking 10-12
SDL_CreateWindow function 27 Mercurial, using 8
SDL drawing SDL 2.0 repository, building 8-10
SDL 2.0 repository, cloning 8, 10
about 29 SDL_WasInit() function 16
images, obtaining 29 SDL_WINDOW_BORDERLESS
texture, creating 30, 31
SDL_image function 26
installing 38-40 SDL_WindowFlags function 26
using 40, 41 SDL_WindowFlags functions
SDL_INIT_AUDIO flag 16
SDL_INIT_EVERYTHING flag 16 SDL_WINDOW_BORDERLESS 26
SDL_INIT_HAPTIC flag 16 SDL_WINDOW_FOREIGN 26
SDL_INIT_JOYSTICK flag 16 SDL_WINDOW_FULLSCREEN 26
SDL_INIT_NOPARACHUTE flag 16 SDL_WINDOW_HIDDEN 26
SDL_INIT_TIMER flag 16 SDL_WINDOW_INPUT_FOCUS 26
SDL_INIT_VIDEO flag 16 SDL_WINDOW_INPUT_GRABBED 26
SDL_JOYAXISMOTION event 88 SDL_WINDOW_MAXIMIZED 26
SDL_JoyBallEvent 80 SDL_WINDOW_MINIMIZED 26
SDL_JoyButtonEvent 80 SDL_WINDOW_MOUSE_FOCUS 26
SDL_JoyHatEvent 80 SDL_WINDOW_OPENGL 26
SDL joystick events SDL_WINDOW_RESIZABLE 26
about 80, 81 SDL_WINDOW_SHOWN 26
SDL_JoyAxisEvent 80 SDL_WINDOW_FOREIGN function 26
SDL_JoyBallEvent 80 SDL_WINDOW_FULLSCREEN flag 27
SDL_JoyButtonEvent 80 SDL_WINDOW_FULLSCREEN function 26
SDL_JoyHatEvent 80 SDL_WINDOW_HIDDEN function 26
SDL_MouseButtonEvent 93 SDL_WINDOW_INPUT_FOCUS
SDL Mouse Event
SDL_MouseButtonEvent 93 function 26
SDL_MouseMotionEvent 93 SDL_WINDOW_INPUT_GRABBED
SDL_MouseWheelEvent 93
SDL_MouseMotionEvent 93 function 26
SDL_MouseWheelEvent 93 SDL_WINDOW_MAXIMIZED function 26
SDL_RENDERER_ACCELERATED flag 17 SDL_WINDOW_MINIMIZED function 26
SDL_WINDOW_MOUSE_FOCUS
function 26
SDL_WINDOW_OPENGL function 26
SDL_WINDOW_RESIZABLE function 26
[ 236 ]
SDL_WINDOW_SHOWN function 26 tile layer, parsing 171-174
setCallbacks function 152 tilesets, parsing 170, 171
Simple DirectMedia Layer. SeeĀ SDL tilesets
SoundManager class 196 parsing 170, 171
sound SDL_mixer extension TortoiseHg Workbench window 8
type function 214
SoundManager class, creating 193-196
using 193 U
source rectangle
about 32-35 uncompress function 174
images, flipping 37, 38 update function 45, 116, 129, 210
sprite sheet, animating 35, 37
states, XML file V
game over state, loading 153, 154
menu state, loading 147-149 vector
parsing 140-146 about 70
pause state, loading 152, 153 multiplying, by scalar number 73
play state, loading 150, 151 normalizing 74
sclar number, dividing by 74
T substration methods 73
two vectors, adding 72
texture manager using 71
about 42
creating 42-45 Visual C++ Express 2010
using, as singleton 46 SDL, setting up 8
TextureManager class 42 X
Tiled application 160-164
tiled map editor 157 Xbox 360 controller 81
tile layer XML file
parsing 171-174 about 131, 132
TileLayer class 224 basic XML structure 132-134
TileLayer update function 175 menu state, loading 147-149
tile map other states, loading 150
states, parsing 140-147
about 157-159
drawing 165, 175-180 Z
LevelParser class, creating 168-170
parsing 165, 166 zlib compression algorithm 162
scrolling 180, 181
TileLayer class, creating 167
[ 237 ]
Thank you for buying
SDL Game Development
About Packt Publishing
Packt, pronounced 'packed', published its first book "Mastering phpMyAdmin for Effective
MySQL Management" in April 2004 and subsequently continued to specialize in publishing
highly focused books on specific technologies and solutions.
Our books and publications share the experiences of your fellow IT professionals in adapting
and customizing today's systems, applications, and frameworks. Our solution based books
give you the knowledge and power to customize the software and technologies you're using
to get the job done. Packt books are more specific and less general than the IT books you have
seen in the past. Our unique business model allows us to bring you more focused information,
giving you more of what you need to know, and less of what you don't.
Packt is a modern, yet unique publishing company, which focuses on producing quality,
cutting-edge books for communities of developers, administrators, and newbies alike.
For more information, please visit our website: www.packtpub.com.
Writing for Packt
We welcome all inquiries from people who are interested in authoring. Book proposals
should be sent to [email protected]. If your book idea is still at an early stage and you
would like to discuss it first before writing a formal book proposal, contact us; one of our
commissioning editors will get in touch with you.
We're not just looking for published authors; if you have strong technical skills but no writing
experience, our experienced editors can help you develop a writing career, or simply get some
additional reward for your expertise.
Torque 3D Game Development
Cookbook
ISBN: 978-1-84969-354-7 Paperback: 380 pages
Over 80 practical recipes and hidden gems for getting
the most out of the Torque 3D game engine
1. Clear step-by-step instruction and practical
examples to advance your understanding of
Torque 3D and all of its sub-systems
2. Explore essential topics such as graphics,
sound, networking and user input
3. Helpful tips and techniques to increase the
potential of your Torque 3D games
jQuery Game Development
Essentials
ISBN: 978-1-84969-506-0 Paperback: 244 pages
Learn how to make fun and addictive multi-platform
games using jQuery
1. Discover how you can create a fantastic RPG,
arcade game, or platformer using jQuery!
2. Learn how you can integrate your game with
various social networks, creating multiplayer
experiences and also ensuring compatibility
with mobile devices.
3. Create your very own framework, harnessing
the very best design patterns and proven
techniques along the way.
Please check www.PacktPub.com for information on our titles
Learning Stencyl 3.x Game
Development: Beginner's Guide
ISBN: 978-1-84969-596-1 Paperback: 336 pages
A fast-paced, hands-on guide for developing
a feature-complete video game on almost any
desktop computer, without writing a single line
of computer code
1. Learn important skills that will enable you to
quickly create exciting video games, without
the complexity of traditional programming
languages
2. Find out how to maximize potential profits
through licencing, paid-sponsorship and in-
game advertising
3. Explore numerous step-by-step tutorials that
will guide you through the essential features of
Stencyl's powerful game-development toolkit
HTML5 Game Development with
GameMaker
ISBN: 978-1-84969-410-0 Paperback: 364 pages
Experience a captivating journey that will take you
from creating a full-on shoot'em up to your first social
web browser game
1. Build browser-based games and share them
with the world
2. Master the GameMaker Language with easy to
follow examples
3. Every game comes with original art and audio,
including additional assets to build upon each
lesson.
Please check www.PacktPub.com for information on our titles