Hey guys, i have a question.
Is there anywhere a sample for using the GU for 2d rendering?
I need to draw some buttons stored in bmp's, but i didn't find a sample on the pspsdk...
Using GU for 2d rendering
Code: Select all
int main(){
SetupCallbacks();
makeNiceGame();
sceKernelExitGame();
}
-
- Posts: 203
- Joined: Sat Jul 05, 2008 8:03 am
Yep but the makefiles are very outdated. i remake the makefile to be compatible with CF5.50
here is the makefile for tuto1
makefile for tuto2
makefile for tuto4
here is the makefile for tuto1
Code: Select all
TARGET = psp-cpp1
OBJS = GameApp.o GraphicsObject.o GraphicsObject.o main.o
BUILD_PRX = 1
PSP_FW_VERSION=550
INCDIR =
CFLAGS = -O2 -G0 -Wall -g
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti -g
ASFLAGS = $(CFLAGS)
LIBDIR =
LDFLAGS =
LIBS=-lc -g -lpspgum -lpspgu -lstdc++ -lm -lpsppower
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = PSP-cpp1
#PSP_EBOOT_ICON = ICON0.png
#PSP_EBOOT_PIC1= PIC1.png
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
makefile for tuto2
Code: Select all
TARGET = psp-cpp2
OBJS = GameApp.o GraphicsObject.o GraphicsObject.o Triangle.o main.o
BUILD_PRX = 1
PSP_FW_VERSION=550
INCDIR =
CFLAGS = -O2 -G0 -Wall -g
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti -g
ASFLAGS = $(CFLAGS)
LIBDIR =
LDFLAGS =
LIBS= -lc -g -lpspgum -lpspgu -lstdc++ -lm -lpsppower
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = PSP-cpp2
#PSP_EBOOT_ICON = ICON0.png
#PSP_EBOOT_PIC1= PIC1.png
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
Code: Select all
TARGET = psp-cpp4
OBJS = Box.o GameApp.o GraphicsObject.o main.o Triangle.o framebuffer.o graphics.o
BUILD_PRX = 1
PSP_FW_VERSION=550
INCDIR =
CFLAGS = -O2 -G0 -Wall -g
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti -g
ASFLAGS = $(CFLAGS)
LIBDIR =
LDFLAGS =
LIBS=-lc -g -lpspgum -lpspgu -lpng -lz -lstdc++ -lm -lpsppower
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = PSP-cpp2
#PSP_EBOOT_ICON = ICON0.png
#PSP_EBOOT_PIC1= PIC1.png
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak