펭귄이닷!

개발/psp 2007/01/13 14:12

튜토리얼 보고 하나씩 차근차근 익혀가는중...
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]
2007/01/13 14:12 2007/01/13 14:12

Trackback Address :: 이 글에는 트랙백을 보낼 수 없습니다


: [1] : ... [28] : [29] : [30] : [31] : [32] : [33] : [34] : [35] : [36] : ... [72] :