Difference between revisions 1335 and 1336 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() { // Do we support hardware vertex processing? If so, use it. // If not, downgrade to software.क्या हम हार्डवेयर वर्टेक्स प्रसंस्करण का समर्थन करते हैं? यदि हां, तो इसका इस्तेमाल करें // यदि नहीं, तो सॉफ्टवेयर में डाउनग्रेड करें Caps caps = Direct3D.Manager.GetDeviceCaps(Direct3D.Manager.Adapters.Default.Adapter, Direct3D.DeviceType.Hardware); CreateFlags flags; if (caps.DeviceCaps.SupportsHardwareTransformAndLight) flags = CreateFlags.HardwareVertexProcessing; else flags = CreateFlags.SoftwareVertexProcessing; // Everything checks out - create a simple, windowed device.सब कुछ जांचता है - तो एक सरल, विंडोड डिवाइस बनाएं PresentParameters d3dpp = new PresentParameters(); d3dpp.BackBufferFormat = Format.Unknown; d3dpp.SwapEffect = SwapEffect.Discard; d3dpp.Windowed = true; d3dpp.EnableAutoDepthStencil = true; d3dpp.AutoDepthStencilFormat = DepthFormat.D16; (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=1336.
![]() ![]() 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.
|