Base SDL framework