renderer: use struct contstructor to setup variables