texture line y value ranges from 0 to 1
Separate rendering from window creation