Aaaaa988

MainActivity.java

Dec 11th, 2020
382
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.example.user.newcurswork;
  2.  
  3. import android.app.Activity;
  4. import android.opengl.GLSurfaceView;
  5. import android.os.Bundle;
  6. import android.view.Menu;
  7. import android.view.MenuInflater;
  8. import android.view.MenuItem;
  9. import android.widget.Toast;
  10.  
  11. public class MainActivity extends Activity {
  12.  
  13.     @Override
  14.     public void onCreate(Bundle savedInstanceState) {
  15.         super.onCreate(savedInstanceState);
  16.  
  17.         GLSurfaceView mGLSurfaceView = new GLSurfaceView(this);
  18.  
  19.         mGLSurfaceView.setEGLContextClientVersion(2);
  20.  
  21.         ShadowsRenderer renderer = new ShadowsRenderer(this, this);
  22.         mGLSurfaceView.setRenderer(renderer);
  23.  
  24.         setContentView(mGLSurfaceView);
  25.     }
  26. }
  27.  
RAW Paste Data