[][src]Struct gdnative::api::SurfaceTool

pub struct SurfaceTool { /* fields omitted */ }

core class SurfaceTool 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

SurfaceTool inherits methods from:

Safety

All types in the Godot API have "interior mutability" in Rust parlance. To enforce that the official thread-safety guidelines are followed, the typestate pattern is used in the Ref and TRef smart pointers, and the Instance API. The typestate Access in these types tracks whether the access is unique, shared, or exclusive to the current thread. For more information, see the type-level documentation on Ref.

Implementations

impl SurfaceTool[src]

pub fn new() -> Ref<SurfaceTool, Unique>[src]

Creates a new instance of this object.

This is a reference-counted type. The returned object is automatically managed by Ref.

pub fn add_bones(&self, bones: TypedArray<i32>)[src]

pub fn add_color(&self, color: Color)[src]

pub fn add_index(&self, index: i64)[src]

pub fn add_normal(&self, normal: Vector3D<f32, UnknownUnit>)[src]

pub fn add_smooth_group(&self, smooth: bool)[src]

pub fn add_tangent(&self, tangent: Plane)[src]

pub fn add_triangle_fan(
    &self,
    vertices: TypedArray<Vector3D<f32, UnknownUnit>>,
    uvs: TypedArray<Vector2D<f32, UnknownUnit>>,
    colors: TypedArray<Color>,
    uv2s: TypedArray<Vector2D<f32, UnknownUnit>>,
    normals: TypedArray<Vector3D<f32, UnknownUnit>>,
    tangents: VariantArray<Shared>
)
[src]

pub fn add_uv(&self, uv: Vector2D<f32, UnknownUnit>)[src]

pub fn add_uv2(&self, uv2: Vector2D<f32, UnknownUnit>)[src]

pub fn add_vertex(&self, vertex: Vector3D<f32, UnknownUnit>)[src]

pub fn add_weights(&self, weights: TypedArray<f32>)[src]

pub fn append_from(
    &self,
    existing: impl AsArg<Mesh>,
    surface: i64,
    transform: Transform
)
[src]

pub fn begin(&self, primitive: i64)[src]

pub fn clear(&self)[src]

pub fn commit(
    &self,
    existing: impl AsArg<ArrayMesh>,
    flags: i64
) -> Option<Ref<ArrayMesh, Shared>>
[src]

pub fn commit_to_arrays(&self) -> VariantArray<Shared>[src]

pub fn create_from(&self, existing: impl AsArg<Mesh>, surface: i64)[src]

pub fn create_from_blend_shape(
    &self,
    existing: impl AsArg<Mesh>,
    surface: i64,
    blend_shape: impl Into<GodotString>
)
[src]

pub fn deindex(&self)[src]

pub fn generate_normals(&self, flip: bool)[src]

pub fn generate_tangents(&self)[src]

pub fn index(&self)[src]

pub fn set_material(&self, material: impl AsArg<Material>)[src]

Methods from Deref<Target = Reference>

pub fn init_ref(&self) -> bool[src]

Trait Implementations

impl Debug for SurfaceTool[src]

impl Deref for SurfaceTool[src]

type Target = Reference

The resulting type after dereferencing.

impl DerefMut for SurfaceTool[src]

impl GodotObject for SurfaceTool[src]

type RefKind = RefCounted

The memory management kind of this type. This modifies the behavior of the Ref smart pointer. See its type-level documentation for more information. Read more

impl Instanciable for SurfaceTool[src]

impl SubClass<Object> for SurfaceTool[src]

impl SubClass<Reference> for SurfaceTool[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SubClass<T> for T where
    T: GodotObject
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.