[ ] SDL 2: 1 , SDL 2 |
#include SDL.h>
const int SCREEN_WIDTH = 640;
const int SCREEN_HEIGHT = 480;
int main (int argc, char ** args) {
if( SDL_Init( SDL_INIT_EVERYTHING ) != 0 )
{
return 1;
}
SDL_Surface* screen_surface = NULL;
SDL_Window* window = NULL;
https://habr.com/ru/post/453700/?utm_source=habrahabr&utm_medium=rss&utm_campaign=453700