public BasicCustomVideoRenderer(Context context) { this.mContext = context; mView = new GLSurfaceView(context); mView.EGLContextClientVersion = 2; mRenderer = new MyRenderer(this); mView.Renderer = mRenderer; mView.RenderMode = GLSurfaceView.RENDERMODE_WHEN_DIRTY; }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // 创建一个GLSurfaceView,用于显示OpenGL绘制的图形 GLSurfaceView glView = new GLSurfaceView(this); // 创建GLSurfaceView的内容绘制器 MyRenderer myRenderer = new MyRenderer(this); // 为GLSurfaceView设置绘制器 glView.SetRenderer(myRenderer); // Set our view from the "main" layout resource SetContentView(glView); detector = new GestureDetector(this, this); }
public CustomVideoRenderer(Context context) { this.mContext = context; mView = new GLSurfaceView(context); mView.EGLContextClientVersion = 2; mRenderer = new MyRenderer(); mView.Renderer = mRenderer; mView.RenderMode = GLSurfaceView.RENDERMODE_WHEN_DIRTY; }
public MyToolStrip() { Renderer = new MyRenderer(); }
public W8MenuStrip() { Renderer = new MyRenderer(); BackColor = Color.WhiteSmoke; Font = font; }