You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
478 B

package sgd.and04.layout
import android.opengl.GLSurfaceView
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
class OpenGLActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_open_glactivity)
val mySurfaceView :GLSurfaceView = findViewById(R.id.my_surface_view);
mySurfaceView.setEGLContextClientVersion(2);
}
}