Texturing a square in OpenGL ES on Android

Ok, so I have an OpenGL tutorial on which I'm based, my current code is equivalent to part II, which is here: http://blog.jayway.com/2009/12/04/opengl-es-tutorial-for-android -% E2% 80% 93-part-ii-building-a-polygon /

The code for this can be downloaded at the bottom of the page. It leaves you with a white square, and I want to apply a texture to it, which this series of textbooks does not cover. I cannot figure out how to texture my white square in Android.

+3
source share
3 answers
+3
source

This tutorial set really helped me get to know OpenGL ES 2.0. For simple texturing, in particular, see Lesson # 4 .

+1
source

Source: https://habr.com/ru/post/1758539/


All Articles