Difference between revisions 1337 and 1338 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() { [...] } // 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(); } // Event handler for managing the device reset instance.डिवाइस रीसेट इनटेन्स को प्रबंधित करने के लिए ईवेंट हैंडलर public void OnResetDevice(object sender, EventArgs e) { // Reinitialize the DX device.डीएक्स डिवाइस को दोबारा शुरू करें Direct3D.Device device = (Direct3D.Device)sender; // Reinitialize some parameters: device.RenderState.CullMode = Cull.None; device.RenderState.FillMode = FillMode.Solid; device.RenderState.Lighting = true; } (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=1338.
![]() ![]() 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.
|