Ejemplo n.º 1
0
 internal JawChuck BuildChawJuck()
 {
     JawChuck = new JawChuck();
     BuildJaw();
     BuildChucks();
     BuildRotatingJaw();
     return JawChuck;
 }
Ejemplo n.º 2
0
        internal void Initialize()
        {
            LogWriter.Write("OpenGL Version: " + GL.GetString(StringName.Version) + Environment.NewLine, "Output", 0);
            GL.ClearColor(BackgroundColor);
            GL.ShadeModel(ShadingModel.Smooth);
            GL.Enable(EnableCap.DepthTest);
            SetUpLighting();
            GL.Enable(EnableCap.CullFace);
            GL.CullFace(CullFaceMode.Back);

            m_ZoomFactor = Initializer.StartZoom;
            AddRenderableModel(machineZero);
            AddRenderableModel(partZero);
            AddRenderableModel(toolZero);

            JawChuckBuilder b = new JawChuckBuilder();
            m_JawChuck = b.BuildChawJuck();
            AddRenderableModel(m_JawChuck);
            OpenTK.Graphics.GraphicsContext.CurrentContext.VSync = true;
        }