Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. unsigned int * pData = GfxImageGetData(m_pImage);
  2.  
  3. for(int y = 0 ; y < SizeY ; ++y )
  4. {
  5.     for(int x = 0 ; x < SizeX ; ++x)
  6.     {
  7.         int iIndex = x + SizeX * y;
  8.  
  9.         pData[iIndex] = GfxColor(r,g,b,a);
  10.     }
  11. }
  12.  
  13.  
  14. GfxImageSave(m_pImage, "Level.tga");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement