Example #1
0
	void update()
	{
		m_pImage->clear(0xff000000); // a=ff, r=00, g=00, b=00
		HelloModel* pModel = m_pController->model();
		m_pImage->text(g_szMessage, pModel->x(), pModel->y(), TEXT_SIZE, 0xffffff30); // a=ff, r=ff, g=ff, b=30
		m_pCanvas->setImage(m_pImage);
	}
Example #2
0
	void Iterate(bool forw)
	{
		g_updateView = m_pUpdateDisplay->isChecked();
		if(!g_updateView && m_prng->next(8192) == 0)
			g_updateView = true;
		m_pModel->IterateModel(m_pBullets->selection(), forw);
		m_pCanvas->setImage(m_pImage);
	}