package Ġcom . ye unge ek . av sample . activities . opengl . book . air h ock ey Ċ Ċ import Ġandroid . opengl . GL Surface View Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġcom . ye unge ek . av sample . activities . opengl . book . renderer . Air H Texture Renderer Ċ Ċ class ĠAir H Texture Activity Ġ: ĠAppCompatActivity () Ġ{ ĊĠĠĠ Ġlateinit Ġvar Ġgl Surface View : ĠGL Surface View ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĊĠĠĠĠĠĠĠ Ġgl Surface View Ġ= ĠGL Surface View ( this ); ĊĠĠĠĠĠĠĠ Ġgl Surface View . set EGL Context Client Version ( 2 ) ĊĠĠĠĠĠĠĠ Ġgl Surface View . set Renderer ( Air H Texture Renderer ( application Context )) ĊĊĠĠĠĠĠĠĠ ĠsetContentView ( gl Surface View ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Pause () Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on Pause () ĊĠĠĠĠĠĠĠ Ġgl Surface View ?. on Pause () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Resume () Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on Resume () ĊĠĠĠĠĠĠĠ Ġgl Surface View ?. on Resume () ĊĠĠĠ Ġ} Ċ }