GumDrawArray and index array

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

Moderators: cheriff, TyRaNiD

Post Reply
maroxe
Posts: 18
Joined: Tue Sep 01, 2009 6:28 pm

GumDrawArray and index array

Post by maroxe »

Hi,
first eccuse my bad english
I wanna know if the index array must point to a vertex or to ther vertex composants.
I mean, if my vertex tab is like that:
vertex[] = {
{ u, v, color, x, y, z },// vert 0
{ u, v, color, x, y, z },// vert 1
// ....
{ u, v, color, x, y, z }// vert n
}
and my index array:
index[] = {0, 1, 2, 3, ...n}
index[1] will indicate the vertex number 1 or the color in the vertex number1?
maroxe
Posts: 18
Joined: Tue Sep 01, 2009 6:28 pm

Post by maroxe »

up
Post Reply