28 lines
784 B
Java
28 lines
784 B
Java
package com.homelinux.holtrop.opengltest;
|
|
|
|
import android.opengl.GLSurfaceView;
|
|
import android.app.Activity;
|
|
import android.os.Bundle;
|
|
import android.content.res.AssetManager;
|
|
import android.view.WindowManager;
|
|
import android.view.Window;
|
|
|
|
public class MainOpenGL extends Activity
|
|
{
|
|
private GLSurfaceView mGLView;
|
|
|
|
/** Called when the activity is first created. */
|
|
@Override
|
|
public void onCreate(Bundle savedInstanceState)
|
|
{
|
|
super.onCreate(savedInstanceState);
|
|
|
|
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
|
|
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
|
|
WindowManager.LayoutParams.FLAG_FULLSCREEN);
|
|
|
|
mGLView = new MyGLSurfaceView(this, getAssets());
|
|
setContentView(mGLView);
|
|
}
|
|
}
|