万本电子书0元读

万本电子书0元读

顶部广告

Mastering Android NDK电子书

售       价:¥

16人正在读 | 0人评论 9.8

作       者:Sergey Kosarevsky

出  版  社:Packt Publishing

出版时间:2015-09-30

字       数:65.8万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Master the skills you need to develop portable, highly-functional Android applications using NDK About This Book Develop portable games using Android NDK and debug them on your desktop Familiarise yourself with different popular C++ libraries on Android and use them in your games Write multi-threaded code with graphics, sound, networking, and resource storage Who This Book Is For If you want to leverage your C++ skills in mobile development and increase the performance of your Android applications, then this is the book for you. Knowledge of C or C++ is assumed, including pointer manipulation, multi-threading, object-oriented programming concepts, and the basics of C++11. It would be an added advantage if you know how to develop applications without any IDE. What You Will Learn Explore popular C++ libraries and use them on Android Write portable, multithreaded native networking code Create portable audio framework using OpenAL Implement portable rendering framework using OpenGL ES 3 Debug mobile applications on your desktop machine Access resources from APK archives Render text with FreeType In Detail Android NDK is used for multimedia applications that require direct access to system resources. NDK is also the key for portability, which in turn allows a reasonably comfortable development and debugging process using familiar tools such as GCC and Clang toolchains. This is a hands-on guide to extending your game development skills with Android NDK. The book takes you through many clear, step-by-step example applications to help you further explore the features of Android NDK and some popular C++ libraries and boost your productivity by debugging the development process. Through the course of this book, you will learn how to write portable multi-threaded native code, use HTTP networking in C++, play audio files, use OpenGL ES 3, and render high-quality text. Each chapter aims to take you one step closer to building your application. By the end of this book, you will be able to create an engaging, complete gaming application. Style and approach This book adopts a step-by-step approach and each chapter is based on the material from the previous ones. The book focuses on putting to your knowledge of C++ use while you develop Android applications of your own.
目录展开

Mastering Android NDK

Table of Contents

Mastering Android NDK

Credits

About the Authors

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

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

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

Summary

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

Summary

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

Summary

5. Cross-platform Audio Streaming

Initialization and playback

Streaming sounds

Stringed musical instrument model

Decoding compressed audio

Decoding tracker music using the ModPlug library

Decoding MP3 files

Decoding OGG files

Summary

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

Summary

7. Cross-platform UI and Input System

Rendering

Text rendering

Calculating glyph positions and string size in pixels

Decoding UTF-8

Glyphs rendering

Font initialization and caching

Integrating the text renderer into the canvas

Organizing the UI system

The base UI view

Events

Implementing UI classes

Using views in application

Summary

8. Writing a Rendering Engine

The scene graph

Lighting and shading

Lights and light nodes

Material system

Demo application and a rendering technique

Scene construction

User interaction with 3D scenes

Summary

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

Summary

10. Writing Asteroids Game

Creating an on-screen joystick

Implementing the particle system

Using particle systems in the game

Using particle systems inside a scene graph

Asteroids game

Summary

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部