Struct gdnative::SurfaceTool
[−]
[src]
pub struct SurfaceTool { /* fields omitted */ }
core class SurfaceTool : Reference
(reference counted)
Base class
SurfaceTool inherits Reference and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Methods
impl SurfaceTool
[src]
pub fn as_reference(&self) -> Reference
[src]
Up-cast.
pub fn new() -> Self
[src]
pub fn new_ref(&self) -> Self
[src]
Creates a new reference to the same object.
pub fn begin(&mut self, primitive: i64)
[src]
pub fn add_vertex(&mut self, vertex: Vector3)
[src]
pub fn add_color(&mut self, color: Color)
[src]
pub fn add_normal(&mut self, normal: Vector3)
[src]
pub fn add_tangent(&mut self, tangent: Plane)
[src]
pub fn add_uv(&mut self, uv: Vector2)
[src]
pub fn add_uv2(&mut self, uv2: Vector2)
[src]
pub fn add_bones(&mut self, bones: Int32Array)
[src]
pub fn add_weights(&mut self, weights: Float32Array)
[src]
pub fn add_smooth_group(&mut self, smooth: bool)
[src]
pub fn add_triangle_fan(
&mut self,
vertexes: Vector3Array,
uvs: Vector2Array,
colors: ColorArray,
uv2s: Vector2Array,
normals: Vector3Array,
tangents: VariantArray
)
[src]
&mut self,
vertexes: Vector3Array,
uvs: Vector2Array,
colors: ColorArray,
uv2s: Vector2Array,
normals: Vector3Array,
tangents: VariantArray
)
pub fn add_index(&mut self, index: i64)
[src]
pub fn index(&mut self)
[src]
pub fn deindex(&mut self)
[src]
pub fn generate_normals(&mut self)
[src]
pub fn generate_tangents(&mut self)
[src]
pub fn add_to_format(&mut self, flags: i64)
[src]
pub fn set_material(&mut self, material: Option<Material>)
[src]
pub fn clear(&mut self)
[src]
pub fn create_from(&mut self, existing: Option<Mesh>, surface: i64)
[src]
pub fn append_from(
&mut self,
existing: Option<Mesh>,
surface: i64,
transform: Transform
)
[src]
&mut self,
existing: Option<Mesh>,
surface: i64,
transform: Transform
)
pub fn commit(
&mut self,
existing: Option<ArrayMesh>,
flags: i64
) -> Option<ArrayMesh>
[src]
&mut self,
existing: Option<ArrayMesh>,
flags: i64
) -> Option<ArrayMesh>
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Methods from Deref<Target = Reference>
pub fn as_object(&self) -> Object
[src]
Up-cast.
pub fn init_ref(&mut self) -> bool
[src]
pub fn reference(&mut self) -> bool
[src]
pub fn unreference(&mut self) -> bool
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Trait Implementations
impl GodotObject for SurfaceTool
[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 SurfaceTool
[src]
type Target = Reference
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.