How to draw a square using JNI and OpenGL in Android
I am new in opengl as well as in jni. I know how to draw using java and opengl, but I want to draw the same using C.
Can anyone help me out?
I want to draw a square by calling draw( written in c) function from my java renderer class, where all the drawing will be done.
I have seen the san-angeles example, but it's complicat开发者_运维百科ed.
Check out the
samples\san-angeles
folder of the NDK for a decent example.
精彩评论