Using GU for 2d rendering

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
roby65
Posts: 52
Joined: Sun Jun 01, 2008 9:12 pm
Location: Mid Italy
Contact:

Using GU for 2d rendering

Post by roby65 »

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...
jojojoris
Posts: 255
Joined: Sun Mar 30, 2008 4:06 am

Post by jojojoris »

www.ghoti.nl

He has some tutorials.

Code: Select all

int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
sauron_le_noir
Posts: 203
Joined: Sat Jul 05, 2008 8:03 am

Post by sauron_le_noir »

Yep but the makefiles are very outdated. i remake the makefile to be compatible with CF5.50
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
makefile for tuto4

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
Post Reply