mesh
and material
Only leaves are actually drawn by the material
.
gamnit :: LeafModel :: defaultinit
gamnit :: model_dimensions $ LeafModel :: dimensions
Dimensions of the bounding box containing all verticescore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
gamnit :: LeafModel :: defaultinit
gamnit :: Model :: defaultinit
core :: Object :: defaultinit
gamnit :: Model :: dimensions
Dimensions of the bounding box containing all verticesgamnit :: Model :: dimensions=
Dimensions of the bounding box containing all verticescore :: 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 :: Model :: named_parts
Sub-models with names, usually declared in the asset filegamnit :: Model :: named_parts=
Sub-models with names, usually declared in the asset filecore :: Object :: output_class_name
Display class name on stdout (debug only).
# Basic model with a single `mesh` and `material`
#
# Only leaves are actually drawn by the `material`.
class LeafModel
super Model
# Mesh forming this model
var mesh: Mesh
# Material applied on this model
var material: Material
redef var leaves = [self]
end
lib/gamnit/depth/depth_core.nit:128,1--141,3
redef class LeafModel
redef fun dimensions do return mesh.dimensions
redef fun center do return mesh.center
end
lib/gamnit/depth/model_dimensions.nit:61,1--66,3