Use base class as in renderer in library to access the state easier