Freeglut ( OpenGL ) in C
- by user1832149
I would like to ask for you a little help in my homework. I'm learning at an university of Debrecen, and I would like to be a programmer, but I'm stuck with this homework.
It's a OpenGL project in C. (freeglut)
The next task is about:
Window to viewport transformation. Draw graphs of functions, as shown below. The individual views (viewport) defines four different rectangles.
Functions look like this picture: one window in 4 piece, and one pice of one function.
The functions, respectively:
f(x)=x2
g(x)=x3
h(x)=sin(x)
i(x)=cos(x)
Heres a pic what I need to make:
How would I approach such a task?