This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <SDL2/SDL.h> | |
#ifdef __EMSCRIPTEN__ | |
#include <emscripten.h> | |
#endif | |
static int count = 0; | |
static SDL_Surface* screen = NULL; | |
static SDL_Texture* sdlTexture = NULL; | |
static SDL_Renderer* sdlRenderer = NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef __EMSCRIPTEN__ | |
#include <emscripten.h> | |
#endif | |
#include "SDL.h" | |
static int run = 1; | |
void loop() | |
{ | |
SDL_Event event; | |
while (SDL_PollEvent(&event)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <SDL2/SDL.h> | |
#ifdef __EMSCRIPTEN__ | |
#include <emscripten.h> | |
#endif | |
static int count = 0; | |
static SDL_Surface* screen = NULL; | |
static SDL_Texture* sdlTexture = NULL; | |
static SDL_Renderer* sdlRenderer = NULL; |