Difference between revisions 1336 and 1337 on hiwikiversity{{कंप्यूटर ग्राफिक्स -- 2013-2014 -- info.uvt.ro/पेज हैडर}} == डायरेक्टएक्स9 में संक्षिप्त परिचय == === अवलोकन === इस प्रयोगशाला में हम डायरेक्टएक्स में सरल दृश्य के बनाने और इसे के अंदर कुछ तत्वों के साथ ड्रा के विषय में कुछ सामान्य मुद्दों पर चर्चा करेंगे। कोड सी# में लिखे जाएँगे। यह बारीकी से जावा जैसा दिखता हैं। === साधारण हैलो वर्ल्ड एप्लीकेशन बनाना === (contracted; show full) static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(true); HelloDirectX frm = new HelloDirectX(); // Initialize the device.डिवाइस को प्रारंभ करें frm.Init(); // Show the form.फॉर्म दिखाएं frm.Show(); Application.run(frm); } public void Init() { [...] } private void Render() { // Now we can clear just view-port's portion of the buffer to blackअब हम बफर के काले भाग को व्युपोर्ट का भाग साफ़ कर सकते हैं device.Clear(ClearFlags.Target | ClearFlags.ZBuffer, Color.FromArgb(255, 0, 0, 0), 1.0f, 0); device.BeginScene(); // Place your code here.अपना कोड यहां रखें device.EndScene(); try { device.Present(); } catch (DeviceLostException) { device.Reset(device.PresentationParameters); } } // We need to override this method so that we can control what is being drawn on the screen.हमें इस पद्धति को ओवरराइड करने की आवश्यकता है ताकि हम स्क्रीन पर खींची गई चीज़ों को नियंत्रित कर सकें। protected override void OnPaint(System.Windows.Forms.PaintEventArgs e) { this.Render(); } [...] } (contracted; show full)</source> == लिंक == * [http://www.riemers.net/eng/Tutorials/DirectX/Csharp/series1.php प्रबंधित डायरेक्टएक्स9 ट्यूटोरियल] [[Category:HI]] [[Category:कंप्यूटर ग्राफिक्स]] [[Category:ग्राफिक्स]] 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=1337.
![]() ![]() 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.
|