Inheritance: GLESSupport
Esempio n. 1
0
		/// <summary>
		/// 
		/// </summary>
		/// <param name="eglDisplay"></param>
		/// <param name="support"></param>
		/// <param name="fbconfig"></param>
		/// <param name="drawable"></param>
		public AndroidContext( AndroidGraphicsContext glContext, AndroidSupport support )
		{
			_glSupport = support;
			//_drawable = drawable;
			_context = glContext;
			//_config = fbconfig;
			//_eglDisplay = eglDisplay;

			//Contract.Requires(_drawable != null);
			//GLESRenderSystem rendersystem = (GLESRenderSystem)Root.Instance.RenderSystem;
			//GLESContext mainContext = rendersystem.MainContext;
			//EGLCONTEXT shareContext = null;
			//if (mainContext != null)
			//{
			//    shareContext = mainContext.con;
			//}
			//if (mainContext == null)
			//{
			//    throw new AxiomException("Unable to create a suitable EGLContext");
			//}

			// _context = _glSupport.CreateNewContext(_eglDisplay, _config, shareContext);
		}
Esempio n. 2
0
        /// <summary>
        /// </summary>
        /// <param name="eglDisplay"> </param>
        /// <param name="support"> </param>
        /// <param name="fbconfig"> </param>
        /// <param name="drawable"> </param>
        public AndroidContext(AndroidGraphicsContext glContext, AndroidSupport support)
        {
            this._glSupport = support;
            //_drawable = drawable;
            this._context = glContext;
            //_config = fbconfig;
            //_eglDisplay = eglDisplay;

            //Contract.Requires(_drawable != null);
            //GLESRenderSystem rendersystem = (GLESRenderSystem)Root.Instance.RenderSystem;
            //GLESContext mainContext = rendersystem.MainContext;
            //EGLCONTEXT shareContext = null;
            //if (mainContext != null)
            //{
            //    shareContext = mainContext.con;
            //}
            //if (mainContext == null)
            //{
            //    throw new AxiomException("Unable to create a suitable EGLContext");
            //}

            // _context = _glSupport.CreateNewContext(_eglDisplay, _config, shareContext);
        }