Skip to content

Instantly share code, notes, and snippets.

View testfullscreen.c
#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;
View testdup.c
#ifdef __EMSCRIPTEN__
#include <emscripten.h>
#endif
#include "SDL.h"
static int run = 1;
void loop()
{
SDL_Event event;
while (SDL_PollEvent(&event)) {
View testfullscreen.c
#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;
You can’t perform that action at this time.