Jump to content

  • Log In with Google      Sign In   
  • Create Account

14 years ago on June 15th Gamedev.net was first launched! We want to thank all of you for being part of our community and hope the best years are ahead of us. Happy birthday Gamedev.net!

#Actualkauna

Posted 03 May 2012 - 05:27 AM

After the part

"GetF(0, ptr+56+BaseClass->MapOffset, sizeof(CUSTOMVERTEX)*NumVertices, &vertex[0]);"

Can't you just iterate through your vertices and swap the z and y components?

Such as

for(int i=0;i<NumVertices;++i)
{
std::swap(vertex[i].z,vertex[i].y);
}
Best regards!

#1kauna

Posted 03 May 2012 - 05:26 AM

After the part

"GetF(0, ptr+56+BaseClass->MapOffset, sizeof(CUSTOMVERTEX)*NumVertices, &vertex[0]);"

Can't you just iterate through your vertices and swap the z and y components?

Such as

for(int i=0;i<NumVertices;++i)
{
std::swap(vertex[i].z,vertex[i].y);
}

Best regards!

PARTNERS