Example #1
0
        protected void InitNativeCreatedWindow(NamedParameterList miscParams)
        {
            LogManager.Instance.Write("\tInitNativeCreateWindow called");

            if (miscParams != null)
            {
                if (miscParams.ContainsKey("externalWindowInfo"))
                {
                    this.windowInfo = (IWindowInfo)miscParams["externalWindowInfo"];
                }
                if (miscParams.ContainsKey("externalGLContext"))
                {
                    var value = miscParams["externalGLContext"];
                    if (value is IGraphicsContext)
                    {
                        this.context = new AndroidContext(this.glSupport, (value as IGraphicsContext), this.windowInfo);
                    }
                    else
                    {
                        var ex = new InvalidCastException();
                        throw new AxiomException("externalGLContext must be of type IGraphicsContext", ex);
                    }
                }
            }
        }
Example #2
0
 public AndroidWindow(AndroidSupport glSupport)
 {
     this.glSupport = glSupport;
     this.closed    = false;
     this.context   = null;
 }
Example #3
0
		public AndroidWindow( AndroidSupport glSupport )
		{
			this.glSupport = glSupport;
			this.closed = false;
			this.context = null;
		}
Example #4
0
		protected void InitNativeCreatedWindow( NamedParameterList miscParams )
		{
			LogManager.Instance.Write( "\tInitNativeCreateWindow called" );

			if ( miscParams != null )
			{
				if ( miscParams.ContainsKey( "externalWindowInfo" ) )
				{
					this.windowInfo = (IWindowInfo) miscParams[ "externalWindowInfo" ];
				}
				if ( miscParams.ContainsKey( "externalGLContext" ) )
				{
					var value = miscParams[ "externalGLContext" ];
					if ( value is IGraphicsContext )
					{
						this.context = new AndroidContext( this.glSupport, ( value as IGraphicsContext ), this.windowInfo );
					}
					else
					{
						var ex = new InvalidCastException();
						throw new AxiomException( "externalGLContext must be of type IGraphicsContext", ex );
					}
				}
			}
		}