|
Instructions
Instructions for building the OpenGL ES 2.0 Programming Guide sample code.
Supported PlatformsThe sample code from the book is available for the following platforms:
iPhonePrerequisitesIn order to be able to build and run the code samples, you will need:
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 InstructionsInstructions 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. WindowsPrerequisitesIn order to be able to build and run the code samples, you will need:
You will need to download and install the following: In order to build and run the code samples, you will need
ExamplesAll 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.
Setup Instructions
Alternative: Setup Instructions Using the PowerVR SDK
WebGLThe 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 at http://www.opengles-book.com/webgl.html. AndroidI 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 ADTTo build the code using Android SDK API 8 (or greater), in Eclipse:
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). LinuxThe 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/X11Once 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 platformsThe 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 these examples the Mesa solution is sufficient, even without hardware acceleration enabled. The examples have been test driven with following configurations:
BlackberryPlease see the README.md file in the Blackberry folder of the source tree for instructions on installing and building the samples for the Blackberry Native SDK. |
ok
Good job! These webgl examples is exactly what I'm looking for.
I couldn't run the example on iPhone Sdk 4 , it seems like the libCommon.a is not there even though I successfully build the common xcodeproj? or am I doing something wrong?
Has anyone been able to download the iPhone samples? I'm getting a message that the repository doesn't exist.
Same here... repository doesnt exist.....
I've just download all examples (including IPhone) without problem
any one done for using emulator
at this stage after building and running , ..
dll = First-chance exception at 0x00000000 in Simple_VertexShader?.exe: 0xC0000005: Access violation reading location 0x00000000.
The same happening for all the programs ,,, please help in this issue ,,
and i am a newbee to this open Gl es
Error on ubuntu 10.04 LTS ==>
xxxxxxxxxx@ubuntu:~$ sudo apt-get install make gcc libgles2-mesa-dev Reading package lists... Done Building dependency tree Reading state information... Done make is already the newest version. gcc is already the newest version. E: Couldn't find package libgles2-mesa-dev
What repository is this located at?
I am using PowerVR SDK, and it is work well.
got all of the examples working for webOS on the HP TouchPad?. It needed a conversion from EGL to SDL though (EGL API is not public in the webOS PDK). If anybody is interested I can post the patch somewhere.
I was unable to dl the webgl samples =[
Tortoise SVN says "Does not exist"
What about supporting OpenGL ES 2.0 in Android emulator to run Android samples on Desktop?
Any plans on showing how to implement the tutorials in c on android through jni?
I am running into the same problem as JONO.
sabont@ubuntu:~$ sudo apt-get install libgles2-mesa-dev Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package libgles2-mesa-dev sabont@ubuntu:~$
I am running Ubuntu 10.04 LTS. I understand that this is not a "tested" version, but I would like to view and learn from the code just the same.
What would need to be modified to make this happen?
For those who aren't able to download the iPhone sample, just enter http://opengles-book-samples.googlecode.com/svn/trunk/ when asked for the URL and it downloads all.
how can i upgrade my samsung young to opengl 2.x?