Search found 4 matches

by lagwagon666
Thu Aug 24, 2006 2:11 am
Forum: PSP Development
Topic: dynamic memory allocation with realloc
Replies: 3
Views: 1571

Not sure if it's realated, but the size allocated should be : -sizeof(geo_object*) * geo_object_count you're right, that would probably have been the next problem I'd run into :) My problem was, that I tried to access the **geo_objects-var using array-style instead using pointer-arithmetics (geo_ob...
by lagwagon666
Tue Aug 22, 2006 6:48 am
Forum: PSP Development
Topic: dynamic memory allocation with realloc
Replies: 3
Views: 1571

dynamic memory allocation with realloc

Hello all, I'm trying to allocate memory to dynamically resize an array of a class. As in other parts the malloc()-call works well for me, I tried using realloc(). But this doesn't seem to work, it always returns me a NULL-pointer. So, what function can I use to resize an array dynamically? Here's t...
by lagwagon666
Tue Aug 22, 2006 6:38 am
Forum: PSP Development
Topic: sceGuDrawArray - Different behavior when using LINE_STRIP...
Replies: 4
Views: 1715

thx for your replies... TRIANGLE_FAN create a serie of filled triangles, all sharing 1 vertex, the 1st one [...] So, you last triangle ends up being of width 0 I understand what you mean, but this doesn't seem to be the behaviour of TRIANGLE_FAN because, in this case, my code wouldn't draw in fact a...
by lagwagon666
Sun Aug 20, 2006 5:51 am
Forum: PSP Development
Topic: sceGuDrawArray - Different behavior when using LINE_STRIP...
Replies: 4
Views: 1715

sceGuDrawArray - Different behavior when using LINE_STRIP...

...instead of GU_TRIANGLE_FAN? Hello, I use the sceGuDrawArray()-Function with GU_TRIANGLE_FAN from PSPSDK to draw filled rectangles on the screen. However, I found out that when I use the GU_LINE_STRIP primitive, the edges of my rectangle differ, for a better understanding here is some sample code:...