GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: No Line Numbers


stripalizing by Amltech
1
 
fwrite(verts, sizeof(vert), numverts, file);
        Refs = (uword*)sr.StripRuns;
        
        for(k=0;k<sr.NbStrips;k++)
        {
            
            NbRefs = sr.StripLengths[k];
            fprintf(file2, "%d ", sr.StripLengths[k]);
            fwrite(&sr.StripLengths[k],sizeof(unsigned int),1,file);
            for(j=0;j<NbRefs;j++)
            {
                fprintf(file2, "%d ", *Refs);
                fwrite(Refs,sizeof(unsigned int),1,file);
                *Refs++;
            }
            fprintf(file2, "\n");
        }