Android_opengl_ES_2.0_AirHockey (Kotlin)

Here are some basic OpenGL codes for learning!!! Sorry for my misspelling on word “air hockey”. And, there are some detailed comments in the codes.

AirHockKey (Clear color)

image

AirHockKey1 (A air hockey table is made up of two points, one line, and two triangles)

image

AirHockKey2

AirHockKey3 (Four triangles and the blending color)

image

AirHockKey4 (Conisder aspect ratio. The table would not be squashed when the portrait mode turns into the landscape mode)

AirHockKey5 (3D. We add the fixed w-axis.)

image

AirHockKey6

image

AirHockKey7 (Texture mapping)

image

GitHub

View Github