示例#1
0
 public void add_renderable(Seen_Object obj)
 {
     to_render.Add(obj);
 }
示例#2
0
 public void remove_renderable(Seen_Object obj)
 {
     to_render.Remove(obj);
 }
示例#3
0
        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());
        }