Beispiel #1
0
 protected override void OnCreate(Bundle savedInstance)
 {
     base.OnCreate(savedInstance);          
 
     var glView = new GLSurfaceView(this);
     glView.SetRenderer(new MyRenderer());
     SetContentView(glView);
 }     
		protected override void OnCreate (Bundle bundle)
		{
			base.OnCreate (bundle);

			// Create a GLSurfaceView instance and set it
			// as the ContentView for this Activity
			mGLView = new MyGLSurfaceView (this);
			SetContentView (mGLView);
		}
Beispiel #3
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate (savedInstanceState);

            // Set our view from the "main" layout resource
            SetContentView (Resource.Layout.Main);

            // InitialiseRender();

            _effectView = FindViewById<GLSurfaceView> (Resource.Id.effectsview);
            _effectView.SetEGLContextClientVersion (2);
            _effectView.SetRenderer (this);
            _effectView.RenderMode = Rendermode.WhenDirty;
            CurrentEffect = Resource.Id.none;
        }
 protected override void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate (savedInstanceState);
     mGLView = new DemoGLSurfaceView (this);
     SetContentView (mGLView);
 }