본문 바로가기

Opengles 3.0 with Android26

Chapter 2.1 Shader Build https://github.com/dlgmlals3/OpenGLES3.0_Example/blob/main/Chapter_2/app/src/main/cpp/Scene/Cube.cpp OpenGLES3.0_Example/Chapter_2/app/src/main/cpp/Scene/Cube.cpp at main · dlgmlals3/OpenGLES3.0_ExampleContribute to dlgmlals3/OpenGLES3.0_Example development by creating an account on GitHub.github.comInitModel() 함수를 부분을 보자. Original gl 셰이더 프로그램 컴파일을 하려면 아래 절차를 수행한다.1> 셰이더 생성 및 컴파일2> 프로그램 생성하여 셰이더.. 2025. 2. 22.
Chapter 2.4 Culling https://github.com/dlgmlals3/OpenGLES3.0_Example/blob/main/Chapter_2/app/src/main/cpp/Scene/ManyCubes.cpp OpenGLES3.0_Example/Chapter_2/app/src/main/cpp/Scene/ManyCubes.cpp at main · dlgmlals3/OpenGLES3.0_ExampleContribute to dlgmlals3/OpenGLES3.0_Example development by creating an account on GitHub.github.com Culling() 컬링이라는 말은 잘라낸다는 의미이다.우리가 볼수 없는 면의 대해서 렌더링할 필요없는 부분까지 전부 렌더링을 하게 되면 성능저하가 발생될.. 2025. 2. 21.
Chapter 2.3 Transform and Projection https://github.com/dlgmlals3/OpenGLES3.0_Example/blob/main/Chapter_2/app/src/main/cpp/Scene/ManyCubes.cpp OpenGLES3.0_Example/Chapter_2/app/src/main/cpp/Scene/ManyCubes.cpp at main · dlgmlals3/OpenGLES3.0_ExampleContribute to dlgmlals3/OpenGLES3.0_Example development by creating an account on GitHub.github.comRenderPlus()좌표계 변환 >ScreenCoord = Viewport × Projection × View × Model × Vertex Transfo.. 2025. 2. 21.
Chapter 2.6 Touch Event ( Skip ) 서피스 뷰에서 터치 이벤트 리스너를 등록하고 JNI로 이벤트를 내려주자.TouchEventStart : 첫 터치 이벤트TouchEventMove : 드래그 이벤트TouchEventRelease : 마지막 터치 이벤트 GLESView.javaclass GLESView extends GLSurfaceView { .... public boolean onTouchEvent( final MotionEvent event ) { //Log.w(TAG, "OnTouchEvent"); switch( event.getAction() ) { case MotionEvent.ACTION_DOWN: { GLESNat.. 2025. 2. 21.