GLKViewController
and its GLKView
ios $ NativeGLKViewController :: SELF
Type of this instance, automatically specialized in every classcore :: Pointer :: address_is_null
Is the address behind this Object at NULL?core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
cocoa :: NSObject :: defaultinit
core :: Pointer :: defaultinit
core :: Object :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: native_class_name
The class name of the object in CString format.core :: Pointer :: native_equals
core :: Object :: output_class_name
Display class name on stdout (debug only).core :: Pointer :: premultiply_alpha
Multiply RGB values by their alpha value
# Wrapper for both an Objective-C `GLKViewController` and its `GLKView`
private extern class NativeGLKViewController in "ObjC" `{ GLKViewController * `}
super NSObject
fun content_scale_factor: Float in "ObjC" `{ return self.view.contentScaleFactor; `}
fun drawable_width: Int in "ObjC" `{ return ((GLKView*)self.view).drawableWidth; `}
fun drawable_height: Int in "ObjC" `{ return ((GLKView*)self.view).drawableHeight; `}
fun bind_drawable in "ObjC" `{ [((GLKView*)self.view) bindDrawable]; `}
fun multiple_touch_enabled: Bool in "ObjC" `{ return [self.view isMultipleTouchEnabled]; `}
fun multiple_touch_enabled=(val: Bool) in "ObjC" `{ return [self.view setMultipleTouchEnabled: val]; `}
end
lib/ios/glkit.nit:80,1--91,3