コード例 #1
0
ファイル: MainActivity.cs プロジェクト: Xtremrules/dot42
 protected override void OnCreate(Bundle savedInstance)
 {
     base.OnCreate(savedInstance);          
 
     var glView = new GLSurfaceView(this);
     glView.SetRenderer(new MyRenderer());
     SetContentView(glView);
 }     
コード例 #2
0
		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);
		}
コード例 #3
0
ファイル: Activity1.cs プロジェクト: Nischalk/dsgdfg
        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;
        }
コード例 #4
0
 protected override void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate (savedInstanceState);
     mGLView = new DemoGLSurfaceView (this);
     SetContentView (mGLView);
 }