tweaked class constructors to pass a reference to render window and other
resource holders