Susmith M R wrote:
[...]
> I was testing one small program on android . I got this program from
> one of the OpenGL site.

The problem is here:

[...]
>       m_eglContext = eglCreateContext(m_eglDisplay, myConfig, 0,
> attrib_list);

That third parameter (which is 0, and I have no idea how Khronos ever
imagined this program would work) is a NativeWindowType, which is a
handle to a *platform-specific* window structure that provides the
interface between the EGL layer and the platform.

Unfortunately, we have no way of knowing what Android is using for this,
which means we have no way of creating it. It's probably going to be a
handle to some structure encapsulating a View, and most likely will have
to be created from inside Java code --- which means I doubt you'll have
much luck doing anything in pure C.

-- 
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│ "I have always wished for my computer to be as easy to use as my
│ telephone; my wish has come true because I can no longer figure out
│ how to use my telephone." --- Bjarne Stroustrup

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to