Ejemplo n.º 1
0
void ImageScene::RenderContent()
{
	SDL_SetRenderDrawColor(display.renderer, 0x00, 0x00, 0x00, 0xff);
	SDL_RenderClear(display.renderer);

	// Draw the background layer.
	display.SetLowRes();
	levelDecor->RenderLayer(0);

	// Draw the paintings.
	if (showPaintings) {
		display.SetHighRes();
		DrawPainting(cavePainting, 2, 1, 3, 3);
		DrawPainting(animePainting, 3, 5, 4, 3);
		DrawPainting(sunsetPainting, 9, 2, 5, 5);
	}

	// Draw the foreground layer.
	display.SetLowRes();
	levelDecor->RenderLayer(1);

	SUPER::RenderContent();
}
Ejemplo n.º 2
0
void Draw::DrawPainting(int x, int y, int cx, int cy, const Painting& ig)
{
	DrawPainting(RectC(x, y, cx, cy), ig);
}