OpenGL ES की मदद से ग्राफ़िक्स दिखाना
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Android फ़्रेमवर्क, आकर्षक और काम के ग्राफ़िकल यूज़र इंटरफ़ेस बनाने के लिए कई स्टैंडर्ड टूल उपलब्ध कराता है. हालांकि, अगर आपको यह कंट्रोल करना है कि आपका ऐप्लिकेशन स्क्रीन पर क्या दिखाता है या आपको 3D ग्राफ़िक का इस्तेमाल करना है, तो आपको किसी दूसरे टूल का इस्तेमाल करना होगा. Android फ़्रेमवर्क की ओर से उपलब्ध कराए गए OpenGL ES API, हाई-एंड और ऐनिमेशन वाले ग्राफ़िक दिखाने के लिए टूल का एक सेट उपलब्ध कराते हैं. ये टूल, आपकी कल्पना के हिसाब से काम करते हैं. साथ ही, ये कई Android डिवाइसों पर उपलब्ध ग्राफ़िक प्रोसेसिंग यूनिट (जीपीयू) की मदद से, ग्राफ़िक को तेज़ी से प्रोसेस कर सकते हैं.
इस क्लास में, OpenGL का इस्तेमाल करने वाले ऐप्लिकेशन डेवलप करने की बुनियादी बातों के बारे में बताया गया है. इनमें सेटअप करना, ऑब्जेक्ट बनाना, बनाए गए एलिमेंट को मूव करना, और टच इनपुट का जवाब देना शामिल है.
इस क्लास में दिए गए उदाहरण कोड में, OpenGL ES 2.0 API का इस्तेमाल किया गया है. यह मौजूदा Android डिवाइसों के साथ इस्तेमाल करने के लिए, एपीआई का सुझाया गया वर्शन है. OpenGL ES के वर्शन के बारे में ज़्यादा जानने के लिए, OpenGL डेवलपर गाइड देखें.
ध्यान दें: OpenGL ES 1.x API कॉल को OpenGL ES 2.0 के तरीकों के साथ न मिलाएं! इन दोनों एपीआई को एक-दूसरे की जगह इस्तेमाल नहीं किया जा सकता. इन्हें एक साथ इस्तेमाल करने से सिर्फ़ निराशा होती है.
लेसन
- OpenGL ES एनवायरमेंट बनाना
- OpenGL ग्राफ़िक बनाने के लिए, Android ऐप्लिकेशन सेट अप करने का तरीका जानें.
- आकृतियों के बारे में जानकारी देना
- शेप तय करने का तरीका जानें. साथ ही, यह भी जानें कि आपको फ़ेस और वाइंडिंग के बारे में क्यों जानना चाहिए.
- आकृतियां बनाना
- अपने ऐप्लिकेशन में OpenGL शेप बनाने का तरीका जानें.
- प्रोजेक्शन और कैमरे के व्यू लागू करना
- बनाई गई चीज़ों को नए नज़रिए से देखने के लिए, प्रोजेक्शन और कैमरे के व्यू इस्तेमाल करने का तरीका जानें.
- मोशन जोड़ें
- OpenGL की मदद से, बनाए गए ऑब्जेक्ट को बेसिक तरीके से मूव करने और ऐनिमेट करने का तरीका जानें.
- टच इवेंट का जवाब देना
- OpenGL ग्राफ़िक्स के साथ बुनियादी इंटरैक्शन करने का तरीका जानें.
अतिरिक्त सैंपल कोड
NDK के सैंपल डाउनलोड करने के लिए, NDK के सैंपल देखें.
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया."],[],[],null,["# Displaying graphics with OpenGL ES\n\nThe Android framework provides plenty of standard tools for creating attractive, functional\ngraphical user interfaces. However, if you want more control of what your application draws on\nscreen, or are venturing into three dimensional graphics, you need to use a different tool. The\nOpenGL ES APIs provided by the Android framework offers a set of tools for displaying high-end,\nanimated graphics that are limited only by your imagination and can also benefit from the\nacceleration of graphics processing units (GPUs) provided on many Android devices.\n\nThis class walks you through the basics of developing applications that use OpenGL, including\nsetup, drawing objects, moving drawn elements and responding to touch input.\n\nThe example code in this class uses the OpenGL ES 2.0 APIs, which is the recommended API version\nto use with current Android devices. For more information about versions of OpenGL ES, see the\n[OpenGL developer\nguide](/develop/ui/views/graphics/opengl/about-opengl#choosing-version).\n\n**Note:** Be careful not to mix OpenGL ES 1.x API calls with OpenGL\nES 2.0 methods! The two APIs are not interchangeable and trying to use them together only results in\nfrustration and sadness.\n\nLessons\n-------\n\n**[Build an OpenGL ES environment](/develop/ui/views/graphics/opengl/environment)**\n: Learn how to set up an Android application to be able to draw OpenGL graphics.\n\n**[Define shapes](/develop/ui/views/graphics/opengl/shapes)**\n: Learn how to define shapes and why you need to know about faces and winding.\n\n**[Draw shapes](/develop/ui/views/graphics/opengl/draw)**\n: Learn how to draw OpenGL shapes in your application.\n\n**[Apply projection and camera views](/develop/ui/views/graphics/opengl/projection)**\n: Learn how to use projection and camera views to get a new perspective on your drawn\n objects.\n\n**[Add motion](/develop/ui/views/graphics/opengl/motion)**\n: Learn how to do basic movement and animation of drawn objects with OpenGL.\n\n**[Respond to touch events](/develop/ui/views/graphics/opengl/touch)**\n: Learn how to do basic interaction with OpenGL graphics.\n\nAdditional sample code\n----------------------\n\nTo download NDK samples, see\n[NDK Samples](https://github.com/googlesamples/android-ndk/)."]]