Struct gdnative::PrimitiveMesh
[−]
[src]
pub struct PrimitiveMesh { /* fields omitted */ }
core class PrimitiveMesh : Mesh
(reference counted)
Base class
PrimitiveMesh inherits Mesh and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Methods
impl PrimitiveMesh
[src]
pub fn as_mesh(&self) -> Mesh
[src]
Up-cast.
pub fn _update(&self)
[src]
pub fn set_material(&mut self, material: Option<Material>)
[src]
pub fn get_material(&self) -> Option<Material>
[src]
pub fn get_mesh_arrays(&self) -> VariantArray
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Methods from Deref<Target = Mesh>
pub fn as_resource(&self) -> Resource
[src]
Up-cast.
pub fn set_lightmap_size_hint(&mut self, size: Vector2)
[src]
pub fn get_lightmap_size_hint(&self) -> Vector2
[src]
pub fn create_trimesh_shape(&self) -> Option<Shape>
[src]
pub fn create_convex_shape(&self) -> Option<Shape>
[src]
pub fn create_outline(&self, margin: f64) -> Option<Mesh>
[src]
pub fn get_faces(&self) -> Vector3Array
[src]
pub fn generate_triangle_mesh(&self) -> Option<TriangleMesh>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Trait Implementations
impl GodotObject for PrimitiveMesh
[src]
fn class_name() -> &'static str
[src]
unsafe fn from_sys(obj: *mut godot_object) -> Self
[src]
unsafe fn to_sys(&self) -> *mut godot_object
[src]
impl Deref for PrimitiveMesh
[src]
type Target = Mesh
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.