gamnit :: gamnit_ios
gamnit :: gamnit_ios $ GamnitGLKView
View controller implemented by gamnitgamnit :: gamnit_ios $ GamnitGLKView
View controller implemented by gamnitcocoa :: foundation
The Foundation Kit provides basic Objective-C classes and structuresSerializable::inspect
to show more useful information
more_collections :: more_collections
Highly specific, but useful, collections-related classes.serialization :: serialization_core
Abstract services to serialize Nit objects to different formatscore :: union_find
union–find algorithm using an efficient disjoint-set data structure
# Support services for gamnit on iOS
module gamnit_ios
import ios
import gamnit
import ios::assets
redef class App
redef fun did_finish_launching_with_options
do
create_gamnit
create_scene
return super
end
# Disable the game loop to rely on the GLKView callbacks on each frame instead
redef fun run do end
private fun frame_full_indirect do frame_full
end
redef class GamnitGLKView
redef fun update do app.frame_full_indirect
end
redef fun bind_screen_framebuffer(fbo)
do
var display = app.display
assert display != null
display.glk_view.bind_drawable
end
lib/gamnit/gamnit_ios.nit:15,1--46,3