示例#1
0
        public void MakeCurrent(EglContext context, EglSurface surface)
        {
            bool make = NativeMethods.eglMakeCurrent(this.m_ptr, surface.Ptr, surface.Ptr, context.Ptr);

            if (!make)
            {
                throw new Exception("Can't make current: " + NativeMethods.eglGetError());
            }
        }
示例#2
0
 public void MakeCurrent(EglSurface surface)
 {
     this.m_display.MakeCurrent(this, surface);
 }