开发者

How to draw a square using JNI and OpenGL in Android

开发者 https://www.devze.com 2023-02-09 12:13 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号