how to run Opengl es 2.0 in imx51

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

how to run Opengl es 2.0 in imx51

1,749 次查看
shriram
Contributor I

Hi All,

 

I'm trying to run opengl es 2.0 sample code on imx 51.i'm using the sample program which is given in the demo file(es20/lesson02_imx.c). 

i used EGL_DEFAULT_DISPLAY as a display argument .

then  it got iniialised using egl initialise.

But  while using function eglChooseconfig, it returns error "EGL not initialised".

Can anyone clarify? is anyone working on opengl es in the imx 51?

标记 (1)
0 项奖励
回复
2 回复数

1,354 次查看
shriram
Contributor I
yes, it returns EGL_TRUE.

Xianzhong Li said:

did your eglInitlizae return EGL_TRUE instead of EGL_NOT_INITIALIZED?

 

 

  •  display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
  •  eglInitialize(display, NULL, NULL);
  •  eglChooseconfig(display, NULL, &config, 1, &numConfigs);
0 项奖励
回复

1,354 次查看
XianzhongLi
NXP Employee
NXP Employee

did your eglInitlizae return EGL_TRUE instead of EGL_NOT_INITIALIZED?

 

  •  display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
  •  eglInitialize(display, NULL, NULL);
  •  eglChooseconfig(display, NULL, &config, 1, &numConfigs);
0 项奖励
回复