document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. void PutPixel(Coordenadas *coordenadas, Cor *cor)
  2. {
  3.     if( ( (coordenadas->GetX() <= 512) || (coordenadas->GetX() <= 0) ) && ( (coordenadas->GetY() <= 512) || (coordenadas->GetY() <= 0) ) )
  4.     {
  5.         int x = coordenadas->GetX();
  6.         int y = coordenadas->GetY();
  7.         int indice = x*4 + y*4*IMAGE_WIDTH;
  8.         FBptr[indice + 0] = cor->GetR();
  9.         FBptr[indice + 1] = cor->GetG();
  10.         FBptr[indice + 2] = cor->GetB();
  11.         FBptr[indice + 3] = cor->GetA();
  12.  
  13.     }
  14.  
  15.  
  16. }
');