opengles2-book:OpenGL ES 2.0 编程指南示例代码

  • t3_237506
    了解作者
  • 14.2MB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-08 08:22
    上传日期
#Disclaimer 这是 Aaftab Munshi、Dan Ginsburg 和 Dave Shreiner 的 OpenGL ES 2.0 编程指南中代码的非官方 Git 镜像。 官方 SVN 镜像位于 。 将不接受对此存储库的拉取请求。 #Instructions 构建 OpenGL ES 2.0 编程指南示例代码。 ##Supported 平台本书中的示例代码可用于以下平台: 苹果手机 (Microsoft Visual Studio) 使用 AMD OpenGL ES 2.0 Emulator 或 PowerVR Khronos OpenGL ES 2.0 SDK WebGL 安卓 2.2+ Linux 黑莓 ##iPhone ###Prerequisites 为了能够构建和运行代码示例,您需要: Mac OS X 10.6.5 或更高版本 iOS 4.2 S
opengles2-book-master.zip
内容介绍
#Disclaimer This is an unofficial Git mirror of the the code from the OpenGL ES 2.0 Programming Guide by Aaftab Munshi, Dan Ginsburg, and Dave Shreiner. The official SVN mirror is located at [https://code.google.com/p/opengles-book-samples/](https://code.google.com/p/opengles-book-samples/). Pull requests to this repo will not be accepted. #Instructions for building the OpenGL ES 2.0 Programming Guide sample code. ##Supported Platforms The sample code from the book is available for the following platforms: * iPhone * (Microsoft Visual Studio) using the AMD OpenGL ES 2.0 Emulator or PowerVR Khronos OpenGL ES 2.0 SDK * WebGL * Android 2.2+ * Linux * Blackberry ##iPhone ###Prerequisites In order to be able to build and run the code samples, you will need: * Mac OS X 10.6.5 or later * iOS 4.2 SDK Please checkout the source code from the subversion repository by doing: `svn checkout http://opengles-book-samples.googlecode.com/svn/trunk/ opengles-book-samples-read-only` The iPhone projects are located in the `/iPhone` directory. ###Build Instructions Instructions for building and using the samples are in an e-Chapter on the iPhone 3GS available for download in PDF format from [this link](http://www.opengles-book.com/OpenGL_ES_20_Programming_Guide_iPhone_eChapter.pdf). ##Windows ###Prerequisites In order to be able to build and run the code samples, you will need: * Microsoft Windows XP or Windows Vista/7 * An OpenGL 2.0-capable Graphics Card * Microsoft Visual Studio 2005 or Microsoft Visual Studio 2008 (you can also use the free Express Edition [available from Microsoft](http://www.microsoft.com/express/download/). You will need to download and install the following: In order to build and run the code samples, you will need * AMD's OpenGL ES 2.0 Emulator which can be downloaded from [here](http://www.opengles-book.com/ESEmulator.2009-04-28-v1.4.APRIL_2009_RELEASE.msi). Please note that the OpenGL ES 2.0 Emulator is no longer being actively developed or supported by AMD. The most recent version is provided here for download as is, no support, feature enhancements or bug fixes will be provided by AMD for this software. * In order to view the `RenderMonkey` example workspaces, you will need to download and install `RenderMonkey` v1.81. This tool can be downloaded from AMD Developer Central [here](http://developer.amd.com/gpu/rendermonkey/Pages/default.aspx). * In order to build and run the OpenKODE sample in Chapter 15, you will need Acrodea's OpenKODE 1.0 Implementation for Windows. This can be downloaded from [here](http://www.acrodea.co.jp/en/openkode/) (NOTE: if you do not care to build/run the OpenKODE sample in Chapter 15, you can skip this step). ###Examples All of the code samples and `RenderMonkey` workspaces can either be checked out from the opengles-book-samples subversion tree or downloaded from the following [link](http://www.opengles-book.com/OpenGL_ES_Programming_Guide_v1.0.2.zip). * (Updated 4/19/09 - v1.0.2) Paul Bennett reported two bugs in esGenSphere() in esShapes.c..The new update includes his fixes. * (Updated 8/24/08 - v1.0.1) We have received reports that some users are having difficulty running the samples on Nvidia GPUs when using the AMD OpenGL ES 2.0 Emulator. To workaround this issue, we updated the sample framework to be compatible with the Imagination Technologies PowerVR SDK. For instructions on using the PowerVR SDK, please see [Instructions#Alternative: Setup Instructions Using the PowerVR SDK Alternative: Setup Instructions Using the PowerVR SDK]. * For those users running on an Nvidia GPU and still wanting to use the `RenderMonkey` samples, Till Rathmann posted a workaround over at the AMD Developer Forums at the following [link](http://forums.amd.com/devforum/messageview.cfm?catid=347&threadid=106798) (7/26/09). ###Setup Instructions * Unzip `OpenGL_ES_Programming_Guide_v1.0.1.zip` to its own folder or checkout the opengles-book-samples project from subversion. * If you have not done so already, install AMD's OpenGL ES 2.0 Emulator. * Copy the following files from `C:\program files\AMD\OpenGL ES 2.0 Emulator v1.1\bin` to the `\Bin` folder: * libEGL.dll * libGLESv2.dll * Copy the following files from `C:\program files\AMD\OpenGL ES 2.0 Emulator v1.1\lib` to the `\Lib` folder: * libEGL.lib * libGLESv2.lib * For the OpenKODE sample in Chapter 15, place the following file from Acrodea's OpenKODE Implementation to the `\Lib` folder: * libKD.lib ###Alternative: Setup Instructions Using the PowerVR SDK * Unzip `OpenGL_ES_Programming_Guide_v1.0.1.zip` to its own folder. * Download Imagination Technologies Khronos OpenGL ES 2.0 SDK from [here](http://www.imgtec.com/powervr/insider/sdkdownloads/index.asp). * Copy the following files from `C:\Imagination Technologies\PowerVR SDK\OGLES2_WINDOWS_PCEMULATION_2.02.22.0756\Builds\OGLES2\WindowsPC\Lib` to the `\Bin` folder: * libEGL.dll * libGLESv2.dll * Copy the following files from `C:\Imagination Technologies\PowerVR SDK\OGLES2_WINDOWS_PCEMULATION_2.02.22.0756\Builds\OGLES2\WindowsPC\Lib` to the `\Lib` folder: * libEGL.lib * libGLESv2.lib * Copy all of the files from `C:\Imagination Technologies\PowerVR SDK\OGLES2_WINDOWS_PCEMULATION_2.02.22.0756\Builds\OGLES2\Include` to the `\Common\Include` folder (overwriting the existing headers). * For the OpenKODE sample in Chapter 15, place the following file from Acrodea's OpenKODE Implementation to the \Lib folder: * libKD.lib ##WebGL The WebGL sample code is available from the opengles-book-samples subversion repository. `svn checkout http://opengles-book-samples.googlecode.com/svn/trunk/ opengles-book-samples-read-only` You can also view the WebGL sample code in action [here](http://www.opengles-book.com/webgl.html). ##Android I have ported most of the samples to Java on Android 2.2. As of this writing, the emulator does not support OpenGL ES 2.0, so you will have to run the samples on your Android 2.2 device. The code is available in the subversion repository in the `/Android` directory. ###Building with the Eclipse ADT To build the code using Android SDK API 8 (or greater), in Eclipse: * Do Import... -> "Existing Projects into Workspace" * Point to the `/Android' subdirectory * Select all of the example projects to import That's it. You should then be able to run on an Android 2.2-device (I have tested them only on the Motorola DroidX, let me know if there are problems on your device). ##Linux The Linux versions of the examples have been tested to run against Ubuntu Linux 11.04, 11.11 and Fedora Linux 15. Before trying to compile the source make sure the development environment is set up correctly. To do so, run these commands based on your operating system: Ubuntu 11.04/11.11: `sudo apt-get install make gcc libgles2-mesa-dev` Fedora 15: `su -c "yum install make gcc mesa-libGLES-devel mesa-libEGL-devel"` Note that you will need superuser rights for the environment you are operating in. ###Building for Linux/X11 Once the development environment is setup, compiling of the examples is done using the included Makefile. Type: `make` and the process should be completed automatically. Final executables for each example are stored in the subfolder tree. The compiled executables are runnable from their respective places. ###Other than Ubuntu/Fedora based Linux platforms The examples are compilable with any Linux/X11 based operating system, which can provide needed requirements. The exact requirements would be development headers for EGL and GLESv2. Those can be obtained from khronos.org directly. Another thing are the EGL and GLESv2 runtime libraries. Those files would be platform specific, and in that case it is suggested to contact your platform vendor for obtaining those. However, majority of the linux distributions are shipping Mesa, which includes GLESv2 and EGL implementations. For
评论
    相关推荐
    • Git测试
      Git测试
    • GIT和小乌龟
      Git是目前世界上最先进的分布式版本控制系统(没有之一)。 Git有什么特点?简单来说就是:高端大气上档次!
    • git-guide
      git指南 基本 重要的GIT命令 Init :初始化存储库 Status :显示当前更改和暂存文件 Add :将文件添加到暂存区 Commit :将更改写入本地存储库 Checkout :移至修订树中的另一点 Diff :比较树中的两个点 Log :评论...
    • 个人网站git
      个人网站git
    • eclipse中使用git
      eclipse中使用git,实现项目组代码的实时更新,便于开发,加快项目的开发速度
    • Git Magic
      Git Magic 原汁原味的英文Git教程,助你掌握git
    • git学习资料
      该文件夹包含的文件包括Git廖雪峰.pdf、Git使用教程.pdf、git使用教程-史上最全,最简洁的使用教程 .pdf
    • git:示例git
      git:示例git
    • Git-AzOps-Accelerator
      AzOps加速器 该模板存储库用于部署新的AzOps环境。 ...在此项目的修改版本中使用Microsoft商标或徽标不得引起混淆或暗示Microsoft赞助。任何使用第三方商标或徽标的行为均应遵守这些第三方的政策。
    • 廖雪峰 Git教程
      廖雪峰 Git教程