OpenGL ES로 그래픽 표시
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
Android 프레임워크는 매력적이고 기능적인 그래픽 사용자 인터페이스를 만들기 위한 다양한 표준 도구를 제공합니다. 그러나 애플리케이션에서 화면에 그리는 내용을 더 세밀하게 제어하거나 3차원 그래픽을 시도해 보려면 다른 도구를 사용해야 합니다. Android 프레임워크에서 제공하는 OpenGL ES API는 상상력에 의해서만 제한되는 고급 애니메이션 그래픽을 표시하기 위한 도구 모음을 제공하며 여러 Android 기기에서 제공되는 그래픽 처리 장치 (GPU)의 가속도 활용할 수 있습니다.
이 과정에서는 설정, 객체 그리기, 그려진 요소 이동, 터치 입력에 응답 등 OpenGL을 사용하는 애플리케이션 개발의 기본사항을 알아봅니다.
이 클래스의 예시 코드에서는 현재 Android 기기에 권장되는 API 버전인 OpenGL ES 2.0 API를 사용합니다. OpenGL ES 버전에 관한 자세한 내용은 OpenGL 개발자 가이드를 참고하세요.
참고: OpenGL ES 1.x API 호출과 OpenGL ES 2.0 메서드를 혼합하지 마세요. 두 API는 상호 호환되지 않으며 함께 사용하려고 하면 답답함과 슬픔만 초래합니다.
과정
- OpenGL ES 환경 빌드
- OpenGL 그래픽을 그릴 수 있도록 Android 애플리케이션을 설정하는 방법을 알아봅니다.
- 도형 정의
- 도형을 정의하는 방법과 면과 굴곡을 알아야 하는 이유를 알아보세요.
- 도형 그리기
- 애플리케이션에서 OpenGL 도형을 그리는 방법을 알아봅니다.
- 투영 및 카메라 뷰 적용
- 투영 및 카메라 뷰를 사용하여 그린 객체에서 새로운 시점을 가져오는 방법을 알아봅니다.
- 모션 추가
- OpenGL을 사용하여 그린 객체의 기본 이동 및 애니메이션을 실행하는 방법을 알아봅니다.
- 터치 이벤트에 응답
- OpenGL 그래픽과 기본 상호작용을 실행하는 방법을 알아봅니다.
추가 샘플 코드
NDK 샘플을 다운로드하려면 NDK 샘플을 참고하세요.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-26(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-26(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/)."]]