OpenGLES3.0ProgrammingGuide

wangxiaoer2810 41 0 PDF 2019-05-15 04:05:23

火热出炉的OpenGL ES 3.0 Programming Guide,移动平台图形游戏开发人员最好的参考手册。配套示例源码下载地址:https://github.com/danginsburg/opengles3-book/This page intentionally left blankOpengles 3.0Programming guideSecond editionOpenGL Seriesfrom Addison-WesleypenGLWebGIOpenCLOpenglProgramming GuideProgramming GuideProgramming GuideSuperAblecaam Mellen thints Wet.M,NAAddison-WesleyVisit informit. com/opengl for a complete list of available productshe OpengL graphics system is a sof tware interface to graphics hardwareGL stands for Graphics Library It allows you to create interactive programshat produce color images of moving, three-dimensional objects With OpenGL,you can control computer-graphics technology to produce realistic pictures, orones that depart from reality in imaginative waysThe Open GL Series from Addison-Wesley Professional comprises tutorial andreference books that help programmers gain a practical understanding of openGLstandards, along with the insight needed to unlock OpenGL's full potentialm凹国Make sure to connect with us!informit.com/socialconnectinformIT. com Addison-Wesley Safarithe trusteALWAYS LEARNINGPEARSONOpengles 3.0Programming guideSecond editionDan ganshiBudirijanto purnomoWith earlier Contributions fromDave shreinerAaftab munshitAddison-WesleyUpper Saddle river,N· Boston· Indianapolis· San franciscoNew york· Toronto· Montreal· London· Munich· Paris· MadridCapetown· Sydney· Tokyo· Singapore· Mexico cityMany of the designations used by manufacturers and sellers to distinguish theirEditor-in. Chiefproducts are claimed as trademarks. Where those designations appear in this book,Mark L. tauband the publisher was aware of a trademark claim, the designations have been printedExecutive editorwith initial capital letters or in all capitalsLaura lewinFront cover image is from Snapdragon Game Studio's Fortress: Fire OpenGL ESDevelopment Editor3.0 demo, courtesy of Qualcomm Technologies IncSheri cainOpengl is a registered trademark and the opengl es logo is a trademark ofManaging EditorSilicon Graphics Inc. used by permission by khronosohn FulleThe Opengl ES shading language built-in functions described in Appendix b areProject EditorElizabeth Ryancopyrighted by khronos and are reprinted with permission from the OpenGL ES3.00. 4 Shading Language SpecificationCopy editorJill HobbsThe Open gL ES 3.0 Reference Card is copyrighted by Khronos and reprinted withIndexerpermissionInifodex Indexing Services,The authors and publisher have taken care in the preparation of this book, but makeIncsed or implied warranty of any kind and asbility for errors orProofreaderomissions. No liability is assumed for incidental or consequential damages in connection Linda Beglwith or arising out of the use of the information or programs contained hereinTechnical reviewersFor information about buying this title in bulk quantities, or for special salesEmmanuel aguopportunities(which may include electronic versions; custom cover designs; andPeter lohrmannntent particular to your business, training goalsfocus, or brandingMaurice ribbleinterests), please contact our corporate sales department atEditorial assistantcorpsales@pearsoned com or(800)382-3419Olivia basegionment sales inquiries, please contact governmeCover desiChuti PrasertsithForquestionsaboutsalesoutsidetheU.s.,pleasecontactinternational@pearsoned.comCompositorVisit us on the web: informit. com/awdiacritechLibrary of Congress Cataloging-in-Publication DataGinsburg, dan.OpengL ES 3.0 programming guide/ Dan Ginsburg, Budirijanto Purnomo; withearlier contributions from dave shreiner aaftab munshi -Second editionRevised edition of: The OpenGL ES 2.0 programming guide/ Aaftab MunshiDan Ginsburg, Dave Shreiner. 2009Includes bibliographical references and index.isBn978-0-321-93388-1(paperback alk paper)1. OpenGL. 2. Computer graphics--Specifications 3 Application programinterfaces( Computer software)4. Computer programming. I Purnomo, BudirijantoII. Shreiner, Dave. Il. Munshi, Aaftab. IV. TitleT385G54262014006.66-dc232013049233Copyright C 2014 Pearson Education, IncAll rights reserved. Printed in the United States of America. This publication isprotected by copyright, and permission must be obtained from the publisher priorto any prohibited reproduction, storage in a retrieval system, or transmission in anyform or by any means, electronic, mechanical, photocopying, recording, or likewiseTo obtain permission to use material from this work, please submit a written requestto Pearson Education, Inc, Permissions Department, One Lake Street, Upper SaddleRiver, New Jersey 07458, or you may fax your request to(201)236-3290ISBN-13:978-0-321-93388-1ISBN-10:0-32193388-5Text printed in the United States on recycled paper at RR Donnelley in Crawfordsville,IndiaFirst printing, March 2014ContentsList of Figures..……viiList of Examples. .........................................XXiList of tablesXXVForeword.……XXIXPrefaceXXXIIntended audienceOrganization of This Book……….….…….………………xxiExample Code and Shaders……XXXVIErrataXXXVIAcknowledgments mmm.XXXAbout the authors∴XXXIX1. Introduction to OpenGL ES 3.0.Opengl es 3.0…………………………3Vertexshader......ww...wwwwwww.....4Primitive assemblRasterization.…7Fragment SiPer- fragment Operations……What's New in OpenGL ES 3.0··.····;····························…11Texturing……………Shaders13Geometry∴…,…,…,…,…,…,…,…,…,………,……………15Buffer Objects…………….………………………16Framebuffer17OpengL es30 and Backward Compatibility………17EGL∴………19Programming with Opengl es 3.020Libraries and include files鲁音音音音20EGL Command syntaxOpengL ES Command Syntax……………………21Error handling22Basic state management23Further reading…252. Hello Triangle: An OpenGL ES3.0 Example.…………27Code framework28Where to Download the Examples......28Hello Triangle example………,…,…29Using the Opengl ES 3.0 Framework.34creating a Simple vertex and fragment shader.………………35Compiling and loading the Shaders……………Creating a Program Object and linking the shaders………38Setting the viewport and clearing the Color buffer-………….39Loading the geometry and drawing a Primitive.…………0Displaying the back buffer. .................................................................41ummary.423 An introduction to eglwmm43Communicating with the Windowing System……44Checking for Errors45Initializing egl.……,…,…,…,,…,…,46Determining the Available Surface Configurations46Querying EGLConfig Attributes………………….48Letting EGL Choose the Configuration51creating an on-screen rendering area: The egl window53Creating an off-Screen Rendering area: EGL Pbuffers.………56Creating a Rendering Context……60ontentsMaking an eglContext Current62Putting A! Our egl Knowledge Together………………63synchronizing rendering………66Summary674. Shaders and Programs69Shaders and programs………69Creating and Compiling a Shader..............70Creating and Linking a Program………………………………,7Uniforms and AttributesD·垂·垂·80Getting and Setting Uniforms….81Uniforn Buffer Objects….,,…,.,,…,………,,87Getting and Setting Attributes………………………92Shader compilerProgram Binaries……….,.,.….,….,….,….,..….,,…….94Summary.…955. Open GL Es Shading Language.......…..…97OpengL Es Shading Language Basics·音音音音音音音,,看8Shader version specification98Variables and variable types99Variable constructors100Vector and Matrix Components.…….…,…,…,…101Constants102Structures103Arrays…104Operators…….……….…………………….104Functions106Built-In functions107Control flow statements .Uniforms108Uniform blocks…………………109Vertex and fragment Shader Inputs/Outputs111Interpolation Qualifiers114Preprocessor and directi115Uniform and Interpolator packing………117

用户评论
请输入评论内容
评分:
Generic placeholder image 卡了网匿名网友 2019-05-15 04:05:23

不错,资源很清晰,不是扫描的。

Generic placeholder image 卡了网匿名网友 2019-05-15 04:05:23

最近需要学习一下 OpenGL ES 编程,这本书是这个领域的经典之作,但听说这本书的中文版翻译的很烂,所以找到英文版参考一下。 感谢分享。

Generic placeholder image 卡了网匿名网友 2019-05-15 04:05:23

完整版,不错的文档

Generic placeholder image 卡了网匿名网友 2019-05-15 04:05:23

文档很好,但是看到一点之后就开始不做es了。。。

Generic placeholder image 卡了网匿名网友 2019-05-15 04:05:23

非常好的文档,绝对没有问题,学习

Generic placeholder image 卡了网匿名网友 2019-05-15 04:05:23

不错的OpenGL ES方面的参考,值得拥有。

Generic placeholder image 卡了网匿名网友 2019-05-15 04:05:23

移动平台图形游戏开发人员最好的参考手册

Generic placeholder image 卡了网匿名网友 2019-05-15 04:05:23

nice 不错的文档,非常值得下载看

Generic placeholder image 卡了网匿名网友 2019-05-15 04:05:23

好书,值得下载,顶起来