c# in depth and xna in depth

Download C# in Depth and XNA in Depth

Post on 29-Jun-2015

667 views

Category:

Technology

5 download

Embed Size (px)

DESCRIPTION

Go to http://www.slideshare.net/Daramkun/c-in-depth-and-xna-in-depth-2nd-edition

TRANSCRIPT

  • 1. C# in Depth and XNA in DepthKorea Game Science High School 4th Graduates Jae-yeon Jin

2. Contents C# Depth XNA Depth Q&AC# in Depth and XNA in Depth 2 3. foreach, using, as, is, lock, sealed, C# DEPTH C# in Depth and XNA in Depth 3 4. C# Depth - Property C# in Depth and XNA in Depth 4 5. C# Depth - Property { get { return ; } set { ; }} public MyProperty{ get { return prop; } set { prop = value; }} C# in Depth and XNA in Depth 5 6. C# Depth class VS struct class new ~() -> -> null struct new ~() -> -> null C# in Depth and XNA in Depth 6 7. C# Depth class VS struct class ( ) struct struct , C# in Depth and XNA in Depth 7 8. C# Depth class VS struct null ? ; ex) Point? pt = null;C# in Depth and XNA in Depth 8 9. C# Depth ref VS out Call by Reference ref out C# in Depth and XNA in Depth 9 10. C# Depth ref VS out ref Swap ref out Try out DictionaryC# in Depth and XNA in Depth 10 11. C# Depth ascls var = new cls();cls2 var2 = (cls2)var; boxing & unboxing : as C# in Depth and XNA in Depth 11 12. C# Depth - as boxing struct class unboxing class struct boxing unboxing C/C++ C# in Depth and XNA in Depth 12 13. C# Depth - as as boxing unboxing cls var = new cls();strt var2 = var as strt; C# in Depth and XNA in Depth 13 14. C# Depth - as as as boxing unboxing C# in Depth and XNA in Depth 14 15. C# Depth - as is bool class A, class B : A trueB b = new B();bool result = b is A; C# in Depth and XNA in Depth 15 16. C# Depth - as as XNA Project SpriteBatch DrawableGameComponent C# in Depth and XNA in Depth 16 17. C# Depth - foreach Formforeach(string s in s_arr){} C# in Depth and XNA in Depth 17 18. C# Depth - foreach List, Dictionary Queue, Stack Array E.T.C. interface System.Collections.IEnumerable System.Collections.IEnumerator GetEnumerator(); C# in Depth and XNA in Depth18 19. C# Depth - foreach foreach for foreach boxing & unboxing foreach const C# in Depth and XNA in Depth 19 20. C# Depth - foreach IEnumerable operator[int index] C# in Depth and XNA in Depth 20 21. C# Depth - using C# using namespace 1. using System; using System.Text; 2. using(Brush p = new SolidBrush(Color.Black)) { ~~ }C# in Depth and XNA in Depth 21 22. C# Depth - using 2. IDisposable void Dispose(); C# in Depth and XNA in Depth 22 23. C# Depth - using IDisposable Dispose C# in Depth and XNA in Depth 23 24. C# Depth - using IDisposable using-able IDisposeable usingC# in Depth and XNA in Depth 24 25. C# Depth - sealed sealed sealed { } C# in Depth and XNA in Depth 25 26. C# Depth - sealed sealed sealedC# in Depth and XNA in Depth 26 27. C# Depth - lock lock C# in Depth and XNA in Depth 27 28. C# Depth - lock locklock(){ }C# in Depth and XNA in Depth 28 29. C# Depth - lock lock System.Threading.Thread lockC# in Depth and XNA in Depth 29 30. C# Depth - Serialization (Attribute) [()] class { }C# in Depth and XNA in Depth 30 31. C# Depth - Serialization Serializable NonSerialized System.Runtime.Serializable.Formatter void Serializable(Stream, object); C# in Depth and XNA in Depth 31 32. C# Depth - Serialization System.Runtime.Serializable.Formatter object Deserializable(Stream); / C# in Depth and XNA in Depth 32 33. C# Depth - Serialization Serialzation echo System.Runtime.Serializable.BinaryFormatter System.Net.Sockets.Socket System.Net.IPEndPoint System.Net.IPAddress System.IO.MemoryStream C# in Depth and XNA in Depth33 34. C# Depth Depth to Depth Garbage class Garbage Garbage 3 0 C# in Depth and XNA in Depth 34 35. C# Depth Depth to Depth Garbage null C# in Depth and XNA in Depth 35 36. C# Depth Depth to Depth 012 C# in Depth and XNA in Depth 36 37. C# Depth Depth to Depth Garbage .NET Compact Framework .NET Compact Framework Xbox360 Windows Mobile 6.x Windows Embedded 6.0 Windows Phone 7 C# in Depth and XNA in Depth 37 38. Content Pipeline, Effect, Accelerometer Sensor,XNA DEPTHC# in Depth and XNA in Depth 38 39. XNA Depth - Effect XNA (Shader) XNA ShaderEffectC# in Depth and XNA in Depth 39 40. XNA Depth - Effect Effect Begin End XNA Framework 1.0 ~ 3.1 Begin End XNA Framework 4.0 Begin/End EffectPass Apply XNA 1.0 ~ 2.0 DirectX9.0c XNA 3.0 ~ 3.1 DirectX10 XNA 4.0 DirectX11 Windows XP XNA 3.0 ~ 4.0 C# in Depth and XNA in Depth 40 41. XNA Depth - Effect BasicEffect Matrix BasicEffect EffectPass GraphicsDevice GraphicsDeviceManager VertexPositionNormalTextrure Vector2 C# in Depth and XNA in Depth 41 42. XNA Depth Content Pipeline ContentManager object ContentManager.Load(Asset Name); Texture Model SpriteFont Effect XACT(Cross-platform Audio Creation Tool) Sound Effect C# in Depth and XNA in Depth 42 43. XNA Depth Content Pipeline ContentImporter ContentProcessor ContentTypeWriter ContentTypeReaderC# in Depth and XNA in Depth 43 44. XNA Depth Content Pipeline ContentImporter ContentProcessor ContentTypeWriter xnb ContentTypeReader xnb C# in Depth and XNA in Depth 44 45. XNA Depth Content Pipeline ContentImporter ContentProcessor ContentTypeWriter ContentTypeReader C# in Depth and XNA in Depth 45 46. XNA Depth - Accelerometer Windows Phone 7 XNA Windows Phone 7 Microsoft.Devices.Sensors.Accelerometer void Start() void Stop() event EventHandler ReadingChanged ! C# in Depth and XNA in Depth46 47. XNA Depth - Accelerometer Microsoft.Devices.Sensors.Accelerometer Texture2D SpriteBatch C# in Depth and XNA in Depth 47 48. XNA Depth - GamePad XNA Xbox Wired/Wireless ControllerLT/LB/RT/RB A/B/X/Y D- C# in Depth and XNA in Depth48 49. XNA Depth - GamePad Microsoft.Xna.GamePad GetState(PlayerIndex) Pressed Released X, Y Windows Phone 7 Back C# in Depth and XNA in Depth 49 50. XNA Depth - Camera Direct3D9 Matrix BasicEffect C# in Depth and XNA in Depth 50 51. XNA Depth - Camera XBOX BasicEffect Matrix GamePad Model C# in Depth and XNA in Depth 51 52. C# in Depth and XNA in Depth C# in Depth Effective C# (Bill Wagner ) XNA in Depth Microsoft XNA Xbox360 (Chad Carter ) (Wendy Stahler )C# in Depth and XNA in Depth 52