| 1815 | } |
| 1816 | |
| 1817 | int SceneGraph::LinkUpdateObject(Object* obj) { |
| 1818 | if (num_update_objects < kMaxUpdateObjects) { |
| 1819 | int id = num_update_objects++; |
| 1820 | update_objects_[id] = obj; |
| 1821 | return id; |
| 1822 | } else { |
| 1823 | FatalError("Error", "Too many update objects"); |
| 1824 | return -1; |
| 1825 | } |
| 1826 | } |
| 1827 | |
| 1828 | void SceneGraph::UnlinkUpdateObject(Object* obj, int entry) { |
| 1829 | SDL_assert(update_objects_[entry] == obj); |
no test coverage detected