app :: App :: show_splash_screen
# Display `texture` as a splash screen
#
# Load `texture` if needed and resets `ui_camera` to 1080 units on the Y axis.
fun show_splash_screen(texture: Texture)
do
texture.load
var splash = new Sprite(texture, ui_camera.center.offset(0.0, 0.0, 0.0))
ui_sprites.add splash
var display = display
assert display != null
glClear gl_COLOR_BUFFER_BIT
ui_camera.reset_height 1080.0
glViewport(0, 0, display.width, display.height)
frame_core_ui_sprites display
display.flip
ui_sprites.remove splash
end
lib/gamnit/flat/flat_core.nit:389,2--409,4