OpenGL define vertex position in pixels

后端 未结 5 1328
迷失自我
迷失自我 2020-11-27 04:16

I\'ve been writing a 2D basic game engine in OpenGL/C++ and learning everything as I go along. I\'m still rather confused about defining vertices and their \"position\". Tha

5条回答
  •  抹茶落季
    2020-11-27 04:45

    Google for "opengl rendering pipeline". The first five articles all provide good expositions.

    The key transition from vertices to pixels (actually, fragments, but you won't be too far off if you think "pixels") is in the rasterization stage, which occurs after all vertices have been transformed from world-coordinates to screen coordinates and clipped.

提交回复
热议问题