public void add_renderable(Seen_Object obj) { to_render.Add(obj); }
public void remove_renderable(Seen_Object obj) { to_render.Remove(obj); }
private void render_renderable(Seen_Object to_rend) { Model model; if (!model_map.TryGetValue(to_rend.get_model_name(), out model)) throw new Exception(("Model " + to_rend.get_model_name() + " does not exist.")); // don't render the current player if (cur_View.player == to_rend) return; to_rend.render(model, graphics, cur_View.get_camera()); }