This optical box from the Museum of Cinema in Catalonia dates from the late 18th century. (Link to YouTube video).
It had multiple functions: You could use it as a camera obscura for drawing. Besides this, it could be folded up into the shape of a book and easily transported.
Or it could be set up like for viewing theatrical dioramas, kind of an ancestor of Disney's multiplane camera.