United States (English)
Canada (English)
Canada (Français)
Deutschland (Deutsch)
España (Español)
France (Français)
Italia (Italia)
United Kingdom (English)
United States (English)
日本 (日本語)
Forums
Hi,
Visitor
Sign In
Home
Quick Start Guide
News
Membership
Games
Games Catalog
Submit Game
Review Game
Playtest Game
Creators
My Profile
My Business
Community
Forums
Community Spotlight
Community Resources
Education
Getting Started
Education Catalog
Starter Kits
Utilities
Academia
Developer Talk Series
Resources
FAQ
Partners
Download
Feedback
Press Site
Meet the Team
community forums
XNA Community Forums
»
DirectX
»
General
»
how to create a direct X in windows forms C#?
More Search Options
|
My Discussions
|
Active Topics
|
Not Read
Page 1 of 1 (2 items)
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
how to create a direct X in windows forms C#?
Last post 10/28/2009 9:08 AM by
Kyle W
. 1 replies.
10/28/2009 4:29 AM
iozk
(10)
Posts
22
how to create a direct X in windows forms C#?
Reply
Quote
hi i want to do one aplication with the DirectX in windows forms with C# if can tell me how to draw a teapot with the direct X and windows forms a litle sample for start with the graphict programing tanks!
10/28/2009 9:08 AM
In reply to
Kyle W
(1045)
Posts
796
Re: how to create a direct X in windows forms C#?
Reply
Quote
C# is a managed language, but DirectX is an unmanaged API. When using C# you would most likely be better off to use the managed XNA Framework APIs. The following two samples show how to integrate a managed XNA window into a Windows Forms application:
http://creators.xna.com/en-US/sample/winforms_series1
http://creators.xna.com/en-US/sample/winforms_series2
This sample gives you code you can use to draw geometry primitives, including a teapot:
http://creators.xna.com/en-US/sample/primitives3D
Page 1 of 1 (2 items)
Previous
Next
© 2010 Microsoft Corporation. All rights reserved.
Terms of Use
Privacy Statement
Code of Conduct
Feedback