static void Main(string[] args) { FFI.CreateContext("Little Polygon C# Demo", 3 * 320, 3 * 115, ""); // PLAY SOME MUSIC var mus = SDL_mixer.Mix_LoadMUS("song.mid"); if (mus != IntPtr.Zero) { SDL_mixer.Mix_PlayMusic(mus, -1); } // BASIC EVENT LOOP var window = SDL.SDL_GL_GetCurrentWindow(); while (!gDone) { HandleEvents(); FFI.ClearScreen(); SDL.SDL_GL_SwapWindow(window); } FFI.DestroyContext(); }