Пример #1
0
	void checkTile(const char* name)
	{
		string p = (getRenderedDirectory() / string(name)).append(".png").string();
		renderLabels(p.c_str());

		compareTile(name);
	}
Пример #2
0
void MainWidget::paintEvent(QPaintEvent* evt)
{
	tick();

	logic(deltaTime);
	render();
	renderLabels();

	HWND hwnd = (HWND)winId();
	HDC hdc = GetDC(hwnd);
	SwapBuffers(hdc);
	ReleaseDC(hwnd, hdc);
}
Пример #3
0
void TestPattern::render()
{
    glPushAttrib(GL_CURRENT_BIT | GL_LINE_BIT);
    glPushMatrix();

    renderCrossPattern();

    // screen information in front of cross pattern
    glTranslatef(0., 0., 0.1);

    renderLabels();

    glPopMatrix();
    glPopAttrib();
}