request for normcount values

tigital tigital at mac.com
Thu Dec 19 01:39:46 EST 2002


hiya,

...ok, I've implemented a swapping method, but am still stuck on a 
variable "normcount" in modeloctant.cpp: moff_defpoints():  it is a 
"ubyte*", which I don't know how to deal with?  Should it be swapped?

...here's the relevent function for easy reference:

void moff_defpoints(ubyte * p)
{
	int n;
	int nverts = SDL_SwapLE32( w(p+8));
	int offset = SDL_SwapLE32( w(p+16));
         //int nverts = w(p+8);
         //int offset = w(p+16);

	ubyte * normcount = p+20;
         vector *src = vp(p+offset);

	Assert( nverts < MAX_POLYGON_VECS );
	// Assert( nnorms < MAX_POLYGON_NORMS );

	for (n=0; n<nverts; n++ )	{
             src->xyz.x = LoadLEFloat( &src->xyz.x );
             src->xyz.y = LoadLEFloat( &src->xyz.y );
             src->xyz.z = LoadLEFloat( &src->xyz.z );

             Interp_verts[n] = src;
             //normcount[n] = SDL_SwapLE32( normcount[n] );

             src += normcount[n]+1;
	}
}

Help!
jamie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/freespace2/attachments/20021219/40483773/attachment.htm>


More information about the freespace2 mailing list