Exemple #1
0
        protected override void OnRenderFrame(EventArgs e)
        {
            if (image != null)
            {
                texture.Draw();
            }

            base.OnRenderFrame(e);
        }
        protected override void OnRenderFrame(EventArgs e)
        {
            base.OnRenderFrame(e);
            var image = Image;

            if (image != null)
            {
                GL.Disable(EnableCap.Texture2D);
                GL.Color3(Color.White);
                GL.Enable(EnableCap.Texture2D);
                if (labelImage != null)
                {
                    if (refreshLabels)
                    {
                        UpdateLabelTexture();
                        refreshLabels = false;
                    }
                    labelTexture.Draw();
                }
            }
        }
Exemple #3
0
 protected virtual void RenderFrame()
 {
     imageTexture.Draw();
 }