A 3d room scene

Maybe this is all my computer graphics knowledge. I code it for almost a
week.  But there is still a lot of bugs. For example I can't draw a
chair correctly while translating. Maybe someone could help me.