Exemplo n.º 1
0
        private void Init()
        {
            GL.Enable(EnableCap.ProgramPointSize);
            GL.Enable(EnableCap.LineSmooth);
            GL.Enable(EnableCap.DepthTest);
            //GL.LineWidth(3.0f);

            Shaders.Init();
            renderer.Init();

            var result = Renderer.GeneratePositions(1, 4, 8);

            UpdateRotation();
        }
Exemplo n.º 2
0
        private void Init()
        {
            GL.Enable(EnableCap.ProgramPointSize);
            GL.Enable(EnableCap.LineSmooth);
            GL.Enable(EnableCap.DepthTest);
            GL.LineWidth(3.0f);

            Shaders.Init();
            renderer.Init();

            cube           = new Cube();
            planeDirection = new vec3(1, 1, 1);
            UpdateRotation();
        }