Fundamentals of NDK and OpenGL for Android

I am trying to work with NDK to render openGL images on Android. I have taken a basic graphic course and am familiar with open GL. I looked at a few examples, such as the San Angeles project, but I have no idea what is going on. I am familiar with calls like glBegin (GL_LINES) ;. I do not see anything like this in this place. It seems that a lot of code does a lot of things that are becoming a bit overwhelming. So, are there any resources I can use that show the basic OpenGL rendering on Android. I say by drawing a rotating triangle such as a textbook. If not, are there any more complicated projects like San Angeles that are commented on?

+3
source share
1 answer

OpenGL ES (a subset of OpenGL supported on Android) does not support the glBegin / glEnd method of rendering primitives. Instead, you should look at using vertex arrays. glDrawArrays and glDrawElements are the main challenges you need to learn.

Oh, and Khronos has relevant information here: http://www.khronos.org/opengles/

+8
source

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


All Articles