OpenGL ES

6-09 1,338 views

void egl_demo() 
{  
  EGLDisplay display = eglGetDisplay (EGL_DEFAULT_DISPLAY);
   eglInitialize(display , 0, 0);

  EGLConfig config;
   eglChooseConfig(display , attribs, & config, 1, &numConfigs ); 

  EGLSurface surface = eglCreateWindowSurface(display, config, ANativeWindow , NULL);
  EGLContext  context = eglCreateContext (display, config, NULL , NULL);
  eglMakeCurrent (display, surface, surface , context)

  while(true){
    //opengl绘制
    glxx();

    eglSwapBuffers(display , surface );
  }

  eglDestroyContext( display , context );
  eglDestroySurface(display , surface );
  eglTerminate(display );
}

opengl round rectangle

fragment shader #version 330 core uniform vec3 iResolution; // viewport resolution (in pixels) uniform float iTime; ...

阅读全文

4 条评论

  1. With havin so much written content do you ever run into any problems of plagorism or copyright violation? My
    blog has a lot of exclusive content I’ve either
    authored myself or outsourced but it seems a lot of it is popping it up all over
    the web without my agreement. Do you know any methods to help stop content from being ripped off?
    I’d genuinely appreciate it. http://www.betfortuna1.com/188bet

  2. With havin so much written content do you ever run into any problems of plagorism or copyright violation? My blog has a lot of exclusive content I’ve
    either authored myself or outsourced but it seems a lot of
    it is popping it up all over the web without my agreement.
    Do you know any methods to help stop content from being ripped off?

    I’d genuinely appreciate it. http://www.betfortuna1.com/188bet

欢迎留言