Exemplo n.º 1
0
void LinkLoader::notifyFinished(Resource* resource)
{
    ASSERT(this->resource() == resource);

    triggerEvents(resource);
    clearResource();
}
Exemplo n.º 2
0
void GameCore::run() {
	log(LOG_DEBUG, "Entered run of Game Core");
	GameEvent frame_ev;
	frame_ev.data = NULL;
	frame_ev.eventtype = Frame_Event;
	while (true) {
		SDL_Event ev;
		while (SDL_PollEvent(&ev)) { //poll for SDL events
			switch (ev.type) { // check the event type
			case SDL_QUIT:
				die();
				break;
			default:
				ic.processEvent(ev);
			}
		}
		rc.doFrame();
		throwEvent(frame_ev);
		triggerEvents();
		//GL rendering here
		rc.render();
		SDL_GL_SwapWindow(window);
	}
}
Exemplo n.º 3
0
void LinkLoader::notifyFinished(Resource* resource) {
  DCHECK_EQ(this->resource(), resource);

  triggerEvents(resource);
  clearResource();
}