Trait raylib::core::drawing::RaylibDraw3D[][src]

pub trait RaylibDraw3D {
Show 24 methods fn draw_point3D(
        &mut self,
        position: impl Into<Vector3>,
        color: impl Into<Color>
    ) { ... }
fn draw_triangle3D(
        &mut self,
        v1: impl Into<Vector3>,
        v2: impl Into<Vector3>,
        v3: impl Into<Vector3>,
        color: impl Into<Color>
    ) { ... }
fn draw_triangle_strip3D(
        &mut self,
        points: &[Vector3],
        color: impl Into<Color>
    ) { ... }
fn draw_line_3D(
        &mut self,
        start_pos: impl Into<Vector3>,
        end_pos: impl Into<Vector3>,
        color: impl Into<Color>
    ) { ... }
fn draw_circle_3D(
        &mut self,
        center: impl Into<Vector3>,
        radius: f32,
        rotation_axis: impl Into<Vector3>,
        rotation_angle: f32,
        color: impl Into<Color>
    ) { ... }
fn draw_cube(
        &mut self,
        position: impl Into<Vector3>,
        width: f32,
        height: f32,
        length: f32,
        color: impl Into<Color>
    ) { ... }
fn draw_cube_v(
        &mut self,
        position: impl Into<Vector3>,
        size: impl Into<Vector3>,
        color: impl Into<Color>
    ) { ... }
fn draw_cube_wires(
        &mut self,
        position: impl Into<Vector3>,
        width: f32,
        height: f32,
        length: f32,
        color: impl Into<Color>
    ) { ... }
fn draw_cube_texture(
        &mut self,
        texture: &Texture2D,
        position: impl Into<Vector3>,
        width: f32,
        height: f32,
        length: f32,
        color: impl Into<Color>
    ) { ... }
fn draw_sphere(
        &mut self,
        center_pos: impl Into<Vector3>,
        radius: f32,
        color: impl Into<Color>
    ) { ... }
fn draw_sphere_ex(
        &mut self,
        center_pos: impl Into<Vector3>,
        radius: f32,
        rings: i32,
        slices: i32,
        color: impl Into<Color>
    ) { ... }
fn draw_sphere_wires(
        &mut self,
        center_pos: impl Into<Vector3>,
        radius: f32,
        rings: i32,
        slices: i32,
        color: impl Into<Color>
    ) { ... }
fn draw_cylinder(
        &mut self,
        position: impl Into<Vector3>,
        radius_top: f32,
        radius_bottom: f32,
        height: f32,
        slices: i32,
        color: impl Into<Color>
    ) { ... }
fn draw_cylinder_wires(
        &mut self,
        position: impl Into<Vector3>,
        radius_top: f32,
        radius_bottom: f32,
        height: f32,
        slices: i32,
        color: impl Into<Color>
    ) { ... }
fn draw_plane(
        &mut self,
        center_pos: impl Into<Vector3>,
        size: impl Into<Vector2>,
        color: impl Into<Color>
    ) { ... }
fn draw_ray(&mut self, ray: Ray, color: impl Into<Color>) { ... }
fn draw_grid(&mut self, slices: i32, spacing: f32) { ... }
fn draw_model(
        &mut self,
        model: impl AsRef<Model>,
        position: impl Into<Vector3>,
        scale: f32,
        tint: impl Into<Color>
    ) { ... }
fn draw_model_ex(
        &mut self,
        model: impl AsRef<Model>,
        position: impl Into<Vector3>,
        rotation_axis: impl Into<Vector3>,
        rotation_angle: f32,
        scale: impl Into<Vector3>,
        tint: impl Into<Color>
    ) { ... }
fn draw_model_wires(
        &mut self,
        model: impl AsRef<Model>,
        position: impl Into<Vector3>,
        scale: f32,
        tint: impl Into<Color>
    ) { ... }
fn draw_model_wires_ex(
        &mut self,
        model: impl AsRef<Model>,
        position: impl Into<Vector3>,
        rotation_axis: impl Into<Vector3>,
        rotation_angle: f32,
        scale: impl Into<Vector3>,
        tint: impl Into<Color>
    ) { ... }
fn draw_bounding_box(
        &mut self,
        bbox: impl Into<BoundingBox>,
        color: impl Into<Color>
    ) { ... }
fn draw_billboard(
        &mut self,
        camera: impl Into<Camera3D>,
        texture: &Texture2D,
        center: impl Into<Vector3>,
        size: f32,
        tint: impl Into<Color>
    ) { ... }
fn draw_billboard_rec(
        &mut self,
        camera: Camera3D,
        texture: &Texture2D,
        source_rec: impl Into<Rectangle>,
        center: impl Into<Vector3>,
        size: f32,
        tint: impl Into<Color>
    ) { ... }
}

Provided methods

Draw a point in 3D space, actually a small line

// Draw a triangle strip defined by points

Draws a line in 3D world space.

Draws a circle in 3D world space.

Draws a cube.

Draws a cube (Vector version).

Draws a cube in wireframe.

Draws a textured cube.

Draws a sphere.

Draws a sphere with extended parameters.

Draws a sphere in wireframe.

Draws a cylinder.

Draws a cylinder in wireframe.

Draws an X/Z plane.

Draws a ray line.

Draws a grid (centered at (0, 0, 0)).

Draws a model (with texture if set).

Draws a model with extended parameters.

Draws a model with wires (with texture if set).

Draws a model with wires.

Draws a bounding box (wires).

Draws a billboard texture.

Draws a billboard texture defined by source_rec.

Implementors