Esempio n. 1
0
File: gui.c Progetto: nop90/Vex3DS
void gui_DrawTopScreen() {

    sf2d_set_clear_color(RGBA8(0x00, 0x00, 0x44, 0xFF));

	sf2d_start_frame(GFX_TOP, GFX_LEFT);
		
	if(splash)
		sf2d_draw_texture_part_rotate_scale(splash, 200, 120, 0, 0, 0, splash->width, splash->height, splash->width/400, splash->height/240);
/*

		sf2d_draw_texture_part_rotate_scale(temptext, 200, 120, 0, 0, 0, 160, 102, 1, 1); //1x
*/
	sf2d_end_frame();
}
Esempio n. 2
0
void renderr(s32 xp, s32 yp, u32 xTile, u32 yTile, u8 bits, float rotate) {
	xp -= offsetX;
	yp -= offsetY;
	int scaleX = 2, scaleY = 2;
	if ((bits & 1) > 0) {
		scaleX = -2;
		xp += 8;
	}
	if ((bits & 2) > 0) {
		scaleY = -2;
		yp += 8;
	}
	sf2d_draw_texture_part_rotate_scale(icons, xp << 1, yp << 1, rotate, xTile,
			yTile, 8, 8, scaleX, scaleY);
}