Difference between revisions 1322 and 1323 on hiwikiversity== डायरेक्टएक्स9 में संक्षिप्त परिचय == === अवलोकन === इस प्रयोगशाला में हम डायरेक्टएक्स में सरल दृश्य के बनाने और इसे के अंदर कुछ तत्वों के साथ ड्रा के विषय में कुछ सामान्य मुद्दों पर चर्चा करेंगे। कोड सी# में लिखे जाएँगे। यह बारीकी से जावा जैसा दिखता है। === साधारण हैलो वर्ल्ड आवेदएप्लीकेशन बनाना === <source lang="csharp"> [...] using Microsoft.DirectX; using Microsoft.DirectX.Direct3D; using Direct3D = Microsoft.DirectX.Direct3D; namespace FirstDirectX { public class HelloDirectX : System.Windows.Forms.Form { static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(true); HelloDirectX frm = new HelloDirectX(); frm.Show(); Application.run(frm); } [...] } } </source> हर प्रबंधित DX आवेदन मूल रूप से आवश्यक:⏎ डायरेक्टएक्स एप्लीकेशन में मूल रूप से आवश्यक: * '''आरंभीकरण (initialization)''' विधि जहां Direct3D.Device वस्तु को जोड़ने पूरा किया है। (ओजीएल ''Init'' फ़ंक्शन के समान) * '''रेंडरिंग (rendering)''' विधि जो दृश्य हैंडलिंग करता है। (ओजीएल डिस्प्ले फ़ंक्शन समान) * एक '''डिवाइस रीसेट''' हैंडलिंग विधि। इसका उदाहरण है जब खिड़की विंडो के साइज में परिवर्तन (resize) किया जाता है। तभ ऐसी घटना पर यह हैंडलिंग विधि शुरू हो जाती है। इसके अलावा हम माउस, कीबोर्ड, जॉयस्टिक आदि का उपयोग के लिये कुछ '''यूजर इंटरेक्शन (user interaction)''' की आवश्यकता होती है। [[Category:HI]] All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://hi.wikiversity.org/w/index.php?diff=prev&oldid=1323.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|