Esempio n. 1
0
        public void BuildVBO(bool RaysList)
        {
            if (!HasFonts)
            {
                FontSmall = new FontGL("Verdana", 10);
                FontLarge = new FontGL("Verdana", 16);
                HasFonts  = true;
            }

            if (!RaysList)
            {
                DeleteList(ref DisplayListScene);
                DisplayListScene = Gl.glGenLists(1);
                Gl.glNewList(DisplayListScene, Gl.GL_COMPILE);
                Render1(false);
                Gl.glEndList();
            }
            else
            {
                RaysVBO.Build(AllRays, Parrent.LineWidth, Parrent.TubeRenderStyle, PercentVisible);
                RaysVisible = true;
            }
        }
Esempio n. 2
0
 private void PlotForm_Load(object sender, EventArgs e)
 {
     Canvas.InitializeContexts();
     Utils.SetupGL();
     MyFont = new FontGL("Verdana", 10);
 }