Un Engine per domarli, un Engine per trovarli, ecc…

Stavolta ho superato me stesso…


int main(int argc, char *argv[])
{
	using namespace engine;
	using namespace engine::graphics;
	using namespace engine::platform;

	Platform * myPlatform = new Platform();
	myPlatform->init();

	Display * display = myPlatform->getGraphicsDevice()->getDisplay(0);

	FixedSprite * testSprite = new FixedSprite("data\\prova.bmp");
	testSprite->setPosition(Vec2f(30, 30));

	Renderer * myRenderer = new Renderer();

	myRenderer->setDisplay(display);

	Entity2DTree * entityTree = new Entity2DTree(testSprite);

	myRenderer->draw(entityTree);
	myRenderer->update(1.0f);

	myPlatform->getCommon()->delay(1000);

	return 0;
}

Questo codice gira senza modifiche su una decina di sistemi operativi diversi, producendo…

questo:

0 comments ↓

There are no comments yet...Kick things off by filling out the form below.

Leave a Comment