game and graphics programming for ios and android with opengl es 2.0

316 1K 2
game and graphics programming for ios and android with opengl es 2.0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... Touch and iPad simulator, which you can use to develop and test your application And it is fully compatible with everything contained in this book If you are planning to develop for Android, what you need is a Mac or a PC with an operating system that is supported by the Android SDK (for more information, visit http://developer .android com) Also, you will need an Android device with OpenGL ES 2.0 support,... Graphics Programming for iOS and Android with OpenGL ES 2.0 This book is not your usual OpenGL Hello Triangle” book — it’s not meant to explain the “why” (Google is there for that), but rather, to show you the “how.” This book will strictly teach you what works and what doesn’t when it comes to game and graphics programming Using more than 50 unique tutorials (which also include some full game frameworks),... can post new messages and respond to messages other users post You can read messages at any time on the Web If you would like to have new messages from a particular forum e-mailed to you, click the Subscribe to this Forum icon by the forum name in the forum listing For more information about how to use the Wrox P2P, be sure to read the P2P FAQs for answers to questions about how the forum software... book For Android Developers To set up your environment for Android, it is unfortunately not as easy as for iOS First go to http://developer .android. com/sdk/installing.html and follow the instructions to install the Android SDK, Eclipse, and the ADT plug-in Please note that the Android SDK version used for this book was v2.3.4, but later versions should also work as well All the code in this book uses... Specify the location of the Android NDK c01.indd 3 12/31/11 8:53:33 AM 4 ❘ CHAPTER 1 GETTING STARTED Congratulations — your Android development environment is now all set! However, please note that in order to use this book with Android you will need an actual device with OpenGL ES 2.0 support The emulator provided by the Android SDK supports only OpenGL ES 1.x, not OpenGL ES 2.0 So local deployment on... how to work with this book’s template project and walk you through three progressive exercises In these exercises, you will learn how to manipulate the most common types of graphic projections and draw simple geometry onscreen; handle vertex and fragment shaders and link them to a shader program; manipulate vertex attributes and uniform variables; translate, rotate, and scale basic geometry; and create... while programming games or 3D applications There is plenty enough content in here to get you started with real game and graphics programming in no time! WHAT YOU NEED TO USE THIS BOOK If you are planning to develop for iOS, all you need is a Mac that can support the latest version of the iOS SDK (for more information, visit http://developer.apple.com) An iDevice is optional since the iOS SDK provides... nal result of a tutorial, open this directory Inside the directory, you can then fi nd at the root the source fi les used by the tutorial (respectively named templateApp.cpp and templateApp.h) and two directories that contain the project fi les for iOS and Android You can then load the project into your IDE and rebuild it from scratch ➤ common: Contains the free and open source GFX 3D engine (the mini game. .. book’s errata page and fi x the problem in subsequent editions of the book P2P.WROX.COM For author and peer discussion, join the P2P forums at p2p.wrox.com The forums are a Web-based system for you to post messages relating to Wrox books and related technologies and interact with other readers and technology users The forums offer a subscription feature to e-mail you topics of interest of your choosing... straightforward practical approach (probably never seen before) that only focuses on what you need to learn to insure that you will be able to create a game You will learn all the necessary elements in order to create a full-fledged game with rich 3D graphics If you are looking for an aggressive teaching method that enables you to quickly move forward to create your dream game, this book is for you! . 1/11/ 12 8 :21 :00 AM1/11/ 12 8 :21 :00 AM Game and Graphics Programming for iOS and Android with OpenGL ES 2. 0 This edition fi rst published 20 12 Copyright 20 12. class="bi x0 y0 w0 h0" alt="" ffirs.indd iffirs.indd i 12/ 30/ 11 12: 05 :23 PM 12/ 30/ 11 12: 05 :23 PM GAME AND GRAPHICS PROGRAMMING FOR IOS AND ANDROID ® WITH OPENGL ®

Ngày đăng: 22/03/2014, 13:36

Từ khóa liên quan

Mục lục

  • Game and Graphics Programming for iOS and Android® with OpenGL® ES 2.0

  • Contents

  • Introduction

  • Chapter 1: Getting Started

    • Software Requirements

      • For iOS Developers

      • For Android Developers

      • Downloading the Book's SDK

      • Importing Projects

        • For iOS Developers

        • For Android Developers

        • The Template

        • Summary

        • Chapter 2: Setting Up Your Graphic Projections

          • The Three Basic Types of Projections

          • Orthographic 2D Projection

            • Program and Project Initialization

            • Vertex and Fragment Shader

            • Linking a Shader Program

            • The Drawing Code

            • Orthographic Projection

              • Getting Orthographic

              • Perspective Projection

              • Summary

              • Chapter 3: Dealing With Complex Geometry

                • The Wavefront File Format

                  • Cube.obj

                  • Cube.mtl

Tài liệu cùng người dùng

Tài liệu liên quan