コード例 #1
0
        public override void PresentStep(int index, PresentationViewController presentationViewController)
        {
            switch (index)
            {
            case 0:
                // Set the slide's title
                // And make the bullets we will add later to fade in
                TextManager.SetTitle("Outline");
                TextManager.FadesIn = true;
                break;

            case 1:
                TextManager.AddBulletAtLevel("Scene graph", 0);
                break;

            case 2:
                TextManager.AddBulletAtLevel("Build an application with Scene Kit", 0);
                break;

            case 3:
                TextManager.AddBulletAtLevel("Extending with OpenGL", 0);
                break;

            case 4:
                TextManager.AddBulletAtLevel("What’s new in OS X 10.9", 0);
                break;

            case 5:
                TextManager.AddBulletAtLevel("Performance notes", 0);
                break;
            }
        }
コード例 #2
0
        public override void SetupSlide(PresentationViewController presentationViewController)
        {
            TextManager.SetTitle("Creating a Scene");

            TextManager.AddBulletAtLevel("Creating programmatically", 0);
            TextManager.AddBulletAtLevel("Loading a scene from a file", 0);
        }
コード例 #3
0
        public override void PresentStep(int index, PresentationViewController presentationViewController)
        {
            switch (index)
            {
            case 0:
                // Set the slide's title and subtile
                TextManager.SetTitle("Performance");
                TextManager.SetSubtitle("Texturing");

                // From now on, every text we add will fade in
                TextManager.FadesIn = true;
                break;

            case 1:
                TextManager.AddBulletAtLevel("Avoid unnecessarily large images", 0);
                break;

            case 2:
                TextManager.AddBulletAtLevel("Lock ambient and diffuse", 0);
                TextManager.AddCode("#aMaterial.#LocksAmbientWithDiffuse# = true;#");
                break;

            case 3:
                TextManager.AddBulletAtLevel("Use mipmaps", 0);
                TextManager.AddCode("#aMaterial.Diffuse.#MipFilter# = #SCNFilterMode.Linear#;#");
                break;
            }
        }
コード例 #4
0
		public override void SetupSlide (PresentationViewController presentationViewController)
		{
			TextManager.SetTitle ("Creating a Scene");

			TextManager.AddBulletAtLevel ("Creating programmatically", 0);
			TextManager.AddBulletAtLevel ("Loading a scene from a file", 0);
		}
コード例 #5
0
ファイル: SlideOutline.cs プロジェクト: RangoLee/mac-samples
		public override void PresentStep (int index, PresentationViewController presentationViewController)
		{
			switch (index) {
			case 0:
				// Set the slide's title
				// And make the bullets we will add later to fade in
				TextManager.SetTitle ("Outline");
				TextManager.FadesIn = true;
				break;
			case 1:
				TextManager.AddBulletAtLevel ("Scene graph", 0);
				break;
			case 2:
				TextManager.AddBulletAtLevel ("Build an application with Scene Kit", 0);
				break;
			case 3:
				TextManager.AddBulletAtLevel ("Extending with OpenGL", 0);
				break;
			case 4:
				TextManager.AddBulletAtLevel ("What’s new in OS X 10.9", 0);
				break;
			case 5:
				TextManager.AddBulletAtLevel ("Performance notes", 0);
				break;
			}
		}
コード例 #6
0
        public override void SetupSlide(PresentationViewController presentationViewController)
        {
            TextManager.SetTitle("Rendering a Scene");

            TextManager.AddBulletAtLevel("Assign the scene to the renderer", 0);
            TextManager.AddBulletAtLevel("Modifications of the scene graph are automatically reflected", 0);

            TextManager.AddCode("#// Assign the scene \nSCNView.#Scene# = aScene;#");
        }
コード例 #7
0
		public override void SetupSlide (PresentationViewController presentationViewController)
		{
			TextManager.SetTitle ("Loading a DAE");
			TextManager.SetSubtitle ("Sample code");

			TextManager.AddCode ("#// Load a DAE"
			+ "\n"
			+ "var scene = SCNScene.#FromFile# (\"yourPath\");#");
		}
コード例 #8
0
        public override void SetupSlide(PresentationViewController presentationViewController)
        {
            TextManager.SetTitle("Loading a DAE");
            TextManager.SetSubtitle("Sample code");

            TextManager.AddCode("#// Load a DAE"
                                + "\n"
                                + "var scene = SCNScene.#FromFile# (\"yourPath\");#");
        }
コード例 #9
0
		public override void SetupSlide (PresentationViewController presentationViewController)
		{
			TextManager.SetTitle ("Extending Scene Kit with OpenGL");

			TextManager.AddBulletAtLevel ("Scene delegate rendering", 0);
			TextManager.AddBulletAtLevel ("Node delegate rendering", 0);
			TextManager.AddBulletAtLevel ("Material custom program", 0);
			TextManager.AddBulletAtLevel ("Shader modifiers", 0);
		}
コード例 #10
0
		public override void SetupSlide (PresentationViewController presentationViewController)
		{
			TextManager.SetTitle ("Scene Manipulation");
			TextManager.SetSubtitle ("Animating");

			TextManager.AddBulletAtLevel ("Properties are animatable", 0);
			TextManager.AddBulletAtLevel ("Implicit and explicit animations", 0);
			TextManager.AddBulletAtLevel ("Same programming model as Core Animation", 0);
		}
コード例 #11
0
        public override void SetupSlide(PresentationViewController presentationViewController)
        {
            TextManager.SetTitle("Scene Manipulation");
            TextManager.SetSubtitle("Animating");

            TextManager.AddBulletAtLevel("Properties are animatable", 0);
            TextManager.AddBulletAtLevel("Implicit and explicit animations", 0);
            TextManager.AddBulletAtLevel("Same programming model as Core Animation", 0);
        }
コード例 #12
0
        public override void SetupSlide(PresentationViewController presentationViewController)
        {
            TextManager.SetTitle("Extending Scene Kit with OpenGL");

            TextManager.AddBulletAtLevel("Scene delegate rendering", 0);
            TextManager.AddBulletAtLevel("Node delegate rendering", 0);
            TextManager.AddBulletAtLevel("Material custom program", 0);
            TextManager.AddBulletAtLevel("Shader modifiers", 0);
        }
コード例 #13
0
		public override void SetupSlide (PresentationViewController presentationViewController)
		{
			TextManager.SetTitle ("Rendering a Scene");

			TextManager.AddBulletAtLevel ("Assign the scene to the renderer", 0);
			TextManager.AddBulletAtLevel ("Modifications of the scene graph are automatically reflected", 0);

			TextManager.AddCode ("#// Assign the scene \nSCNView.#Scene# = aScene;#");
		}
コード例 #14
0
        public override void SetupSlide(PresentationViewController presentationViewController)
        {
            TextManager.SetTitle("Scene Manipulation");
            TextManager.SetSubtitle("Code example");

            TextManager.AddCode("#// Move a node to another position. \n"
                                + "aNode.#Position# = new SCNVector3 (0, 0, 0); \n"
                                + "aNode.#Scale#    = new SCNVector3 (2, 2, 2); \n"
                                + "aNode.#Rotation# = new SCNVector4 (x, y, z, angle); \n"
                                + "aNode.#Opacity#  = 0.5f;#");
        }
コード例 #15
0
		public override void SetupSlide (PresentationViewController presentationViewController)
		{
			TextManager.SetTitle ("Scene Manipulation");
			TextManager.SetSubtitle ("Code example");

			TextManager.AddCode ("#// Move a node to another position. \n"
			+ "aNode.#Position# = new SCNVector3 (0, 0, 0); \n"
			+ "aNode.#Scale#    = new SCNVector3 (2, 2, 2); \n"
			+ "aNode.#Rotation# = new SCNVector4 (x, y, z, angle); \n"
			+ "aNode.#Opacity#  = 0.5f;#");
		}
コード例 #16
0
        public override void SetupSlide(PresentationViewController presentationViewController)
        {
            TextManager.SetTitle("Scene Manipulation");
            TextManager.SetSubtitle("Basics");

            TextManager.AddBulletAtLevel("Retrieve nodes", 0);
            TextManager.AddBulletAtLevel("Move, scale and rotate", 0);
            TextManager.AddBulletAtLevel("Animate", 0);
            TextManager.AddBulletAtLevel("Change colors and images", 0);
            TextManager.AddBulletAtLevel("Change lighting", 0);
            TextManager.AddBulletAtLevel("Clone", 0);
        }
コード例 #17
0
		public override void SetupSlide (PresentationViewController presentationViewController)
		{
			TextManager.SetTitle ("Scene Manipulation");
			TextManager.SetSubtitle ("Basics");

			TextManager.AddBulletAtLevel ("Retrieve nodes", 0);
			TextManager.AddBulletAtLevel ("Move, scale and rotate", 0);
			TextManager.AddBulletAtLevel ("Animate", 0);
			TextManager.AddBulletAtLevel ("Change colors and images", 0);
			TextManager.AddBulletAtLevel ("Change lighting", 0);
			TextManager.AddBulletAtLevel ("Clone", 0);
		}
コード例 #18
0
        public override void SetupSlide(PresentationViewController presentationViewController)
        {
            TextManager.SetTitle("More Information");

            TextManager.AddTextAtLevel("Allan Schaffer", 0);
            TextManager.AddTextAtLevel("Graphics and Game Technologies Evangelist", 1);
            TextManager.AddTextAtLevel("*****@*****.**", 2);
            TextManager.AddEmptyLine();

            TextManager.AddTextAtLevel("Documentation", 0);
            TextManager.AddTextAtLevel("Scene Kit Programming Guide", 1);
            TextManager.AddTextAtLevel("http://developer.apple.com", 2);
            TextManager.AddEmptyLine();

            TextManager.AddTextAtLevel("Apple Developer Forums", 0);
            TextManager.AddTextAtLevel("http://devforums.apple.com", 2);
            TextManager.AddEmptyLine();
        }
コード例 #19
0
ファイル: SlideMoreInfo.cs プロジェクト: RangoLee/mac-samples
		public override void SetupSlide (PresentationViewController presentationViewController)
		{
			TextManager.SetTitle ("More Information");

			TextManager.AddTextAtLevel ("Allan Schaffer", 0);
			TextManager.AddTextAtLevel ("Graphics and Game Technologies Evangelist", 1);
			TextManager.AddTextAtLevel ("*****@*****.**", 2);
			TextManager.AddEmptyLine ();

			TextManager.AddTextAtLevel ("Documentation", 0);
			TextManager.AddTextAtLevel ("Scene Kit Programming Guide", 1);
			TextManager.AddTextAtLevel ("http://developer.apple.com", 2);
			TextManager.AddEmptyLine ();

			TextManager.AddTextAtLevel ("Apple Developer Forums", 0);
			TextManager.AddTextAtLevel ("http://devforums.apple.com", 2);
			TextManager.AddEmptyLine ();
		}
コード例 #20
0
		public override void PresentStep (int index, PresentationViewController presentationViewController)
		{
			switch (index) {
			case 0:
				// Set the slide's title and subtile
				TextManager.SetTitle ("Performance");
				TextManager.SetSubtitle ("Texturing");

				// From now on, every text we add will fade in
				TextManager.FadesIn = true;
				break;
			case 1:
				TextManager.AddBulletAtLevel ("Avoid unnecessarily large images", 0);
				break;
			case 2:
				TextManager.AddBulletAtLevel ("Lock ambient and diffuse", 0);
				TextManager.AddCode ("#aMaterial.#LocksAmbientWithDiffuse# = true;#");
				break;
			case 3:
				TextManager.AddBulletAtLevel ("Use mipmaps", 0);
				TextManager.AddCode ("#aMaterial.Diffuse.#MipFilter# = #SCNFilterMode.Linear#;#");
				break;
			}
		}
コード例 #21
0
 public override void SetupSlide(PresentationViewController presentationViewController)
 {
     TextManager.SetChapterTitle("Scene Graph");
 }
コード例 #22
0
ファイル: SlideChapter6.cs プロジェクト: RangoLee/mac-samples
		public override void SetupSlide (PresentationViewController presentationViewController)
		{
			TextManager.SetChapterTitle ("Performance");
		}
コード例 #23
0
 public override void SetupSlide(PresentationViewController presentationViewController)
 {
     TextManager.SetChapterTitle("Performance");
 }
コード例 #24
0
ファイル: SlideChapter5.cs プロジェクト: RangoLee/mac-samples
		public override void SetupSlide (PresentationViewController presentationViewController)
		{
			TextManager.SetChapterTitle ("What's new in OS X 10.9");
		}
コード例 #25
0
ファイル: SlideChapter3.cs プロジェクト: RangoLee/mac-samples
		public override void SetupSlide (PresentationViewController presentationViewController)
		{
			TextManager.SetChapterTitle ("Building an Application\nwith Scene Kit");
		}
コード例 #26
0
 public override void SetupSlide(PresentationViewController presentationViewController)
 {
     TextManager.SetChapterTitle("Building an Application\nwith Scene Kit");
 }
コード例 #27
0
		public override void SetupSlide (PresentationViewController presentationViewController)
		{
			TextManager.SetTitle ("Scene Kit");
			TextManager.AddBulletAtLevel ("Introduced in Mountain Lion", 0);
			TextManager.AddBulletAtLevel ("Eases the integration of 3D into applications", 0);
		}
コード例 #28
0
 public override void SetupSlide(PresentationViewController presentationViewController)
 {
     TextManager.SetChapterTitle("What's new in OS X 10.9");
 }
コード例 #29
0
ファイル: SlideChapter4.cs プロジェクト: RangoLee/mac-samples
		public override void SetupSlide (PresentationViewController presentationViewController)
		{
			TextManager.SetChapterTitle ("Extending with OpenGL");
		}
コード例 #30
0
ファイル: SlideChapter2.cs プロジェクト: RangoLee/mac-samples
		public override void SetupSlide (PresentationViewController presentationViewController)
		{
			TextManager.SetChapterTitle ("Scene Graph");
		}
コード例 #31
0
ファイル: SlideChapter1.cs プロジェクト: RangoLee/mac-samples
		public override void SetupSlide (PresentationViewController presentationViewController)
		{
			TextManager.SetChapterTitle ("What's New in Scene Kit");
		}
コード例 #32
0
 public override void SetupSlide(PresentationViewController presentationViewController)
 {
     TextManager.SetTitle("Scene Kit");
     TextManager.AddBulletAtLevel("Introduced in Mountain Lion", 0);
     TextManager.AddBulletAtLevel("Eases the integration of 3D into applications", 0);
 }
コード例 #33
0
 public override void SetupSlide(PresentationViewController presentationViewController)
 {
     TextManager.SetChapterTitle("Extending with OpenGL");
 }
コード例 #34
0
 public override void SetupSlide(PresentationViewController presentationViewController)
 {
     TextManager.SetChapterTitle("What's New in Scene Kit");
 }