예제 #1
0
파일: Figure3D.cs 프로젝트: tirinox/Rays
 public void BuildVBO(bool Selected)
 {
     if (Selected)
     {
         Vbo.Colorizer(true, new Vector4(1, 0, 1, 1));
     }
     else
     {
         Vbo.Colorizer(false);
     }
     Vbo.Build(this.TransformedFaces);
 }
예제 #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;
            }
        }