Question: Find out a window-to-viewport transformation that transforms a rectangular window with corners (1, 1), (3, 1), (3, 2), (1, 2) to another window with corners

Find out a window-to-viewport transformation that transforms a rectangular window with corners (1, 1), (3, 1), (3, 2), (1, 2) to another window with corners (0, 0), (2, 0), (1, 1), (3, 1). Also write a C-function that will perform this transformation using OpenGL transformation functions. Find out a window-to-viewport transformation that transforms a rectangular window with corners (1, 1), (3, 1), (3, 2), (1, 2) to another window with corners (0, 0), (2, 0), (1, 1), (3, 1). Also write a C-function that will perform this transformation using OpenGL transformation functions
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
