opengles

androidのopenglesをつかってみる。三角形の描画

色々サンプルはあるけど、無駄なものがおおい。 必要な部分をしぼって描いてみた。activity。 import android.app.Activity; import android.os.Bundle; import android.opengl.GLSurfaceView; public class MainActivity extends Activity { private GLSurf…

androidでopenglesをつかってみる。画面の表示

まずは、アクティビティの設定。 import android.app.Activity; import android.os.Bundle; import android.opengl.GLSurfaceView; public class MainActivity extends Activity { private GLSurfaceView mGLView; /** Called when the activity is first cr…

androidのopenglesをつかってみる。立方体の描画

ひきつづき、Cubeの描画。activityは変更なし。 public class MainActivity extends Activity { private GLSurfaceView mGLView; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.on…