#include "Ы.h"
int main(int argc, char* argv []) {
SDL_Init(0x00000001 | 0x00000010 | 0x00000020 | 0x00004000 | 0x00000200 | 0x00001000 | 0x00002000);
SDL_Window* window = SDL_CreateWindow("Title", 0x1FFF0000, 0x1FFF0000, 640, 320, SDL_WINDOW_SHOWN);
SDL_Renderer* renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC);
SDL_Event event;
bool run = true;
while (run) {
while (SDL_PollEvent(&event)) {
switch (event.type) {
case SDL_QUIT:
run = false;
break;
}
}
SDL_SetRenderDrawColor(renderer, 0, 0, 0, 0);
SDL_RenderClear(renderer);
SDL_SetRenderDrawColor(renderer, 255, 255, 255, 255);
SDL_RenderDrawLine(renderer, 0, 0, 200, 100);
SDL_RenderPresent(renderer);
}
SDL_DestroyWindow(window);
SDL_DestroyRenderer(renderer);
SDL_Quit();
return 0;
}
while (SDL_PollEvent(&event)) {
switch (event.type) {
case SDL_QUIT:
run = false;
break;
case SDL_KEYDOWN:
break;
case SDL_KEYUP:
break;
case SDL_MOUSEBUTTONDOWN:
break;
case SDL_MOUSEBUTTONUP:
break;
}
}
SDL_SetRenderDrawColor(renderer, 0, 0, 0, 0);
SDL_RenderClear(renderer);
SDL_SetRenderDrawColor(renderer, 255, 255, 255, 255);
SDL_RenderDrawLine(renderer, 0, 0, 200, 100);
SDL_RenderPresent(renderer);