Presentation is loading. Please wait.

Presentation is loading. Please wait.

Jens Krüger & Polina Kondratieva – Computer Graphics and Visualization Group computer graphics & visualization Practical Course C# / DirectX WS 05/06 Introduction.

Similar presentations


Presentation on theme: "Jens Krüger & Polina Kondratieva – Computer Graphics and Visualization Group computer graphics & visualization Practical Course C# / DirectX WS 05/06 Introduction."— Presentation transcript:

1 Jens Krüger & Polina Kondratieva – Computer Graphics and Visualization Group computer graphics & visualization Practical Course C# / DirectX WS 05/06 Introduction

2 computer graphics & visualization Jens Krüger & Polina Kondratieva – Computer Graphics and Visualization Group Organizational… - everybody here, who is supposed to be here? - who else is here? - Schedule: - Tue. 10:00 – 11:45 - Thu. 10:00 – 11:45 - If you have a question: 1.forum 2.question time 3.mail 4.appear in person

3 computer graphics & visualization Jens Krüger & Polina Kondratieva – Computer Graphics and Visualization Group DotNet, CLR, MSIL, C# … blabla

4 computer graphics & visualization Jens Krüger & Polina Kondratieva – Computer Graphics and Visualization Group Java (J2EE) vs..NET: Performance

5 computer graphics & visualization Jens Krüger & Polina Kondratieva – Computer Graphics and Visualization Group Java (J2EE) vs..NET: Portability - Java - Multi platform (available for every OS) - „Not really“ multi language -.NET - „Not really“ multi platform (  ROTOR, MONO) - Multi Language (C++, C#, J#, Basic, Delphi …)

6 computer graphics & visualization Jens Krüger & Polina Kondratieva – Computer Graphics and Visualization Group Java (J2EE) vs..NET: Future - Java - well established - a lot of applications already exist (including Applets) -.NET - Microsoft's choice for Windows Longhorn - a lot of applications are ported to.NET

7 computer graphics & visualization Jens Krüger & Polina Kondratieva – Computer Graphics and Visualization Group Native Code vs..NET: Performance - Native Code, the compiler - usually compiles everything only once - has much time to optimize code - has no idea of the target machine - can’t do runtime optimization on it’s own -.NET, the JIT … - compiles every USED method ONCE per program execution - needs to be fast - knows the target machine well - knows the program’s behavior See: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/dotnetperftechs.asp http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/dotnetperftechs.asp

8 computer graphics & visualization Jens Krüger & Polina Kondratieva – Computer Graphics and Visualization Group Let‘s get started … - you need: - Windows XP/2003 (Windows ME/98/2000 no supported) -.NET Framework 1.1 (SDK not needed) - Visual Studio.NET 2003 - DirectX 9.0c SKD (April 2005 Update) - Cool is: - a GPU capable of DX9 -ATI Radeon 9xxx / Xxxx / FireGL and above -All NVIDIA GeForce FX / Quadro FX and above - a GPU capable of SM3 -All NVIDIA GeForce 6xxx / Quadro 4400 and above -Next generation of ATI cards Use the systems in our lab!!!

9 computer graphics & visualization Jens Krüger & Polina Kondratieva – Computer Graphics and Visualization Group Hello World using System; namespace HelloWorldApplication { /// /// This class is really boring since it only prints „Hello World“ /// class HelloWorld { /// /// The Main Method is the entry point for the app /// [STAThread] static void Main(string[] args) { Console.WriteLine("Hello World"); }

10 computer graphics & visualization Jens Krüger & Polina Kondratieva – Computer Graphics and Visualization Group Hello World Form using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; namespace HelloWorldForm { public class Form1 : System.Windows.Forms.Form { private System.Windows.Forms.Label label1; private System.ComponentModel.Container components = null; public Form1() { InitializeComponent(); label1.Text = "Hello World"; } protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); } base.Dispose( disposing ); }

11 computer graphics & visualization Jens Krüger & Polina Kondratieva – Computer Graphics and Visualization Group Hello World Form (cont.) private void InitializeComponent() { label1 = new System.Windows.Forms.Label(); SuspendLayout(); label1.Location = new System.Drawing.Point(164, 68); label1.Name = "label1"; label1.TabIndex = 0; label1.Text = "label1"; AutoScaleBaseSize = new System.Drawing.Size(5, 13); ClientSize = new System.Drawing.Size(420, 158); Controls.Add(label1); Name = "Form1"; Text = "Hello Application"; ResumeLayout(false); } [STAThread] static void Main() { Application.Run(new Form1()); }

12 computer graphics & visualization Jens Krüger & Polina Kondratieva – Computer Graphics and Visualization Group Java (J2EE) vs..NET: Code words ms-help://MS.VSCC.2003/MS.MSDNQTR.2004JAN.1033/dncenet/html/tchCJavaComparingProgrammingLanguages.htm#tchCJavaKeywordComparison C# KeywordJava Keyword Basesuper Boolboolean Isinstanceof locksynchronized namespacepackage readonlyconst sealedfinal usingimport internalprivate :extends :implements Not Supported by C# native transient

13 computer graphics & visualization Jens Krüger & Polina Kondratieva – Computer Graphics and Visualization Group TODO: - Explanation of the first assignment - Introduction to Visual Studio.NET 2003 only for those who really need it …


Download ppt "Jens Krüger & Polina Kondratieva – Computer Graphics and Visualization Group computer graphics & visualization Practical Course C# / DirectX WS 05/06 Introduction."

Similar presentations


Ads by Google