//
//  MeWorld.cpp
//  MetarealEngine
//
//  Created by David Van Brink on 12/14/14.
//  Copyright (c) 2014 David Van Brink. All rights reserved.
//

#include "MeWorld.h"

/*
 Notes --
 
 MeWorld will need to 
 * pump the observers, 
 * run the renderworlds
 * understand the sequence of renderworld draws which does compositing too
 * ... reset the bindFrameBuffer to default at the end (SDL2, for example, depends on this)
 */
MeWorld::MeWorld()
{
    
}

MeWorld::~MeWorld()
{
    for(auto ham : this->hams)
        delete ham;
}

void MeWorld::addHam(MeHam *ham)
{
    this->hams.push_back(ham);
}

void MeWorld::updateFrame()
{
    for(auto ham : this->hams)
        ham->updateFrame();
}

