Template:Glapi viewport equations

From OpenGL.org
Jump to: navigation, search

x_w = (x_{nd} + 1)\left ( \tfrac{width}{2} \right) + x

y_w = (y_{nd} + 1)\left ( \tfrac{height}{2} \right) + y