52 lines
70 KiB
HTML
52 lines
70 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `RaylibDraw3D` trait in crate `raylib`."><meta name="keywords" content="rust, rustlang, rust-lang, RaylibDraw3D"><title>RaylibDraw3D in raylib::core::drawing - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><script defer src="../../../main.js"></script>
|
||
<noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a class="sidebar-logo" href="../../../raylib/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.png" alt="logo"></div>
|
||
</a><h2 class="location">Trait RaylibDraw3D</h2><div class="sidebar-elems"><div class="block items"><h3 class="sidebar-title"><a href="#provided-methods">Provided Methods</a></h3><div class="sidebar-links"><a href="#method.draw_billboard">draw_billboard</a><a href="#method.draw_billboard_rec">draw_billboard_rec</a><a href="#method.draw_bounding_box">draw_bounding_box</a><a href="#method.draw_circle_3D">draw_circle_3D</a><a href="#method.draw_cube">draw_cube</a><a href="#method.draw_cube_texture">draw_cube_texture</a><a href="#method.draw_cube_v">draw_cube_v</a><a href="#method.draw_cube_wires">draw_cube_wires</a><a href="#method.draw_cylinder">draw_cylinder</a><a href="#method.draw_cylinder_wires">draw_cylinder_wires</a><a href="#method.draw_grid">draw_grid</a><a href="#method.draw_line_3D">draw_line_3D</a><a href="#method.draw_model">draw_model</a><a href="#method.draw_model_ex">draw_model_ex</a><a href="#method.draw_model_wires">draw_model_wires</a><a href="#method.draw_model_wires_ex">draw_model_wires_ex</a><a href="#method.draw_plane">draw_plane</a><a href="#method.draw_point3D">draw_point3D</a><a href="#method.draw_ray">draw_ray</a><a href="#method.draw_sphere">draw_sphere</a><a href="#method.draw_sphere_ex">draw_sphere_ex</a><a href="#method.draw_sphere_wires">draw_sphere_wires</a><a href="#method.draw_triangle3D">draw_triangle3D</a><a href="#method.draw_triangle_strip3D">draw_triangle_strip3D</a></div><h3 class="sidebar-title"><a href="#implementors">Implementors</a></h3></div><h2 class="location">Other items in<br><a href="../../index.html">raylib</a>::<wbr><a href="../index.html">core</a>::<wbr><a href="index.html">drawing</a></h2><div id="sidebar-vars" data-name="RaylibDraw3D" data-ty="trait" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../raylib/index.html"><img class="rust-logo" src="../../../rust-logo.png" alt="logo"></a><nav class="sub"><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><h1 class="fqn"><span class="in-band">Trait <a href="../../index.html">raylib</a>::<wbr><a href="../index.html">core</a>::<wbr><a href="index.html">drawing</a>::<wbr><a class="trait" href="#">RaylibDraw3D</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/raylib/core/drawing.rs.html#1157-1534" title="goto source code">[src]</a></span></h1><div class="docblock item-decl"><pre class="rust trait"><code>pub trait RaylibDraw3D {
|
||
<details class="rustdoc-toggle type-contents-toggle"><summary class="hideme"><span>Show 24 methods</span></summary> fn <a href="#method.draw_point3D" class="fnname">draw_point3D</a>(<br> &mut self, <br> position: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br> ) { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.draw_triangle3D" class="fnname">draw_triangle3D</a>(<br> &mut self, <br> v1: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> v2: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> v3: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br> ) { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.draw_triangle_strip3D" class="fnname">draw_triangle_strip3D</a>(<br> &mut self, <br> points: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.slice.html">&[</a><a class="struct" href="../math/struct.Vector3.html" title="struct raylib::core::math::Vector3">Vector3</a><a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.slice.html">]</a>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br> ) { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.draw_line_3D" class="fnname">draw_line_3D</a>(<br> &mut self, <br> start_pos: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> end_pos: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br> ) { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.draw_circle_3D" class="fnname">draw_circle_3D</a>(<br> &mut self, <br> center: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> radius: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> rotation_axis: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> rotation_angle: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br> ) { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.draw_cube" class="fnname">draw_cube</a>(<br> &mut self, <br> position: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> width: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> height: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> length: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br> ) { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.draw_cube_v" class="fnname">draw_cube_v</a>(<br> &mut self, <br> position: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> size: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br> ) { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.draw_cube_wires" class="fnname">draw_cube_wires</a>(<br> &mut self, <br> position: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> width: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> height: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> length: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br> ) { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.draw_cube_texture" class="fnname">draw_cube_texture</a>(<br> &mut self, <br> texture: &<a class="struct" href="../texture/struct.Texture2D.html" title="struct raylib::core::texture::Texture2D">Texture2D</a>, <br> position: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> width: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> height: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> length: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br> ) { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.draw_sphere" class="fnname">draw_sphere</a>(<br> &mut self, <br> center_pos: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> radius: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br> ) { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.draw_sphere_ex" class="fnname">draw_sphere_ex</a>(<br> &mut self, <br> center_pos: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> radius: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> rings: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i32.html">i32</a>, <br> slices: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i32.html">i32</a>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br> ) { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.draw_sphere_wires" class="fnname">draw_sphere_wires</a>(<br> &mut self, <br> center_pos: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> radius: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> rings: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i32.html">i32</a>, <br> slices: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i32.html">i32</a>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br> ) { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.draw_cylinder" class="fnname">draw_cylinder</a>(<br> &mut self, <br> position: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> radius_top: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> radius_bottom: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> height: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> slices: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i32.html">i32</a>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br> ) { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.draw_cylinder_wires" class="fnname">draw_cylinder_wires</a>(<br> &mut self, <br> position: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> radius_top: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> radius_bottom: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> height: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> slices: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i32.html">i32</a>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br> ) { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.draw_plane" class="fnname">draw_plane</a>(<br> &mut self, <br> center_pos: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> size: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector2.html" title="struct raylib::ffi::Vector2">Vector2</a>>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br> ) { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.draw_ray" class="fnname">draw_ray</a>(&mut self, ray: <a class="struct" href="../math/struct.Ray.html" title="struct raylib::core::math::Ray">Ray</a>, color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>>) { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.draw_grid" class="fnname">draw_grid</a>(&mut self, slices: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i32.html">i32</a>, spacing: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>) { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.draw_model" class="fnname">draw_model</a>(<br> &mut self, <br> model: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="../../ffi/struct.Model.html" title="struct raylib::ffi::Model">Model</a>>, <br> position: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> scale: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> tint: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br> ) { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.draw_model_ex" class="fnname">draw_model_ex</a>(<br> &mut self, <br> model: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="../../ffi/struct.Model.html" title="struct raylib::ffi::Model">Model</a>>, <br> position: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> rotation_axis: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> rotation_angle: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> scale: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> tint: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br> ) { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.draw_model_wires" class="fnname">draw_model_wires</a>(<br> &mut self, <br> model: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="../../ffi/struct.Model.html" title="struct raylib::ffi::Model">Model</a>>, <br> position: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> scale: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> tint: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br> ) { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.draw_model_wires_ex" class="fnname">draw_model_wires_ex</a>(<br> &mut self, <br> model: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="../../ffi/struct.Model.html" title="struct raylib::ffi::Model">Model</a>>, <br> position: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> rotation_axis: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> rotation_angle: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> scale: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> tint: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br> ) { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.draw_bounding_box" class="fnname">draw_bounding_box</a>(<br> &mut self, <br> bbox: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.BoundingBox.html" title="struct raylib::ffi::BoundingBox">BoundingBox</a>>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br> ) { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.draw_billboard" class="fnname">draw_billboard</a>(<br> &mut self, <br> camera: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Camera3D.html" title="struct raylib::ffi::Camera3D">Camera3D</a>>, <br> texture: &<a class="struct" href="../texture/struct.Texture2D.html" title="struct raylib::core::texture::Texture2D">Texture2D</a>, <br> center: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> size: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> tint: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br> ) { ... }
|
||
<div class="item-spacer"></div> fn <a href="#method.draw_billboard_rec" class="fnname">draw_billboard_rec</a>(<br> &mut self, <br> camera: <a class="struct" href="../camera/struct.Camera3D.html" title="struct raylib::core::camera::Camera3D">Camera3D</a>, <br> texture: &<a class="struct" href="../texture/struct.Texture2D.html" title="struct raylib::core::texture::Texture2D">Texture2D</a>, <br> source_rec: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Rectangle.html" title="struct raylib::ffi::Rectangle">Rectangle</a>>, <br> center: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> size: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> tint: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br> ) { ... }
|
||
</details>}</code></pre></div><h2 id="provided-methods" class="small-section-header">Provided methods<a href="#provided-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="method.draw_point3D" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/raylib/core/drawing.rs.html#1161-1165" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#method.draw_point3D" class="fnname">draw_point3D</a>(<br> &mut self, <br> position: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br>)</h4></div></summary><div class="docblock"><p>Draw a point in 3D space, actually a small line</p>
|
||
</div></details><div id="method.draw_triangle3D" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/raylib/core/drawing.rs.html#1170-1180" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#method.draw_triangle3D" class="fnname">draw_triangle3D</a>(<br> &mut self, <br> v1: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> v2: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> v3: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br>)</h4></div><details class="rustdoc-toggle" open><summary><div id="method.draw_triangle_strip3D" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/raylib/core/drawing.rs.html#1185-1189" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#method.draw_triangle_strip3D" class="fnname">draw_triangle_strip3D</a>(&mut self, points: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.slice.html">&[</a><a class="struct" href="../math/struct.Vector3.html" title="struct raylib::core::math::Vector3">Vector3</a><a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.slice.html">]</a>, color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>>)</h4></div></summary><div class="docblock"><p>// Draw a triangle strip defined by points</p>
|
||
</div></details><details class="rustdoc-toggle" open><summary><div id="method.draw_line_3D" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/raylib/core/drawing.rs.html#1194-1203" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#method.draw_line_3D" class="fnname">draw_line_3D</a>(<br> &mut self, <br> start_pos: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> end_pos: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br>)</h4></div></summary><div class="docblock"><p>Draws a line in 3D world space.</p>
|
||
</div></details><details class="rustdoc-toggle" open><summary><div id="method.draw_circle_3D" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/raylib/core/drawing.rs.html#1208-1225" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#method.draw_circle_3D" class="fnname">draw_circle_3D</a>(<br> &mut self, <br> center: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> radius: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> rotation_axis: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> rotation_angle: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br>)</h4></div></summary><div class="docblock"><p>Draws a circle in 3D world space.</p>
|
||
</div></details><details class="rustdoc-toggle" open><summary><div id="method.draw_cube" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/raylib/core/drawing.rs.html#1229-1240" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#method.draw_cube" class="fnname">draw_cube</a>(<br> &mut self, <br> position: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> width: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> height: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> length: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br>)</h4></div></summary><div class="docblock"><p>Draws a cube.</p>
|
||
</div></details><details class="rustdoc-toggle" open><summary><div id="method.draw_cube_v" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/raylib/core/drawing.rs.html#1244-1253" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#method.draw_cube_v" class="fnname">draw_cube_v</a>(<br> &mut self, <br> position: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> size: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br>)</h4></div></summary><div class="docblock"><p>Draws a cube (Vector version).</p>
|
||
</div></details><details class="rustdoc-toggle" open><summary><div id="method.draw_cube_wires" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/raylib/core/drawing.rs.html#1257-1268" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#method.draw_cube_wires" class="fnname">draw_cube_wires</a>(<br> &mut self, <br> position: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> width: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> height: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> length: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br>)</h4></div></summary><div class="docblock"><p>Draws a cube in wireframe.</p>
|
||
</div></details><details class="rustdoc-toggle" open><summary><div id="method.draw_cube_texture" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/raylib/core/drawing.rs.html#1272-1291" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#method.draw_cube_texture" class="fnname">draw_cube_texture</a>(<br> &mut self, <br> texture: &<a class="struct" href="../texture/struct.Texture2D.html" title="struct raylib::core::texture::Texture2D">Texture2D</a>, <br> position: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> width: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> height: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> length: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br>)</h4></div></summary><div class="docblock"><p>Draws a textured cube.</p>
|
||
</div></details><details class="rustdoc-toggle" open><summary><div id="method.draw_sphere" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/raylib/core/drawing.rs.html#1295-1304" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#method.draw_sphere" class="fnname">draw_sphere</a>(<br> &mut self, <br> center_pos: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> radius: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br>)</h4></div></summary><div class="docblock"><p>Draws a sphere.</p>
|
||
</div></details><details class="rustdoc-toggle" open><summary><div id="method.draw_sphere_ex" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/raylib/core/drawing.rs.html#1308-1319" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#method.draw_sphere_ex" class="fnname">draw_sphere_ex</a>(<br> &mut self, <br> center_pos: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> radius: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> rings: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i32.html">i32</a>, <br> slices: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i32.html">i32</a>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br>)</h4></div></summary><div class="docblock"><p>Draws a sphere with extended parameters.</p>
|
||
</div></details><details class="rustdoc-toggle" open><summary><div id="method.draw_sphere_wires" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/raylib/core/drawing.rs.html#1323-1334" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#method.draw_sphere_wires" class="fnname">draw_sphere_wires</a>(<br> &mut self, <br> center_pos: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> radius: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> rings: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i32.html">i32</a>, <br> slices: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i32.html">i32</a>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br>)</h4></div></summary><div class="docblock"><p>Draws a sphere in wireframe.</p>
|
||
</div></details><details class="rustdoc-toggle" open><summary><div id="method.draw_cylinder" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/raylib/core/drawing.rs.html#1338-1357" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#method.draw_cylinder" class="fnname">draw_cylinder</a>(<br> &mut self, <br> position: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> radius_top: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> radius_bottom: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> height: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> slices: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i32.html">i32</a>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br>)</h4></div></summary><div class="docblock"><p>Draws a cylinder.</p>
|
||
</div></details><details class="rustdoc-toggle" open><summary><div id="method.draw_cylinder_wires" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/raylib/core/drawing.rs.html#1361-1380" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#method.draw_cylinder_wires" class="fnname">draw_cylinder_wires</a>(<br> &mut self, <br> position: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> radius_top: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> radius_bottom: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> height: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> slices: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i32.html">i32</a>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br>)</h4></div></summary><div class="docblock"><p>Draws a cylinder in wireframe.</p>
|
||
</div></details><details class="rustdoc-toggle" open><summary><div id="method.draw_plane" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/raylib/core/drawing.rs.html#1384-1393" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#method.draw_plane" class="fnname">draw_plane</a>(<br> &mut self, <br> center_pos: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> size: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector2.html" title="struct raylib::ffi::Vector2">Vector2</a>>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br>)</h4></div></summary><div class="docblock"><p>Draws an X/Z plane.</p>
|
||
</div></details><details class="rustdoc-toggle" open><summary><div id="method.draw_ray" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/raylib/core/drawing.rs.html#1397-1401" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#method.draw_ray" class="fnname">draw_ray</a>(&mut self, ray: <a class="struct" href="../math/struct.Ray.html" title="struct raylib::core::math::Ray">Ray</a>, color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>>)</h4></div></summary><div class="docblock"><p>Draws a ray line.</p>
|
||
</div></details><details class="rustdoc-toggle" open><summary><div id="method.draw_grid" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/raylib/core/drawing.rs.html#1405-1409" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#method.draw_grid" class="fnname">draw_grid</a>(&mut self, slices: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i32.html">i32</a>, spacing: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>)</h4></div></summary><div class="docblock"><p>Draws a grid (centered at (0, 0, 0)).</p>
|
||
</div></details><details class="rustdoc-toggle" open><summary><div id="method.draw_model" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/raylib/core/drawing.rs.html#1413-1423" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#method.draw_model" class="fnname">draw_model</a>(<br> &mut self, <br> model: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="../../ffi/struct.Model.html" title="struct raylib::ffi::Model">Model</a>>, <br> position: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> scale: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> tint: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br>)</h4></div></summary><div class="docblock"><p>Draws a model (with texture if set).</p>
|
||
</div></details><details class="rustdoc-toggle" open><summary><div id="method.draw_model_ex" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/raylib/core/drawing.rs.html#1427-1446" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#method.draw_model_ex" class="fnname">draw_model_ex</a>(<br> &mut self, <br> model: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="../../ffi/struct.Model.html" title="struct raylib::ffi::Model">Model</a>>, <br> position: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> rotation_axis: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> rotation_angle: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> scale: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> tint: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br>)</h4></div></summary><div class="docblock"><p>Draws a model with extended parameters.</p>
|
||
</div></details><details class="rustdoc-toggle" open><summary><div id="method.draw_model_wires" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/raylib/core/drawing.rs.html#1450-1460" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#method.draw_model_wires" class="fnname">draw_model_wires</a>(<br> &mut self, <br> model: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="../../ffi/struct.Model.html" title="struct raylib::ffi::Model">Model</a>>, <br> position: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> scale: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> tint: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br>)</h4></div></summary><div class="docblock"><p>Draws a model with wires (with texture if set).</p>
|
||
</div></details><details class="rustdoc-toggle" open><summary><div id="method.draw_model_wires_ex" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/raylib/core/drawing.rs.html#1464-1483" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#method.draw_model_wires_ex" class="fnname">draw_model_wires_ex</a>(<br> &mut self, <br> model: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="../../ffi/struct.Model.html" title="struct raylib::ffi::Model">Model</a>>, <br> position: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> rotation_axis: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> rotation_angle: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> scale: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> tint: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br>)</h4></div></summary><div class="docblock"><p>Draws a model with wires.</p>
|
||
</div></details><details class="rustdoc-toggle" open><summary><div id="method.draw_bounding_box" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/raylib/core/drawing.rs.html#1487-1495" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#method.draw_bounding_box" class="fnname">draw_bounding_box</a>(<br> &mut self, <br> bbox: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.BoundingBox.html" title="struct raylib::ffi::BoundingBox">BoundingBox</a>>, <br> color: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br>)</h4></div></summary><div class="docblock"><p>Draws a bounding box (wires).</p>
|
||
</div></details><details class="rustdoc-toggle" open><summary><div id="method.draw_billboard" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/raylib/core/drawing.rs.html#1499-1510" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#method.draw_billboard" class="fnname">draw_billboard</a>(<br> &mut self, <br> camera: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Camera3D.html" title="struct raylib::ffi::Camera3D">Camera3D</a>>, <br> texture: &<a class="struct" href="../texture/struct.Texture2D.html" title="struct raylib::core::texture::Texture2D">Texture2D</a>, <br> center: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> size: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> tint: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br>)</h4></div></summary><div class="docblock"><p>Draws a billboard texture.</p>
|
||
</div></details><details class="rustdoc-toggle" open><summary><div id="method.draw_billboard_rec" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/raylib/core/drawing.rs.html#1514-1533" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#method.draw_billboard_rec" class="fnname">draw_billboard_rec</a>(<br> &mut self, <br> camera: <a class="struct" href="../camera/struct.Camera3D.html" title="struct raylib::core::camera::Camera3D">Camera3D</a>, <br> texture: &<a class="struct" href="../texture/struct.Texture2D.html" title="struct raylib::core::texture::Texture2D">Texture2D</a>, <br> source_rec: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Rectangle.html" title="struct raylib::ffi::Rectangle">Rectangle</a>>, <br> center: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Vector3.html" title="struct raylib::ffi::Vector3">Vector3</a>>, <br> size: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <br> tint: impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ffi/struct.Color.html" title="struct raylib::ffi::Color">Color</a>><br>)</h4></div></summary><div class="docblock"><p>Draws a billboard texture defined by <code>source_rec</code>.</p>
|
||
</div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><div id="impl-RaylibDraw3D" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/raylib/core/drawing.rs.html#242" title="goto source code">[src]</a></div><a href="#impl-RaylibDraw3D" class="anchor"></a><h3 class="code-header in-band">impl<'a, T> <a class="trait" href="trait.RaylibDraw3D.html" title="trait raylib::core::drawing::RaylibDraw3D">RaylibDraw3D</a> for <a class="struct" href="struct.RaylibBlendMode.html" title="struct raylib::core::drawing::RaylibBlendMode">RaylibBlendMode</a><'a, T></h3></div><div id="impl-RaylibDraw3D-1" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/raylib/core/drawing.rs.html#180" title="goto source code">[src]</a></div><a href="#impl-RaylibDraw3D-1" class="anchor"></a><h3 class="code-header in-band">impl<'a, T> <a class="trait" href="trait.RaylibDraw3D.html" title="trait raylib::core::drawing::RaylibDraw3D">RaylibDraw3D</a> for <a class="struct" href="struct.RaylibMode3D.html" title="struct raylib::core::drawing::RaylibMode3D">RaylibMode3D</a><'a, T></h3></div><div id="impl-RaylibDraw3D-2" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/raylib/core/drawing.rs.html#211" title="goto source code">[src]</a></div><a href="#impl-RaylibDraw3D-2" class="anchor"></a><h3 class="code-header in-band">impl<'a, T> <a class="trait" href="trait.RaylibDraw3D.html" title="trait raylib::core::drawing::RaylibDraw3D">RaylibDraw3D</a> for <a class="struct" href="struct.RaylibShaderMode.html" title="struct raylib::core::drawing::RaylibShaderMode">RaylibShaderMode</a><'a, T></h3></div><div id="impl-RaylibDraw3D-3" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/raylib/core/drawing.rs.html#279" title="goto source code">[src]</a></div><a href="#impl-RaylibDraw3D-3" class="anchor"></a><h3 class="code-header in-band">impl<'a, T: <a class="trait" href="trait.RaylibDraw3D.html" title="trait raylib::core::drawing::RaylibDraw3D">RaylibDraw3D</a>> <a class="trait" href="trait.RaylibDraw3D.html" title="trait raylib::core::drawing::RaylibDraw3D">RaylibDraw3D</a> for <a class="struct" href="struct.RaylibScissorMode.html" title="struct raylib::core::drawing::RaylibScissorMode">RaylibScissorMode</a><'a, T></h3></div></div><script type="text/javascript" src="../../../implementors/raylib/core/drawing/trait.RaylibDraw3D.js" async></script></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="raylib" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.59.0 (9d1b2106e 2022-02-23)" ></div>
|
||
</body></html> |