更新时间:2021-07-16 19:39:34
coverpage
Mastering Android NDK
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Using Command-line Tools
Using Android command-line tools on Windows
Using Android command-line tools on OS X
Using Android command-line tools on Linux
Creating an Ant-based application template manually
Creating a Gradle-based application template manually
Embedding native code
Building and signing release Android applications
Organizing the cross-platform code
Using TeamCity continuous integration server with Android applications
Summary
Chapter 2. Native Libraries
Dealing with precompiled static libraries
Dynamic linking on Windows platform
Curl
OpenSSL
FreeImage
Loading and saving images
FreeType
Theora
OpenAL
Linking the libraries to your application
Chapter 3. Networking
Intrusive smart pointers
Portable multithreading primitives
Task queues
Message pumps and asynchronous callbacks
Asynchronous networking with libcurl
Android licensing in native applications
Flurry analytics
Chapter 4. Organizing a Virtual Filesystem
Mount points
Mount points and streams
Accessing files on the host filesystems
In-memory files
Aliasing
Writing files
Accessing the archive files
Accessing application assets
Chapter 5. Cross-platform Audio Streaming
Initialization and playback
Streaming sounds
Stringed musical instrument model
Decoding compressed audio
Chapter 6. OpenGL ES 3.1 and Cross-platform Rendering
Linear algebra and transformations
Graphics initialization using SDL2
OpenGL API binding
Cross-platform OpenGL abstractions
Feeding the geometry data to OpenGL
Shader programs
Textures
Chapter 7. Cross-platform UI and Input System
Rendering
Text rendering
Organizing the UI system
Chapter 8. Writing a Rendering Engine
The scene graph
Lighting and shading
Lights and light nodes
Material system
Demo application and a rendering technique
Chapter 9. Implementing Game Logic
Boids
Implementation of the flocking algorithms
Digression: helper routines
Collective behaviors
Rendering the swarm
Boids demonstration
The page-based user interface
Chapter 10. Writing Asteroids Game
Creating an on-screen joystick
Implementing the particle system
Asteroids game
Index