Moved SFML vars to main file

This commit is contained in:
0xmac 2024-12-05 11:45:05 +01:00
parent 80dfbb3d0a
commit 945f5e679c

View File

@ -8,7 +8,6 @@
#include <SFML/Graphics.h>
#include <SFML/Window.h>
#include "ls7emulator.h"
#include "config.h"
#include "events.c"
#include "cpu.c"
@ -17,6 +16,10 @@
#include "keyboard.c"
sfVertexArray *renderArray;
sfRenderWindow *window;
sfRenderStates renderStates;
void openFile(const char *inputFile){
FILE *file = fopen(inputFile, "rb");
@ -68,7 +71,7 @@ int main(int argc, char *argv[]){
sfTransform_scale(&renderStates.transform, 2, 2);
resetSystem();
while (sfRenderWindow_isOpen(window)){
pollEvents(window);