펭귄이닷!

PSP/devel 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]

Trackback Address :: http://blog.kfmes.com/trackback/113

  1. BlogIcon nidev 2007/01/13 14:38 댓글주소 | 수정 | 삭제 | 댓글

    초괴수;

  2. 조정환 2007/01/13 14:47 댓글주소 | 수정 | 삭제 | 댓글

    저랑 비슷한 삽질중이시네요??ㅋ전 요즘 psp, ibook, pda 요거 세가지로 하루를 보내고 있네요. 근데 언제쯤 Jateon을 구경해볼수 있을런지...기회를 주세요 네? steamman11@gmail.com