튜토리얼 보고 하나씩 차근차근 익혀가는중...
http://www.psp-programming.com/tutorials/c/lesson04.htm
[CODE type="c"]
int main() {
[tab]char buffer[200];
[tab]Image* ourImage;
[tab]pspDebugScreenInit();
[tab]SetupCallbacks();
[tab]initGraphics();
[tab]sprintf(buffer, "ourImage.png");
[tab]ourImage = loadImage(buffer);
[tab]if (!ourImage) { //Image load failed
[tab][tab]printf("Image load failed!\n");
[tab]}
[tab]else {
[tab][tab]int x = 0;
[tab][tab]int y = 0;
[tab][tab]sceDisplayWaitVblankStart();
[tab][tab]while (x < 480) {
[tab][tab][tab]while (y < 272) {
[tab][tab][tab][tab]blitAlphaImageToScreen(0 ,0 ,100 , 100, ourImage, x, y);
[tab][tab][tab][tab]y += 100;
[tab][tab][tab]}
[tab][tab][tab]x += 100;
[tab][tab][tab]y = 0;
[tab][tab]}
[tab][tab]flipScreen();
[tab]}
[tab]sceKernelSleepThread();
[tab]return 0;
}
[/HTML][/CODE]
Trackback Address :: 이 글에는 트랙백을 보낼 수 없습니다