'Tux'에 해당되는 글 1건

  1. 2007.01.13 펭귄이닷! 2

펭귄이닷!

개발/psp 2007. 1. 13. 14:12
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

튜토리얼 보고 하나씩 차근차근 익혀가는중...
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]

'개발 > psp' 카테고리의 다른 글

MP3 Player sample code  (1) 2007.01.14
처음 해본 PSP 프로그래밍  (3) 2007.01.13
pspsdk 설치 삽질 기록  (2) 2007.01.12