2012-11-11 20:59:17 -05:00

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);
}
}