This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SDL.h> | |
#include <stdio.h> | |
#define RGB(r, g, b) (((r)<<16)|((g)<<8)|(b)) | |
void displayImage(SDL_Surface *surface, uint8_t *image) { | |
uint32_t *pixels = (uint32_t *)surface->pixels; | |
uint32_t pixel; | |
uint16_t raw; | |
uint8_t y; |
NewerOlder