public GlassWall(Point3D from, Point3D to, double bottom, double height) : base(from, to, bottom, height) { divTexture = GlUtils.Texture("WOOD1"); double len = (to - from).Norm; this.glasshStep = len / Math.Floor(len / glasshStep); baseHeight = height - glassvStep * Math.Floor(height / glassvStep); if (baseHeight < glassvStep) { baseHeight += glassvStep; } muro = new SolidWall(from, to, bottom, baseHeight); muro.CloseUp(true); cristalId = Gl.glGenLists(1); Gl.glNewList(cristalId, Gl.GL_COMPILE); pintaCristal(); Gl.glEndList(); }