Search found 60 matches

by psPea
Fri Jul 24, 2009 6:07 am
Forum: PSP Development
Topic: 2D draw methods/ Java -> C++
Replies: 30
Views: 7798

>Let me know if you need to see more code if itll help.

the whole compile log would be useful too
by psPea
Fri Jul 24, 2009 4:24 am
Forum: PSP Development
Topic: 2D draw methods/ Java -> C++
Replies: 30
Views: 7798

I'm thinking your header files aren't found
are they in the same folder as you.h
if so change
#include <header.h>
to
#include "header.h"
by psPea
Wed Jul 22, 2009 2:54 pm
Forum: PSP Development
Topic: 2D draw methods/ Java -> C++
Replies: 30
Views: 7798

I'm now reading your code and I see that Rectangle.h isn't included in main

also I believe graphics.h isn't wrapped in an extern "C"
so
change
#include "graphics.h"
to
extern "C"
{
#include "graphics.h"
}
by psPea
Wed Jul 22, 2009 1:54 pm
Forum: PSP Development
Topic: 2D draw methods/ Java -> C++
Replies: 30
Views: 7798

change main.c to main.cpp
and add -lstdc++ to LIBS in your makefile
by psPea
Wed Jul 22, 2009 2:28 am
Forum: PSP Development
Topic: PRX turns off psp
Replies: 35
Views: 11026

I was joking with the PSP_KERNEL_MODE_KERNEL, sorry bout that.
kernel mode is 0x1000
by psPea
Tue Jul 21, 2009 12:33 pm
Forum: PSP Development
Topic: 2D draw methods/ Java -> C++
Replies: 30
Views: 7798

Do you know if C++ has a Rectangle object that contains functions which tell if something is inside the Rectangle, on its border, etc.? why not try running the rectangle class through the converter? >I am using eclipse Galileo and i know for a fact there are many syntax errors that are not being sho...
by psPea
Tue Jul 21, 2009 12:06 pm
Forum: PSP Development
Topic: PRX turns off psp
Replies: 35
Views: 11026

shouldn't this be in kernel mode

Code: Select all

PSP_MODULE_INFO&#40;"Turn off", PSP_KERNEL_MODE_KERNEL, 1, 1&#41;; 
by psPea
Tue Jul 21, 2009 11:53 am
Forum: PSP Development
Topic: 2D draw methods/ Java -> C++
Replies: 30
Views: 7798

http://www.cplusplus.com/reference/stl/vector/ and http://www.cplusplus.com/reference/ one thing to note in Java object variables store reference to objects, in C++ that's not the case, notice how they changed Image to Image*. If you add an object to any of those containers they add a copy of it and...
by psPea
Tue Jul 21, 2009 11:14 am
Forum: PSP Development
Topic: 2D draw methods/ Java -> C++
Replies: 30
Views: 7798

put a space between the two >
change >>
to > >

also I didn't know there was ArrayList in C++
by psPea
Tue Jul 21, 2009 8:30 am
Forum: PSP Development
Topic: 2D draw methods/ Java -> C++
Replies: 30
Views: 7798

I've never used applets in Java so I have no clue what you're talking about. >So my question is (in regards to the C/C++ version)... can i pass main.c into "You"'s constructor as a parameter like so: I'm not sure what you mean, but I'm certain the answer is no. If you want "You" ...
by psPea
Tue Jul 21, 2009 5:40 am
Forum: PSP Development
Topic: 2D draw methods/ Java -> C++
Replies: 30
Views: 7798

>How do you define a custom color (through RBG values) and then set the background as that color? open up graphics.c and go to the clearScreen and add sceGuClearColor(color); before sceGuClear(GU_COLOR_BUFFER_BIT|GU_DEPTH_BUFFER_BIT); then when calling clearScreen, pass the colour you want to use as...
by psPea
Mon Jul 20, 2009 10:43 am
Forum: PSP Development
Topic: 2D draw methods/ Java -> C++
Replies: 30
Views: 7798

You have to clear the draw buffer. use clearScreen(0); before drawing >Redrawing to a buffered image 480x272 and then blitting that to the screen would avoid this and is the method i usually use in my Java programs. That would be to avoid flickering and the pspgu uses double buffering, you'd still h...
by psPea
Sat Jul 11, 2009 6:05 am
Forum: PSP Development
Topic: Models-Animations
Replies: 13
Views: 4583

I think jge++ can load md2 For Example I could not start any of the networking examples (They only create a .elf / .prx, and if I let them make a Eboot.pbp, my PSP shuts down or throws errors...) Those only work on 1.5, I've seen discussions where people try to get them to work for 3xx+, search and ...
by psPea
Fri Jun 26, 2009 5:35 am
Forum: PSP Development
Topic: OSK Libraries
Replies: 65
Views: 17199

Code: Select all

PSP_MODULE_INFO&#40;"GPOS", 0, PSP_VERS, PSP_REVS&#41;; 
PSP_MAIN_THREAD_ATTR&#40;PSP_THREAD_ATTR_USER&#41;; 
PSP_HEAP_SIZE_KB&#40;-256&#41;; 
Is not suppose to be in your makefile
put it in your main.c
by psPea
Wed Jun 24, 2009 10:23 am
Forum: PSP Development
Topic: libtiff exploit question
Replies: 20
Views: 4769

J.F. wrote:We try to shunt them over to psp-programming until they learn some C/C++/MIPS assembly.
And we don't appreciate it.
by psPea
Mon Jun 01, 2009 5:43 am
Forum: PSP Development
Topic: PSP port of Meritous RELEASED!
Replies: 22
Views: 7165

hurray another game
by psPea
Tue May 12, 2009 6:27 am
Forum: PSP Development
Topic: Error running prx by PSPLink
Replies: 4
Views: 1393

add filpScreen() after blitAlphaImageToScreen
by psPea
Wed Jan 21, 2009 6:07 am
Forum: PSP Development
Topic: [Evaluation Release]Geometry Wars Portable
Replies: 3
Views: 3152

another geometry wars clone
nice, and alot different from the other one
by psPea
Fri Jan 09, 2009 9:59 am
Forum: PSP Development
Topic: Audio Compling Problems (lightmp3 related kinda)
Replies: 3
Views: 4197

i believe those 3 indefined references refer to these 3 functions you'll have to figure out which is which, which shouldn't be difficult since they all have different prototypes int sceAudioSRCChReserve(int samplecount, int freq, int channels); int sceAudioSRCChRelease(void); int sceAudioSRCOutputBl...
by psPea
Sat Jan 03, 2009 1:23 pm
Forum: PSP Development
Topic: windows SDL to PSP, SDL_main undefined reference
Replies: 7
Views: 1845

exactly
by psPea
Sat Jan 03, 2009 12:25 pm
Forum: PSP Development
Topic: windows SDL to PSP, SDL_main undefined reference
Replies: 7
Views: 1845

you might have to put an
extern "C"
before your main
by psPea
Sat Jan 03, 2009 10:32 am
Forum: PSP Development
Topic: windows SDL to PSP, SDL_main undefined reference
Replies: 7
Views: 1845

you're looking for sdl-config in the wrong place if its not in C:/pspdev/psp/bin then it should be in C:/pspdev/bin The first time i used sdl i did $(shell $(PSPBIN)/sdl-config --cflags) as well and got the same error I just changed it to $(shell sdl-config --cflags) and it worked. I don't know if i...
by psPea
Sat Jan 03, 2009 8:40 am
Forum: PSP Development
Topic: Double Functions?? Is there any??
Replies: 2
Views: 1079

That's pretty weird...
...ohhh
you mean the decimal representation of doubles being manipulated like c strings.

check out sscanf and sprintf
by psPea
Thu Nov 20, 2008 11:05 am
Forum: PSP Development
Topic: Background image when showing the psp OSK
Replies: 4
Views: 1897

My bad, the osk sample doesn't have the cube its the save data sample I use lib graphics.h to show images but when I tried to use it with the sdk example it always crashed. Yeah so much for the easy way, try this quick mod of the osk sample, check out the DrawStuff function.An image img.png(png form...
by psPea
Wed Nov 19, 2008 8:42 am
Forum: PSP Development
Topic: Background image when showing the psp OSK
Replies: 4
Views: 1897

In the sdk samples you'll find the osk sample where a rotating cube is drawn in the background, so instead of drawing the cube just change it so an image image is drawn.
by psPea
Tue Aug 12, 2008 5:48 am
Forum: PSP Development
Topic: MP3 Playback is way too fast. What's next?
Replies: 4
Views: 2111

It could be that the frequency of the mp3 you're using is < 44100 hz(the default on the PSP). this would be the care (maybe) if the mp3 is mpeg 2/2.5 (mp3pro if you use yahoo/musicmatch jukebox). Solutions(if this is the problem): re-encode mp3 to 44100 hz or change the PSP audio output frequency to...
by psPea
Mon Jun 30, 2008 4:49 am
Forum: PSP Development
Topic: 4.01M33 issue with Undiluted Platinum
Replies: 12
Views: 2914

Pirata Nervo wrote:we are not here to waste our time answering those type of questions.
We are here to waste our time flaming people.
by psPea
Sat Jun 07, 2008 3:03 pm
Forum: PSP Development
Topic: Strange graphic problem
Replies: 12
Views: 3563

Also you can do uncached writes(or 0x40000000 to your pointer) which eliminates the need to write back from cache.
by psPea
Sat May 24, 2008 6:18 am
Forum: PSP Development
Topic: psplinkusb access other files
Replies: 19
Views: 4703

You need to have a backslash n at the end of your string for it to show up in pspsh(using printf). Also just put the bitmap in your project folder.
by psPea
Fri May 09, 2008 5:03 am
Forum: PSP Development
Topic: Problem with intraFont
Replies: 22
Views: 6464

Code: Select all

intraFont* ltn&#91;1&#93;;
then

Code: Select all

ltn&#91;8&#93; = intraFontLoad&#40;filen,INTRAFONT_CACHE_ASCII&#41;; 
???
Try this