ObjDef
gamnit :: ObjFace :: defaultinit
gamnit :: ObjFace :: material_lib
Relative path to the .mtl material libgamnit :: ObjFace :: material_lib=
Relative path to the .mtl material libgamnit :: ObjFace :: material_name
Name of the material inmaterial_lib
gamnit :: ObjFace :: material_name=
Name of the material inmaterial_lib
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
gamnit :: ObjFace :: 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.
gamnit :: ObjFace :: material_lib
Relative path to the .mtl material libgamnit :: ObjFace :: material_lib=
Relative path to the .mtl material libgamnit :: ObjFace :: material_name
Name of the material inmaterial_lib
gamnit :: ObjFace :: material_name=
Name of the material inmaterial_lib
core :: Object :: output_class_name
Display class name on stdout (debug only).
# Flat surface of an `ObjDef`
class ObjFace
# Vertex composing this surface, there should be 3 or more
var vertices = new Array[ObjVertex]
# Relative path to the .mtl material lib
var material_lib: nullable String
# Name of the material in `material_lib`
var material_name: nullable String
end
lib/gamnit/model_parsers/obj.nit:230,1--240,3