Inheritance: 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;
        }