1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#ifndef VIEWPORT_H #define VIEWPORT_H #include <SDL.h> struct viewport { Sint16 x; Sint16 y; Uint16 w; Uint16 h; SDL_Surface *screen; }; struct viewport *init_viewport(Uint16 width, Uint16 height, int bpp); #endif