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


flippy :p by JazzD
1
 
    buffer = new unsigned char[pImage->sizeX * pImage->sizeY * 3];

    for(i = 0; i < pImage->sizeY; i++) 
    { 
      memcpy( buffer + ((i * pImage->sizeX) * 3), pImage->data + (((pImage->sizeY - i - 1) * pImage->sizeX) * 3), pImage->sizeX * 3);
    }