Game Development Community

Modifyed ITorque 2D using PowerVR SDK on Windows

by Paul Bruner · in iTorque 2D · 12/16/2011 (1:44 pm) · 6 replies

Well I did it and it works ok. Thought I post what I have if anyone is interested.

Basically I modified the windows code to use the OpenGLES 1.1 SDK from PowerVR. The SDK itself is little more than a wrapper for OpenGL, however, this lets us make custom render routines in windows and it work in the iPhone. I made a tag called TORQUE_WINDOWS_IPHONE_EMULATION and peppered it though alto of the objects that have TORQUE_OS_IPHONE and __IPHONE__ set. I may of missed a few however, so this may be buggy but it runs the tutorials fine.

I also striped the loadlibrary routine within the platformGL. While I can see why its important in a PC game that you don't know the capabilities, its just easier to include the dll, libs and throw in the header, again, this is a hack and I admit it as much:P

I am unsure how it will compile on windows/mac/linux however. The main point of this build is make it easy for me to develop in windows and transport it easily to the iPhone/Android, so I am not interested in fixing those aspects. There is already to much to do to clean up the windows code and get the particle engine to use VBO's

Ok, I should of done this before as its smaller anyway:P Inside the zip is the library's and dll's you will need as well as a patch file I pulled from TortoiseSVN. I should of put it on an SVN to begin with:P

Anyway I copied the lib's and include into the MSPlatformSDK directory. You will need to copy the dll files in the same directory as the exe. You will also have to add "bitmapPvr.cc" in the dgl directory to the project. I haven't tested PVR loading yet however, but it doesn't throw errors when compiled.

Anyway here you go. I will be changing more of it but will try to keep the file directory's so these patches work. Oh, it must be a clean install of iTorque however, not sure if the patch will work on a custom install.

http://www.warlockd.com/patch.7z

PS - I also deleted the original source from my server, sorry about that. This is only for testing mind you. Eventually I will (try) to integrate Goggle's Angel Engine as the engine since its using the BSD licence. I hate DLL files and this will solve that:)

#1
12/16/2011 (2:14 pm)
Please make the download a patch so that it does not include the complete engine source code in an open environment.
#2
12/16/2011 (2:18 pm)
was easier back in the days when engine boards were not open and resources could be licensee limited
#3
12/17/2011 (2:09 pm)
Oh sorry, I will do a diff patch off it. Probably be smaller anyway:P
#4
12/17/2011 (2:31 pm)
Er humm. Doing a diff of my changes combines allot of the original source as well. Is there a private iTorque or TBE engine form I can go to?
#5
12/17/2011 (2:33 pm)
There is no longer a private forum for the product.
#6
12/17/2011 (8:34 pm)
There we go. Right now its just a 209 kb patch file. I hope that works, I can change it otherwise.