Archive: Nov, 2017

  • OpenGL - Rotating mapped texture in a rectangular viewport - Nov 26, 2017
  • To map a texture to a rectangular viewport, we need to define at least 4 vertices for the rectangle, ensure that the texture coordinates are perfectly mapped to the vertices, and call glDrawArrays(GL_TRIANGLE_STRIP, 0, 4)...