glesv2 :: GLError :: defaultinit
core :: 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.
core :: Pointer :: defaultinit
glesv2 :: GLEnum :: defaultinit
glesv2 :: GLError :: 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).
# An OpenGL ES 2.0 error code
extern class GLError
super GLEnum
redef fun to_s
do
if self == gl_NO_ERROR then return "No error"
if self == gl_INVALID_ENUM then return "Invalid enum"
if self == gl_INVALID_VALUE then return "Invalid value"
if self == gl_INVALID_OPERATION then return "Invalid operation"
if self == gl_INVALID_FRAMEBUFFER_OPERATION then return "invalid framebuffer operation"
if self == gl_OUT_OF_MEMORY then return "Out of memory"
return "Unknown error"
end
end
lib/glesv2/glesv2.nit:514,1--528,3