c - Opengl es 2.0 without egl on desktop (windows) -


i have simple program on windows using visual studios 2008.

in code use gl functions i.e #include gles2/gl2.h , #include egl/egl.h

in code use egl initialization context. shown below.

it creates window , createeglcontext.

i not displaying result on screen. storing in memory not swapping display , surface buffer.

my issues want remove egl.h code how possible.

can give me idea. thank in advance

glboolean  createwindow1 ( escontext *escontext, const char* title, glint width, glint height,      gluint flags ) {    gluint attriblist[] =          {       egl_red_size,       5,      egl_green_size,     6,    egl_blue_size,      5,    egl_alpha_size,     (flags & es_window_alpha) ? 8 : egl_dont_care,    egl_depth_size,     (flags & es_window_depth) ? 8 : egl_dont_care,    egl_stencil_size,   (flags & es_window_stencil) ? 8 : egl_dont_care,    egl_sample_buffers, (flags & es_window_multisample) ? 1 : 0,    egl_none   };     if ( escontext == null )   {      return gl_false;   }    escontext->width = width;   escontext->height = height;    if ( !wincreate ( escontext, title) )     {     return gl_false;     }        if ( !createeglcontext ( escontext->hwnd,  &escontext->egldisplay,  &escontext->eglcontext,    &escontext->eglsurface,                     attriblist) )   {   return gl_false;   }     return gl_true;  } 

my answer solution assume. or can make our own framework if want or use other framework :)

@nicol bolas: thank edits. add opengl questions because doing opengl understand opengl es sub apl of opengl. suggest better edits help. lost ability post question before of multiple edits

egl provides “glue” layer between opengl es 2.0 (and other khronos graphics apis) , native windowing system running on computer, x window system common on gnu/linux systems, microsoft windows, or mac os x’s quartz. before egl can determine types of drawing surfaces, or other characteristics of underlying system matter, needs open communications channel windowing system. because every windowing system has different semantics, egl provides basic opaque type—the egldisplay—that encapsulates of system dependencies interfacing native windowing system. first operation application using egl need create , initialize connection local egl display.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -