forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Using GU for 2d rendering

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
roby65



Joined: 01 Jun 2008
Posts: 55
Location: Mid Italy

PostPosted: Tue Feb 02, 2010 8:17 pm    Post subject: Using GU for 2d rendering Reply with quote

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...
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Wed Feb 03, 2010 12:50 am    Post subject: Reply with quote

www.ghoti.nl

He has some tutorials.
_________________
Code:
int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
Back to top
View user's profile Send private message
sauron_le_noir



Joined: 05 Jul 2008
Posts: 229

PostPosted: Wed Feb 03, 2010 6:17 am    Post subject: Reply with quote

Yep but the makefiles are very outdated. i remake the makefile to be compatible with CF5.50
here is the makefile for tuto1
Code:

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:

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:

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
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group