Example #1
0
 protected override void OnCreate(Bundle savedInstance)
 {
     base.OnCreate(savedInstance);          
 
     var glView = new GLSurfaceView(this);
     glView.SetRenderer(new MyRenderer());
     SetContentView(glView);
 }     
Example #2
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;
        }