This file contains hidden or 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
"""Simple example for using sdl2 directly.""" | |
import os | |
import sys | |
import ctypes | |
import sdl2 | |
def run(): | |
sdl2.SDL_Init(sdl2.SDL_INIT_VIDEO) | |
window = sdl2.SDL_CreateWindow(b"Hello World", |