mirror of
https://github.com/vanitasvitae/Spherical
synced 2025-09-10 10:49:42 +02:00
Add first revision of sphere rendering
This commit is contained in:
parent
1e689b6d46
commit
203ee1e1af
5 changed files with 420 additions and 8 deletions
|
@ -1,13 +1,21 @@
|
|||
package de.trac.spherical;
|
||||
|
||||
import android.opengl.GLSurfaceView;
|
||||
import android.support.v7.app.AppCompatActivity;
|
||||
import android.os.Bundle;
|
||||
|
||||
import de.trac.spherical.rendering.Renderer;
|
||||
|
||||
public class MainActivity extends AppCompatActivity {
|
||||
|
||||
private GLSurfaceView surfaceView;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_main);
|
||||
surfaceView = (GLSurfaceView) findViewById(R.id.surface_view);
|
||||
surfaceView.setEGLContextClientVersion(2);
|
||||
surfaceView.setRenderer(new Renderer());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue