AncaA's tech journal

30 Nov, 2007

Setting up the environment for using OpenGL ES with Visual Studio 2005 in Pocket Pc Development

Posted by: Anca Alimanescu In: OpenGL ES

In order to start the development of an Open GL ES application for the Pocket PC we will need the following:

1.An OpenGL ES implementation(Vincent Mobile 3D Rendering Library,Hybrid’s “Rasteroid” Implementation etc.) 2.Visual Studio 2005 Standard Edition(at least) as it contains the emulator and template projects for mobile development. 3.Pocket PC 2003 SDK.

In the following I am going to present you the steps needed to create an PocketPC application, on VSTO 2005, using OpenGL ES(Vincent implementation).

Steps on setting up the application:

1.Download the Vincent implementation library for Windows.

2.Unzip it and copy the header files and the library files in the Visual Studio directory Microsoft Visual Studio 8\SmartDevices\SDK\PocketPC2003\Include\ and Microsoft Visual Studio 8\SmartDevices\SDK\PocketPC2003\Lib\armv4, in the Pocket PC SDK. Make sure that in the Include folder you create a subfolder named GLES for example, where you include the header files located in the \include\GLES from the Vincent library. In the library Studio 8\SmartDevices\SDK\PocketPC2003\Lib\armv4 copy the content of the \bin\arm\Release folder.

3.Open Visual Studio 2005 and click File→ Create new project. Choose Visual C++ as programming language and select the Smart Device menu. From the project templates available choose Project Smart Device Win32 template. If you want to use Glut ES in implementing your project, you will specify in the wizard that you want a Win32 Console application. If you want to use just OpenGL ES you will choose a Win32 Windows application.

4.In the header file of the main cpp file make sure to include the OpenGl ES headers:

#include GLES/gl.h
#include GLES/egl.h

If you are using Glut Es make sure to add the

#include GLES/glutes.h

You should now link the project as well to the Glut Es library by cliking Project→ Project Properties→Configuration Properties→Linker→Command line. In the Command line here make sure to add glutes.lib library.

5.In order to test the project on the Pocket PC emulator, first you have to copy the libGLES_CM.dll file from the Vincent library in the Windows directory of the emulator(the same thing must be done for the mobile device). If you are using Glut ES, make sure to copy the glutes.dll file to the Windows directory of the emulator/pocket pc.

6.When launching the application you can run it either on the emulator or directy on the mobile device.

  • Share/Bookmark

6 Responses to "Setting up the environment for using OpenGL ES with Visual Studio 2005 in Pocket Pc Development"

1 | 시환

October 20th, 2008 at %I:%M %p

Avatar

Hi,
iam success step 4. but i don’t know my PPC emulator directory.
Help me plz.

2 | Anca A,

October 21st, 2008 at %I:%M %p

Avatar

Have you installed the emulator for the PPC on your computer?

3 | ranjit

February 25th, 2009 at %I:%M %p

Avatar

this articel is really a gud for new comers into the field of OpenGL Es
I have two questions

1) From where we can DownLoad PPC emulator
2) Do we need to download SDK fro Pocket PC 2003 or else it come as default with visual studio 2005

4 | Anca A,

February 26th, 2009 at %I:%M %p

Avatar

Ranjit,
As far as I recall the SDK comes with Visual Studio but you have to make sure to install it. Regarding the PPC emulator i think is also embedded in VSTO 2005.

5 | ranjit

February 27th, 2009 at %I:%M %p

Avatar

Hi,
Thanx for ur quick response.While setting path for OpenGL ES in my machine i am not able to understand the following point of step 5 ie

“the Windows directory of the emulator”

I am not able to find any such directory in my machine.Is it the same Windows directory in which Operating system files there or some other directory

6 | ranjit

March 4th, 2009 at %I:%M %p

Avatar

Hi Anca,
I need some help for the following issue.As i am developing an Pocket PC applicationin (using VC++).In this application i am trying to read shape file using shapelib library functions(downloaded from net)

The problem is as Pocket Pc uses Unicode character set but the Shapelib library uses Ascii character set.So whenever any shapelib library function is called by passing unicode character set it throws error.

My question is there any shapelib library which supports unicode character set

Comment Form

Arhive

Mobile Barcode

qrcode

This is a 2D-barcode containing the address of my mobile site.If your mobile has a barcode reader, simply snap this bar code with the camera and launch the site.

About me

Client-focused software engineer with high intellectual mobility and experience in international teams.

Some of my interests are open innovation, design patterns, networking, personal branding, blogging and study of foreign languages.

Enjoy your visit and don’t hesitate to leave me a feedback!


Software entropy

1. A computer program that is used will be modified.

2. When a program is modified, its complexity will increase, provided that one does not actively work against this.

Switch to our mobile site