Moved SFML vars to main file
This commit is contained in:
parent
80dfbb3d0a
commit
945f5e679c
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user