#include <stdio.h>
#include <stdlib.h>
#include <SFML/Graphics.h>
#include "config.h"
int main(int argc, char **argv)
{
sfVideoMode vidmode = {view_width, view_height, 32};
sfRenderWindow *window = sfRenderWindow_create(vidmode, sfTexture_updateFromRenderWindow, sfDefaultStyle, NULL);
sfEvent sfml_event;
while (sfRenderWindow_isOpen(window))
{
while (sfRenderWindow_pollEvent(window, &sfml_event)) {
switch (sfml_event.type) {
case sfEvtClosed: {sfRenderWindow_close(window); break;}
}
}
if (sfKeyboard_isKeyPressed(sfKeyEscape)) {sfRenderWindow_close(window);}
sfRenderWindow_clear(window, sfBlack);
sfRenderWindow_display(window);
}
sfRenderWindow_destroy(window);
return EXIT_SUCCESS;
}