예제 #1
0
void ApplicationState::addDrawableObject(DrawableObject& drawable)
{
  drawableObjects.push_back(&drawable);

  if (drawable.isClickable())
    addClickableObject(drawable, drawable.getLayer());
}
예제 #2
0
void  ApplicationState::addClickableObject(DrawableObject& clickable, int z)
{
  if (!clickable.isClickable())
    return;
  clickableObjects[z].insert(clickable);
}