8 #include <emscripten.h> 38 namespace Emscripten {
41 SDL_Init(SDL_INIT_VIDEO);
43 EM_ASM(
"SDL.defaults.copyOnLock = false; SDL.defaults.discardOnLock = true; SDL.defaults.opaqueFrontBuffer = false;");
48 if (SDL_MUSTLOCK(
screen)) {
59 if (SDL_MUSTLOCK(
screen)) {
void pushRectUniform(KDRect rect, KDColor color)
void Display(const char *input)
void pullRect(KDRect r, KDColor *pixels)
void pushRect(KDRect r, const KDColor *pixels)
void pushRect(KDRect rect, const KDColor *pixels)
void pullRect(KDRect rect, KDColor *pixels)
void pushRectUniform(KDRect r, KDColor c)