Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. for (int y = 0; y < heightmap->h; y++)
  2. for (int x = 0; x < heightmap->w; x++) {
  3. printf("%i: %i, %i: %i\n", frm, x,y, heightmap->format->BytesPerPixel);
  4. Uint32 *pixels = (Uint32 *)heightmap->pixels;
  5. Uint32 l = pixels[ ( y * 257 ) + x ];
  6.  
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement