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); } } } }
public AndroidWindow(AndroidSupport glSupport) { this.glSupport = glSupport; this.closed = false; this.context = null; }
public AndroidWindow( AndroidSupport glSupport ) { this.glSupport = glSupport; this.closed = false; this.context = null; }
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 ); } } } }