glesv2 :: GLCap :: defaultinit
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
glesv2 :: GLCap :: 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 :: output_class_name
Display class name on stdout (debug only).
# A server-side capability
class GLCap
# TODO private init
# Internal OpenGL integer for this capability
private var val: Int
# Enable this server-side capability
fun enable do enable_native(val)
private fun enable_native(cap: Int) `{ glEnable(cap); `}
# Disable this server-side capability
fun disable do disable_native(val)
private fun disable_native(cap: Int) `{ glDisable(cap); `}
redef fun hash do return val
redef fun ==(o) do return o != null and is_same_type(o) and o.hash == self.hash
end
lib/glesv2/glesv2.nit:701,1--719,3