Exemplo n.º 1
0
void ACBaseImpl::CreateServices() {
	NEX_NEW(FileSystem());
	NEX_NEW(PluginRegistry());
	NEX_NEW(WindowManager());
	NEX_NEW(BackgroundStreamerImpl());
	CreateExtendedInterfacesImpl();
}
Exemplo n.º 2
0
            this->_items = t;
    }
    void _resize(const unsigned int &f) {this->_cap *= f;}
    bool _iscap(void) {return this->_cap == this->_size;}

    bool has_window(void) {return this->_size >= 1;}
    bool has_visible(void) {
        for (unsigned int i; i<this->_size; i++)
            if (this->_items[i]->is_visible())
                return true;
        return false;
    }
    void update(double dt) {
        if (this->_size >= 1)
            for (unsigned int i; i<this->_size; i++)
                this->_items[i]->update(dt);
    }
    void draw(double dt) {
        if (this->_size >= 1)
            for (unsigned int i; i<this->_size; i++)
                this->_items[i]->draw(dt);
    }
    /* ---- Events ---- */

};

extern WindowManager winman = WindowManager();


#endif