[−][src]Struct gdnative::MeshDataTool
core class MeshDataTool
inherits Reference
(reference counted).
Official documentation
See the documentation of this class in the Godot engine's official documentation.
Memory management
The lifetime of this object is automatically managed through reference counting.
Class hierarchy
MeshDataTool inherits methods from:
Methods
impl MeshDataTool
[src]
pub fn new() -> MeshDataTool
[src]
pub fn new_ref(&self) -> MeshDataTool
[src]
Creates a new reference to the same reference-counted object.
pub fn clear(&mut self)
[src]
pub fn commit_to_surface(
&mut self,
mesh: Option<ArrayMesh>
) -> Result<(), GodotError>
[src]
&mut self,
mesh: Option<ArrayMesh>
) -> Result<(), GodotError>
pub fn create_from_surface(
&mut self,
mesh: Option<ArrayMesh>,
surface: i64
) -> Result<(), GodotError>
[src]
&mut self,
mesh: Option<ArrayMesh>,
surface: i64
) -> Result<(), GodotError>
pub fn get_edge_count(&self) -> i64
[src]
pub fn get_edge_faces(&self, idx: i64) -> Int32Array
[src]
pub fn get_edge_meta(&self, idx: i64) -> Variant
[src]
pub fn get_edge_vertex(&self, idx: i64, vertex: i64) -> i64
[src]
pub fn get_face_count(&self) -> i64
[src]
pub fn get_face_edge(&self, idx: i64, edge: i64) -> i64
[src]
pub fn get_face_meta(&self, idx: i64) -> Variant
[src]
pub fn get_face_normal(&self, idx: i64) -> Vector3D<f32, UnknownUnit>
[src]
pub fn get_face_vertex(&self, idx: i64, vertex: i64) -> i64
[src]
pub fn get_format(&self) -> i64
[src]
pub fn get_material(&self) -> Option<Material>
[src]
pub fn get_vertex(&self, idx: i64) -> Vector3D<f32, UnknownUnit>
[src]
pub fn get_vertex_bones(&self, idx: i64) -> Int32Array
[src]
pub fn get_vertex_color(&self, idx: i64) -> Color
[src]
pub fn get_vertex_count(&self) -> i64
[src]
pub fn get_vertex_edges(&self, idx: i64) -> Int32Array
[src]
pub fn get_vertex_faces(&self, idx: i64) -> Int32Array
[src]
pub fn get_vertex_meta(&self, idx: i64) -> Variant
[src]
pub fn get_vertex_normal(&self, idx: i64) -> Vector3D<f32, UnknownUnit>
[src]
pub fn get_vertex_tangent(&self, idx: i64) -> Plane
[src]
pub fn get_vertex_uv(&self, idx: i64) -> Vector2D<f32, UnknownUnit>
[src]
pub fn get_vertex_uv2(&self, idx: i64) -> Vector2D<f32, UnknownUnit>
[src]
pub fn get_vertex_weights(&self, idx: i64) -> Float32Array
[src]
pub fn set_edge_meta(&mut self, idx: i64, meta: Variant)
[src]
pub fn set_face_meta(&mut self, idx: i64, meta: Variant)
[src]
pub fn set_material(&mut self, material: Option<Material>)
[src]
pub fn set_vertex(&mut self, idx: i64, vertex: Vector3D<f32, UnknownUnit>)
[src]
pub fn set_vertex_bones(&mut self, idx: i64, bones: Int32Array)
[src]
pub fn set_vertex_color(&mut self, idx: i64, color: Color)
[src]
pub fn set_vertex_meta(&mut self, idx: i64, meta: Variant)
[src]
pub fn set_vertex_normal(
&mut self,
idx: i64,
normal: Vector3D<f32, UnknownUnit>
)
[src]
&mut self,
idx: i64,
normal: Vector3D<f32, UnknownUnit>
)
pub fn set_vertex_tangent(&mut self, idx: i64, tangent: Plane)
[src]
pub fn set_vertex_uv(&mut self, idx: i64, uv: Vector2D<f32, UnknownUnit>)
[src]
pub fn set_vertex_uv2(&mut self, idx: i64, uv2: Vector2D<f32, UnknownUnit>)
[src]
pub fn set_vertex_weights(&mut self, idx: i64, weights: Float32Array)
[src]
pub fn init_ref(&mut self) -> bool
[src]
Inherited from Reference.
pub fn to_reference(&self) -> Reference
[src]
Up-cast.
pub fn to_object(&self) -> Object
[src]
Up-cast.
pub fn cast<T>(&self) -> Option<T> where
T: GodotObject,
[src]
T: GodotObject,
Generic dynamic cast.
Methods from Deref<Target = Reference>
pub fn new_ref(&self) -> Reference
[src]
Creates a new reference to the same reference-counted object.
pub fn init_ref(&mut self) -> bool
[src]
pub fn to_object(&self) -> Object
[src]
Up-cast.
pub fn cast<T>(&self) -> Option<T> where
T: GodotObject,
[src]
T: GodotObject,
Generic dynamic cast.
Trait Implementations
impl Clone for MeshDataTool
[src]
fn clone(&self) -> MeshDataTool
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for MeshDataTool
[src]
impl Deref for MeshDataTool
[src]
impl DerefMut for MeshDataTool
[src]
impl Drop for MeshDataTool
[src]
impl FromVariant for MeshDataTool
[src]
fn from_variant(variant: &Variant) -> Result<MeshDataTool, FromVariantError>
[src]
impl GodotObject for MeshDataTool
[src]
fn class_name() -> &'static str
[src]
unsafe fn from_sys(obj: *mut c_void) -> MeshDataTool
[src]
unsafe fn from_return_position_sys(obj: *mut c_void) -> MeshDataTool
[src]
unsafe fn to_sys(&self) -> *mut c_void
[src]
impl Instanciable for MeshDataTool
[src]
fn construct() -> MeshDataTool
[src]
impl ToVariant for MeshDataTool
[src]
fn to_variant(&self) -> Variant
[src]
Auto Trait Implementations
impl RefUnwindSafe for MeshDataTool
impl !Send for MeshDataTool
impl !Sync for MeshDataTool
impl Unpin for MeshDataTool
impl UnwindSafe for MeshDataTool
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Export for T where
T: GodotObject + ToVariant,
[src]
T: GodotObject + ToVariant,
type Hint = ()
A type-specific hint type that is valid for the type being exported.
fn export_info(_hint: Option<<T as Export>::Hint>) -> ExportInfo
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,