main.c:
- Code: Select all
#include <pspkernel.h>
#include <pspdebug.h>
#include <pspcallbacks.h>
#include "graphics.h"
PSP_MODULE_INFO("Pocket School",0,1,1);
int main() {
SetupCallbacks();
initGraphics();
Image* background = loadImage("image.png");
blitAlphaImageToScreen(0,0,480,272,background,0,0);
flipScreen();
sceKernelSleepThread();
return 0;
}
make file:
- Code: Select all
TARGET = image
OBJS = main.o graphics.o framebuffer.o
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBS = -lpspgu -lpng -lz -lm
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Image
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
\actually i got my maino ready but the other files...
