PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Linking with another ES implementation

Hello ~ just started using Edge and have software rendering building OK on Windows Mobile 5. But! I would like to link to a GLES implementation that is neither PowerVR nor Rasteroid -- we have this libGLES_CM for some nVidia-accelerated goodness, but Edge apparently needs a wrapper .lib around it defining the EdgeGL_* functions? This page is pretty vague on the subject... It occurred to me that maybe the pluginpowervr.lib uses whatever GLES DLL it finds at runtime -- is that even remotely the case? When I link it in my app tells me it couldn't open the graphics device; some ideas:

- We need to build a new plugin.lib specifically for these nVidia libraries
- CL vs CM profiles: PVR uses CL, but mine is CM
- a config issue (fullscreen, res, etc) that I haven't looked into yet

Any help would be great, thanks,

~larry
lsheradon wrote: ... but Edge apparently needs a wrapper .lib around it defining the EdgeGL_* functions?

Not just Edge, this *.lib provides the interface to the *.dll, unless you want to talk to the DLL yourself, i.e. load it, look up the functions etc. And this approach wouldn't fit into the Edge framework (anyone correct me if I'm wrong on the last bit).

It occurred to me that maybe the pluginpowervr.lib uses whatever GLES DLL it finds at runtime -- is that even remotely the case? ...

It does in fact find whatever the name of it's paired DLL is - you said PVR uses the light profile - so it will find anything like e.g. libGLES_CL.dll. But there is no guarantee that this new pairing (i.e. original *.lib with custom *.dll) will work.

- We need to build a new plugin.lib specifically for these nVidia libraries
- CL vs CM profiles: PVR uses CL, but mine is CM
- a config issue (fullscreen, res, etc) that I haven't looked into yet

As for point one, yes you need a corresponding lib and you need the EGL/GLES header files for your library. I know for a fact that the Rasteroids lib uses different EGL types compared to e.g. the NVIDIA libs on the Gizmondo.

Second, IIRC CL is a subset of CM, so if you want to fully utilize your lib than get a proper CM wrapper.

Can't help you with the last bit, sorry.

HTH
Hi Larry,

We're currently working on adding nVidia accelerated hardware support to the EDGELIB SDK. A new wrapper library will be added to the 3.20 version which will be released this month.