Esempio n. 1
0
 public void BuildVBO(bool Selected)
 {
     if (Selected)
     {
         Vbo.Colorizer(true, new Vector4(1, 0, 1, 1));
     }
     else
     {
         Vbo.Colorizer(false);
     }
     Vbo.Build(this.TransformedFaces);
 }
Esempio n. 2
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;
            }
        }