Another point

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

Moderators: cheriff, TyRaNiD

Post Reply
checkdgt
Posts: 3
Joined: Mon Aug 15, 2005 1:28 am
Location: DEVON, UK!!
Contact:

Another point

Post by checkdgt »

Im just learning 3D as well as PSP so at the moment im playing around with vertices. At the moment im plotting points and then going to move into triangles.

The problem im having is with the Lines sample. If ripped this apart to play with just points and then triangles, however when Im writing to the main buffer with 3 vertices im getting a fourth at what looks like 0,0.
for (i = 0; i < NUM_VERTICES; i++)
{
// we make local copies of the line into the main buffer here, so we don't have to flush the cache

struct Vertex* vertices = sceGuGetMemory(3 * sizeof(struct Vertex));

// create a lineloop
vertices = triangle;

sceGuDrawArray(GU_POINTS,GU_VERTEX_32BITF|GU_TRANSFORM_2D,3,0,vertices);
}


If I just write triangle directly from its current memory location I dont get the fourth point on screen :|

Can anyone help.
Here I sit, broken hearted, ate a dime, but only farted.
Post Reply