상속: Android.Views.SurfaceView, Android.Views.ISurfaceHolderCallback
예제 #1
0
        private void Init()
        {
            // Install a SurfaceHolder.Callback so we get notified when the
            // underlying surface is created and destroyed
            SurfaceHolder holder = this.Holder;

            holder.AddCallback(this);
            holder.SetType(Android.Views.SurfaceType.Gpu);
            this.RenderMode = RENDERMODE_CONTINUOUSLY;

            GLSurfaceView.Instance = this;
        }
예제 #2
0
        private void Init()
        {
            // Install a SurfaceHolder.Callback so we get notified when the
            // underlying surface is created and destroyed
            SurfaceHolder holder = this.Holder;
            holder.AddCallback(this);
            holder.SetType(Android.Views.SurfaceType.Gpu);
            this.RenderMode = RENDERMODE_CONTINUOUSLY;

            GLSurfaceView.Instance = this;
        }