Search found 8 matches

by yimtaka
Tue Aug 14, 2007 8:17 pm
Forum: PSP Development
Topic: drawing multiple objects with the GU with different colours?
Replies: 4
Views: 2132

OK. I have found the solution.

Because I was manipulating the same vertex data each time before drawing to the screen I had to add the line:

sceKernelDcacheWritebackAll();

I added this line after every time I changed something in the vertex object and now everything works as it should.
by yimtaka
Sat Aug 11, 2007 12:53 am
Forum: PSP Development
Topic: drawing multiple objects with the GU with different colours?
Replies: 4
Views: 2132

Ok another way of describing the problem is say you needed to draw a grid of tiles 5x5 on the screen, each tile had to be a different color. You had the geometry stored in vertices[] which includes gradient color. How would you do it?
by yimtaka
Fri Aug 10, 2007 10:55 pm
Forum: PSP Development
Topic: drawing multiple objects with the GU with different colours?
Replies: 4
Views: 2132

I know this can be easily done by having 2 objects, each with their own vertices but I need to know if it can be done with one object e.g. draw cube at 10,10 in blue then draw cube at 20,20 in red etc.

please help!
by yimtaka
Fri Aug 10, 2007 5:59 pm
Forum: PSP Development
Topic: drawing multiple objects with the GU with different colours?
Replies: 4
Views: 2132

drawing multiple objects with the GU with different colours?

Hi all, this may be a simple question but I have been trying ages to get this to work without any success. The closest I get is being able to draw all the objects but they have the same colour but the colour is not correct, it seems to be a mixture of the colours of both objects. What I have is: A l...
by yimtaka
Fri Aug 10, 2007 5:49 pm
Forum: PSP Development
Topic: Can't use a function more than once
Replies: 7
Views: 2717

it's working now!. I removed the -O2 parameter from the makefile and it compiles and works on my psp now. Sorry for the lack of information.
by yimtaka
Thu Aug 09, 2007 6:31 pm
Forum: PSP Development
Topic: Can't use a function more than once
Replies: 7
Views: 2717

Re: Can't use a function more than once

Hi all, I am new to the forum and have just started development for the PSP. I am using devkitpro to develop for the PSP. I have created a function and if I call that function more than once, when trying to compile I get the error: .ent or .aent not in text section .end not in text section operatio...
by yimtaka
Thu Aug 09, 2007 6:30 pm
Forum: PSP Development
Topic: Can't use a function more than once
Replies: 7
Views: 2717

Sorry I can't at the moment as I am at work. I used the sample from the SDK folder called ortho in the GU folder. I just added a function to it.
Could I be missing something in the make file?
by yimtaka
Thu Aug 09, 2007 6:21 pm
Forum: PSP Development
Topic: Can't use a function more than once
Replies: 7
Views: 2717

Can't use a function more than once

Hi all, I am new to the forum and have just started development for the PSP. I am using devkitpro to develop for the PSP. I have created a function and if I call that function more than once, when trying to compile I get the error: .ent or .aent not in text section .end not in text section operation...