예제 #1
0
파일: display.cpp 프로젝트: nevilc/YomiDS
Display::Display(bool screen_, unsigned char x_, unsigned char y_, unsigned char w_, unsigned char h_) : _screen(screen_), _x(x_), _y(y_), _w(w_), _h(h_), _dirty(true), _enabled(false){	
	dprint("New Display");

	_instances = linkedlistAdd(_instances ? &_instances : NULL, reinterpret_cast<void*>(this));
	// ERROR
	sassert(_instances != NULL, "Insufficient memory for LinkedList");
}
예제 #2
0
void EntityManager::Add(Entity* entity)
{
	mEntities = linkedlistAdd(&mEntities, entity); 
}