Merge: gamnit: distinguish between `create_gamnit` and `create_scene`
authorJean Privat <jean@pryen.org>
Thu, 23 Nov 2017 16:12:58 +0000 (11:12 -0500)
committerJean Privat <jean@pryen.org>
Thu, 23 Nov 2017 16:12:58 +0000 (11:12 -0500)
commit5e595c831c9d9914b325df37d706b1ee0e7bc471
tree989a0834487fad9dbeaba6322cf6e66817c8c82d
parent1b1706eed1a31f4d1c3ef48e184e50ec2e0f7741
parentac336dbd2a44db9184629c059e5cdba2d985d072
Merge: gamnit: distinguish between `create_gamnit` and `create_scene`

Intro `create_gamnit` and `create_scene` to replace the use of `on_create` in gamnit. This change keeps separate the OpenGL setup in `create_gamnit`, from the world/menu creation in `create_scene`. This will allow support for reinitializing the OpenGL context when the EGL context is lost, which may happen on Android when the game goes in the background. It may also support creating a gamnit game separately from the main application.

Current gamnit games should still work despite the API change, but they will need updating to work with the incoming Android support.

Pull-Request: #2585
Reviewed-by: Romain Chanoir <romain.chanoir@viacesi.fr>