• Save
Direct3D to WPF
Upcoming SlideShare
Loading in...5
×
 

Direct3D to WPF

on

  • 2,191 views

Talk about using Direct3D on WPF

Talk about using Direct3D on WPF

Statistics

Views

Total Views
2,191
Views on SlideShare
2,089
Embed Views
102

Actions

Likes
0
Downloads
2
Comments
0

6 Embeds 102

http://coderellis.blogspot.tw 90
http://coderellis.blogspot.com 5
http://coderellis.blogspot.co.uk 2
http://coderellis.blogspot.jp 2
http://www.slashdocs.com 2
http://coderellis.blogspot.ca 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Direct3D to WPF Direct3D to WPF Presentation Transcript

  • Direct3D to WPF Daosheng Mu 2012.1.3
  • Outline• WPF• Direct3D• Binding-P/Invoke, CIL
  • WPF• Windows Presentation Foundation – Based on .NET 3.0 – GUI utilizes DirectX – eXtensible Application Markup Language (XAML) • For more effective to develop UI
  • Direct3D• 3D graphics API supported by Microsoft• Utilize GPU hardware acceleration• Used to render 3D application which performance is important• Game engine usually is designed to use c++/d3d commonly
  • Communication between WPF/D3D• How? – P/Invoke • extern identifier, huge cost – CIL(Common Intermediate Language) • Marshaling at compile time, better performance
  • How to write CLI• Project Setting – Adjust on Win32 dll project – Create CLR project
  • Adjust on Win32 dll project Add dll to WPF project
  • Adjust on Win32 dll project Code Generation
  • Adjust on Win32 dll CLR Support
  • Create CLR Project Create CLR Class Library
  • CIL Sample• Extend Idisposable• Class ref• *ObjPtr using IntPtr
  • Result• https://github.com/DaoshengMu/WPFd3dIma geCpp