Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int y = 0; y < heightmap->h; y++)
- for (int x = 0; x < heightmap->w; x++) {
- printf("%i: %i, %i: %i\n", frm, x,y, heightmap->format->BytesPerPixel);
- Uint32 *pixels = (Uint32 *)heightmap->pixels;
- Uint32 l = pixels[ ( y * 257 ) + x ];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement