0

Recently, when digging into the SurfaceFlinger code, I discovered it renders its layers upside down, using the method like 1.0f minus vertex Y coordinate. I feel confused. Why do they do this?

adelphus
  • 10,116
  • 5
  • 36
  • 46
linzuojian
  • 602
  • 6
  • 8

1 Answers1

1

Could be because OpenGL's (0,0) point is at the bottom-left of the screen.. whereas the higher-level windowing API assumes (0,0) is the top-left.

Buddy
  • 10,874
  • 5
  • 41
  • 58