Ejemplo n.º 1
0
 //public bool animated = true;
 public void DrawBorder()
 {
     boundingbox.animateupdate(Globals.panelanimated);
     //RendererWrapper.SetBlendMode(RendererWrapper.BlendModes.Add);
     //RendererWrapper.DrawRectangle(boundingbox.ExpandTop(captionheight), bordercolor.Fade(0.5), glowradius, outer: true, glow: true);
     RendererWrapper.SetBlendMode(RendererWrapper.BlendModes.Normal);
     RendererWrapper.DrawRectangle(boundingbox, bordercolor, borderwidth, outer: true);
     RendererWrapper.DrawRectangle(boundingbox, bordercolor, -1);
     RendererWrapper.DrawRectangle(boundingbox, backgroundcolor, -1);
     RendererWrapper.DrawCaption(captionheight, boundingbox.left - borderwidth, boundingbox.top + borderwidth, caption, bordercolor);
 }
Ejemplo n.º 2
0
        static void init_graphics()
        {
            //Gl.glEnable(Gl.GL_LIGHTING);
            //Gl.glEnable(Gl.GL_LIGHT0);
            //float[] light_pos = new float[3] { 1, 0.5F, 1 };
            //Gl.glLightfv(Gl.GL_LIGHT0, Gl.GL_POSITION, light_pos);
            Gl.glEnable(Gl.GL_COLOR_MATERIAL);
            Gl.glEnable(Gl.GL_DEPTH_TEST);
            //Gl.glEnable(Gl.GL_STENCIL_TEST);
            Gl.glEnable(Gl.GL_BLEND);
            RendererWrapper.SetBlendMode(RendererWrapper.BlendModes.Normal);
            Gl.glClearColor(0.1f, 0.1f, 0.1f, 0.0f);
            Gl.glClearDepth(1.0);

            Wgl.wglSwapIntervalEXT(-1);

            Globals.thserial.Start();
            Globals.thapp.Start();
            Debug.Print(Wgl.wglGetSwapIntervalEXT().ToString());
        }