wince & Opengl ES how to?

Selçuk Cihan selcukcihan at gmail.com
Tue Jan 22 05:15:29 PST 2008


Thanks for the reply. At the beginning, the first thing i have tried
was exactly what you have said and i had included gles/gl.h; but i got
unresolved symbol errors etc. since there is a compatibility issue. I
have been inspecting wxglcanvas code; it seems that really not much
opengl code exists in it. However, there are some code pieces which
are related to opengl context, for instance there is a call to a
function named wglCreateContext on windows. Unfortunately
wglCreateContext and some more functions do not exist on windows
mobile platform. I will have to replace those function calls. I have
looked into the source code of GLUT ES to see how it manages to create
context etc., i have found out that it is using EGL calls. I am not
sure if i am following the right path, but i will try to incorporate
EGL function calls into wxglcanvas code. It is interesting though, i
believe i should not be the first person to try using opengl es
together with wxwidgets.

On Jan 22, 2008 12:31 AM, Vadim Zeitlin <vadim at wxwidgets.org> wrote:
> On Tue, 22 Jan 2008 00:15:06 +0200 Selçuk Cihan <selcukcihan at gmail.com> wrote:
>
> SC> the problem is, wince port of wxwidgets compiles fine when
> SC> wxUSE_GLCANVAS is set to 0; but when i set it to 1 to enable opengl
> SC> integration, the build fails since gl/gl.h header file is not opengl
> SC> es header file, it is opengl header file and it can not be found. i
> SC> want to be able to use opengl es. i have vincent's opengl es
> SC> implementation and the header file is gles/gl.h.
>
>  I see. I thought OpenGL ES was compatible with the normal version but I
> was clearly wrong. If even the file names differ, it's a bad sign but all
> hope is not lost yet -- wx uses a very limited subset of OpenGL API so
> maybe this subset is compatible with ES version. So did you try including
> gles/gl.h instead of gl/gl.h and checking if it goes any further?
>
>  If it does, we just need to do this under CE which is trivial. But if you
> have other problems, I'm afraid you'll have to look into them, I don't have
> time for this unfortunately.
>
>  Regards,
>
> VZ
>
> --
> TT-Solutions: wxWidgets consultancy and technical support
>                http://www.tt-solutions.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>
>




More information about the wx-users mailing list