Ejemplo n.º 1
0
        void initGL()
        {
            GL.Enable (EnableCap.CullFace);
            GL.Enable (EnableCap.Blend);
            GL.BlendFunc(BlendingFactorSrc.SrcAlpha, BlendingFactorDest.OneMinusSrcAlpha);

            cube = vaoMesh.CreateCube ();
            texture = new Texture ("image/textest.png");
        }
Ejemplo n.º 2
0
        void initGL()
        {
            GL.Enable (EnableCap.CullFace);
            GL.Enable (EnableCap.Blend);
            GL.BlendFunc(BlendingFactorSrc.SrcAlpha, BlendingFactorDest.OneMinusSrcAlpha);

            cube = vaoMesh.CreateCube ();
            texture = new Texture ("image/textest.png");

            projection =
                Matrix4.CreatePerspectiveFieldOfView (
                    MathHelper.PiOver4,
                    ClientRectangle.Width / (float)ClientRectangle.Height, 1.0f, 10.0f);
            modelview = Matrix4.LookAt(new Vector3(5,5,5), Vector3.Zero, Vector3.UnitZ);
        }