[−][src]Struct raylib::core::drawing::RaylibBlendMode
Trait Implementations
impl<'a, T> Deref for RaylibBlendMode<'a, T>[src]
impl<'a, T> Drop for RaylibBlendMode<'a, T>[src]
impl<'a, T> RaylibDraw for RaylibBlendMode<'a, T>[src]
fn clear_background(&mut self, color: impl Into<Color>)[src]
fn set_shapes_texture(
&mut self,
texture: impl AsRef<Texture2D>,
source: impl Into<Rectangle>
)[src]
&mut self,
texture: impl AsRef<Texture2D>,
source: impl Into<Rectangle>
)
fn draw_gui<G: GuiDraw>(&mut self, widget: G) -> DrawResult[src]
fn draw_icon(
&mut self,
icon_id: rIconDescription,
position: impl Into<Vector2>,
pixel_size: i32,
color: impl Into<Color>
)[src]
&mut self,
icon_id: rIconDescription,
position: impl Into<Vector2>,
pixel_size: i32,
color: impl Into<Color>
)
fn draw_pixel(&mut self, x: i32, y: i32, color: impl Into<Color>)[src]
fn draw_pixel_v(
&mut self,
position: impl Into<Vector2>,
color: impl Into<Color>
)[src]
&mut self,
position: impl Into<Vector2>,
color: impl Into<Color>
)
fn draw_line(
&mut self,
start_pos_x: i32,
start_pos_y: i32,
end_pos_x: i32,
end_pos_y: i32,
color: impl Into<Color>
)[src]
&mut self,
start_pos_x: i32,
start_pos_y: i32,
end_pos_x: i32,
end_pos_y: i32,
color: impl Into<Color>
)
fn draw_line_v(
&mut self,
start_pos: impl Into<Vector2>,
end_pos: impl Into<Vector2>,
color: impl Into<Color>
)[src]
&mut self,
start_pos: impl Into<Vector2>,
end_pos: impl Into<Vector2>,
color: impl Into<Color>
)
fn draw_line_ex(
&mut self,
start_pos: impl Into<Vector2>,
end_pos: impl Into<Vector2>,
thick: f32,
color: impl Into<Color>
)[src]
&mut self,
start_pos: impl Into<Vector2>,
end_pos: impl Into<Vector2>,
thick: f32,
color: impl Into<Color>
)
fn draw_line_bezier(
&mut self,
start_pos: impl Into<Vector2>,
end_pos: impl Into<Vector2>,
thick: f32,
color: impl Into<Color>
)[src]
&mut self,
start_pos: impl Into<Vector2>,
end_pos: impl Into<Vector2>,
thick: f32,
color: impl Into<Color>
)
fn draw_line_strip(&mut self, points: &[Vector2], color: impl Into<Color>)[src]
fn draw_circle(
&mut self,
center_x: i32,
center_y: i32,
radius: f32,
color: impl Into<Color>
)[src]
&mut self,
center_x: i32,
center_y: i32,
radius: f32,
color: impl Into<Color>
)
fn draw_circle_sector(
&mut self,
center: impl Into<Vector2>,
radius: f32,
start_angle: i32,
end_angle: i32,
segments: i32,
color: impl Into<Color>
)[src]
&mut self,
center: impl Into<Vector2>,
radius: f32,
start_angle: i32,
end_angle: i32,
segments: i32,
color: impl Into<Color>
)
fn draw_circle_sector_lines(
&mut self,
center: impl Into<Vector2>,
radius: f32,
start_angle: i32,
end_angle: i32,
segments: i32,
color: impl Into<Color>
)[src]
&mut self,
center: impl Into<Vector2>,
radius: f32,
start_angle: i32,
end_angle: i32,
segments: i32,
color: impl Into<Color>
)
fn draw_circle_gradient(
&mut self,
center_x: i32,
center_y: i32,
radius: f32,
color1: impl Into<Color>,
color2: impl Into<Color>
)[src]
&mut self,
center_x: i32,
center_y: i32,
radius: f32,
color1: impl Into<Color>,
color2: impl Into<Color>
)
fn draw_circle_v(
&mut self,
center: impl Into<Vector2>,
radius: f32,
color: impl Into<Color>
)[src]
&mut self,
center: impl Into<Vector2>,
radius: f32,
color: impl Into<Color>
)
fn draw_circle_lines(
&mut self,
center_x: i32,
center_y: i32,
radius: f32,
color: impl Into<Color>
)[src]
&mut self,
center_x: i32,
center_y: i32,
radius: f32,
color: impl Into<Color>
)
fn draw_ring(
&mut self,
center: impl Into<Vector2>,
inner_radius: f32,
outer_radius: f32,
start_angle: i32,
end_angle: i32,
segments: i32,
color: impl Into<Color>
)[src]
&mut self,
center: impl Into<Vector2>,
inner_radius: f32,
outer_radius: f32,
start_angle: i32,
end_angle: i32,
segments: i32,
color: impl Into<Color>
)
fn draw_ring_lines(
&mut self,
center: impl Into<Vector2>,
inner_radius: f32,
outer_radius: f32,
start_angle: i32,
end_angle: i32,
segments: i32,
color: impl Into<Color>
)[src]
&mut self,
center: impl Into<Vector2>,
inner_radius: f32,
outer_radius: f32,
start_angle: i32,
end_angle: i32,
segments: i32,
color: impl Into<Color>
)
fn draw_rectangle(
&mut self,
x: i32,
y: i32,
width: i32,
height: i32,
color: impl Into<Color>
)[src]
&mut self,
x: i32,
y: i32,
width: i32,
height: i32,
color: impl Into<Color>
)
fn draw_rectangle_v(
&mut self,
position: impl Into<Vector2>,
size: impl Into<Vector2>,
color: impl Into<Color>
)[src]
&mut self,
position: impl Into<Vector2>,
size: impl Into<Vector2>,
color: impl Into<Color>
)
fn draw_rectangle_rec(
&mut self,
rec: impl Into<Rectangle>,
color: impl Into<Color>
)[src]
&mut self,
rec: impl Into<Rectangle>,
color: impl Into<Color>
)
fn draw_rectangle_pro(
&mut self,
rec: impl Into<Rectangle>,
origin: impl Into<Vector2>,
rotation: f32,
color: impl Into<Color>
)[src]
&mut self,
rec: impl Into<Rectangle>,
origin: impl Into<Vector2>,
rotation: f32,
color: impl Into<Color>
)
fn draw_rectangle_gradient_v(
&mut self,
x: i32,
y: i32,
width: i32,
height: i32,
color1: impl Into<Color>,
color2: impl Into<Color>
)[src]
&mut self,
x: i32,
y: i32,
width: i32,
height: i32,
color1: impl Into<Color>,
color2: impl Into<Color>
)
fn draw_rectangle_gradient_h(
&mut self,
x: i32,
y: i32,
width: i32,
height: i32,
color1: impl Into<Color>,
color2: impl Into<Color>
)[src]
&mut self,
x: i32,
y: i32,
width: i32,
height: i32,
color1: impl Into<Color>,
color2: impl Into<Color>
)
fn draw_rectangle_gradient_ex(
&mut self,
rec: impl Into<Rectangle>,
col1: impl Into<Color>,
col2: impl Into<Color>,
col3: impl Into<Color>,
col4: impl Into<Color>
)[src]
&mut self,
rec: impl Into<Rectangle>,
col1: impl Into<Color>,
col2: impl Into<Color>,
col3: impl Into<Color>,
col4: impl Into<Color>
)
fn draw_rectangle_lines(
&mut self,
x: i32,
y: i32,
width: i32,
height: i32,
color: impl Into<Color>
)[src]
&mut self,
x: i32,
y: i32,
width: i32,
height: i32,
color: impl Into<Color>
)
fn draw_rectangle_lines_ex(
&mut self,
rec: impl Into<Rectangle>,
line_thick: i32,
color: impl Into<Color>
)[src]
&mut self,
rec: impl Into<Rectangle>,
line_thick: i32,
color: impl Into<Color>
)
fn draw_rectangle_rounded(
&mut self,
rec: impl Into<Rectangle>,
roundness: f32,
segments: i32,
color: impl Into<Color>
)[src]
&mut self,
rec: impl Into<Rectangle>,
roundness: f32,
segments: i32,
color: impl Into<Color>
)
fn draw_rectangle_rounded_lines(
&mut self,
rec: impl Into<Rectangle>,
roundness: f32,
segments: i32,
line_thickness: i32,
color: impl Into<Color>
)[src]
&mut self,
rec: impl Into<Rectangle>,
roundness: f32,
segments: i32,
line_thickness: i32,
color: impl Into<Color>
)
fn draw_triangle(
&mut self,
v1: impl Into<Vector2>,
v2: impl Into<Vector2>,
v3: impl Into<Vector2>,
color: impl Into<Color>
)[src]
&mut self,
v1: impl Into<Vector2>,
v2: impl Into<Vector2>,
v3: impl Into<Vector2>,
color: impl Into<Color>
)
fn draw_triangle_lines(
&mut self,
v1: impl Into<Vector2>,
v2: impl Into<Vector2>,
v3: impl Into<Vector2>,
color: impl Into<Color>
)[src]
&mut self,
v1: impl Into<Vector2>,
v2: impl Into<Vector2>,
v3: impl Into<Vector2>,
color: impl Into<Color>
)
fn draw_triangle_fan(&mut self, points: &[Vector2], color: impl Into<Color>)[src]
fn draw_poly(
&mut self,
center: impl Into<Vector2>,
sides: i32,
radius: f32,
rotation: f32,
color: impl Into<Color>
)[src]
&mut self,
center: impl Into<Vector2>,
sides: i32,
radius: f32,
rotation: f32,
color: impl Into<Color>
)
fn draw_texture(
&mut self,
texture: impl AsRef<Texture2D>,
x: i32,
y: i32,
tint: impl Into<Color>
)[src]
&mut self,
texture: impl AsRef<Texture2D>,
x: i32,
y: i32,
tint: impl Into<Color>
)
fn draw_texture_v(
&mut self,
texture: impl AsRef<Texture2D>,
position: impl Into<Vector2>,
tint: impl Into<Color>
)[src]
&mut self,
texture: impl AsRef<Texture2D>,
position: impl Into<Vector2>,
tint: impl Into<Color>
)
fn draw_texture_ex(
&mut self,
texture: impl AsRef<Texture2D>,
position: impl Into<Vector2>,
rotation: f32,
scale: f32,
tint: impl Into<Color>
)[src]
&mut self,
texture: impl AsRef<Texture2D>,
position: impl Into<Vector2>,
rotation: f32,
scale: f32,
tint: impl Into<Color>
)
fn draw_texture_rec(
&mut self,
texture: impl AsRef<Texture2D>,
source_rec: impl Into<Rectangle>,
position: impl Into<Vector2>,
tint: impl Into<Color>
)[src]
&mut self,
texture: impl AsRef<Texture2D>,
source_rec: impl Into<Rectangle>,
position: impl Into<Vector2>,
tint: impl Into<Color>
)
fn draw_texture_quad(
&mut self,
texture: impl AsRef<Texture2D>,
tiling: impl Into<Vector2>,
offset: impl Into<Vector2>,
quad: impl Into<Rectangle>,
tint: impl Into<Color>
)[src]
&mut self,
texture: impl AsRef<Texture2D>,
tiling: impl Into<Vector2>,
offset: impl Into<Vector2>,
quad: impl Into<Rectangle>,
tint: impl Into<Color>
)
fn draw_texture_pro(
&mut self,
texture: impl AsRef<Texture2D>,
source_rec: impl Into<Rectangle>,
dest_rec: impl Into<Rectangle>,
origin: impl Into<Vector2>,
rotation: f32,
tint: impl Into<Color>
)[src]
&mut self,
texture: impl AsRef<Texture2D>,
source_rec: impl Into<Rectangle>,
dest_rec: impl Into<Rectangle>,
origin: impl Into<Vector2>,
rotation: f32,
tint: impl Into<Color>
)
fn draw_texture_n_patch(
&mut self,
texture: impl AsRef<Texture2D>,
n_patch_info: impl Into<NPatchInfo>,
dest_rec: impl Into<Rectangle>,
origin: impl Into<Vector2>,
rotation: f32,
tint: impl Into<Color>
)[src]
&mut self,
texture: impl AsRef<Texture2D>,
n_patch_info: impl Into<NPatchInfo>,
dest_rec: impl Into<Rectangle>,
origin: impl Into<Vector2>,
rotation: f32,
tint: impl Into<Color>
)
fn draw_fps(&mut self, x: i32, y: i32)[src]
fn draw_text(
&mut self,
text: &str,
x: i32,
y: i32,
font_size: i32,
color: impl Into<Color>
)[src]
&mut self,
text: &str,
x: i32,
y: i32,
font_size: i32,
color: impl Into<Color>
)
fn draw_text_ex(
&mut self,
font: impl AsRef<Font>,
text: &str,
position: impl Into<Vector2>,
font_size: f32,
spacing: f32,
tint: impl Into<Color>
)[src]
&mut self,
font: impl AsRef<Font>,
text: &str,
position: impl Into<Vector2>,
font_size: f32,
spacing: f32,
tint: impl Into<Color>
)
fn draw_text_rec(
&mut self,
font: impl AsRef<Font>,
text: &str,
rec: impl Into<Rectangle>,
font_size: f32,
spacing: f32,
word_wrap: bool,
tint: impl Into<Color>
)[src]
&mut self,
font: impl AsRef<Font>,
text: &str,
rec: impl Into<Rectangle>,
font_size: f32,
spacing: f32,
word_wrap: bool,
tint: impl Into<Color>
)
fn draw_text_rec_ex(
&mut self,
font: impl AsRef<Font>,
text: &str,
rec: impl Into<Rectangle>,
font_size: f32,
spacing: f32,
word_wrap: bool,
tint: impl Into<Color>,
select_start: i32,
select_length: i32,
select_text: impl Into<Color>,
select_back: impl Into<Color>
)[src]
&mut self,
font: impl AsRef<Font>,
text: &str,
rec: impl Into<Rectangle>,
font_size: f32,
spacing: f32,
word_wrap: bool,
tint: impl Into<Color>,
select_start: i32,
select_length: i32,
select_text: impl Into<Color>,
select_back: impl Into<Color>
)
impl<'a, T> RaylibDraw3D for RaylibBlendMode<'a, T>[src]
fn draw_line_3d(
&mut self,
start_pos: impl Into<Vector3>,
end_pos: impl Into<Vector3>,
color: impl Into<Color>
)[src]
&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>
)[src]
&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>
)[src]
&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>
)[src]
&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>
)[src]
&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>
)[src]
&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>
)[src]
&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>
)[src]
&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>
)[src]
&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>
)[src]
&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>
)[src]
&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>
)[src]
&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>)[src]
fn draw_grid(&mut self, slices: i32, spacing: f32)[src]
fn draw_gizmo(&mut self, position: impl Into<Vector3>)[src]
fn draw_model(
&mut self,
model: &Model,
position: impl Into<Vector3>,
scale: f32,
tint: impl Into<Color>
)[src]
&mut self,
model: &Model,
position: impl Into<Vector3>,
scale: f32,
tint: impl Into<Color>
)
fn draw_model_ex(
&mut self,
model: &Model,
position: impl Into<Vector3>,
rotation_axis: impl Into<Vector3>,
rotation_angle: f32,
scale: impl Into<Vector3>,
tint: impl Into<Color>
)[src]
&mut self,
model: &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: &Model,
position: impl Into<Vector3>,
scale: f32,
tint: impl Into<Color>
)[src]
&mut self,
model: &Model,
position: impl Into<Vector3>,
scale: f32,
tint: impl Into<Color>
)
fn draw_model_wires_ex(
&mut self,
model: &Model,
position: impl Into<Vector3>,
rotation_axis: impl Into<Vector3>,
rotation_angle: f32,
scale: impl Into<Vector3>,
tint: impl Into<Color>
)[src]
&mut self,
model: &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>
)[src]
&mut self,
bbox: impl Into<BoundingBox>,
color: impl Into<Color>
)
fn draw_billboard(
&mut self,
camera: Camera3D,
texture: &Texture2D,
center: impl Into<Vector3>,
size: f32,
tint: impl Into<Color>
)[src]
&mut self,
camera: 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>
)[src]
&mut self,
camera: Camera3D,
texture: &Texture2D,
source_rec: impl Into<Rectangle>,
center: impl Into<Vector3>,
size: f32,
tint: impl Into<Color>
)
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for RaylibBlendMode<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T> Send for RaylibBlendMode<'a, T> where
T: Send,
T: Send,
impl<'a, T> Sync for RaylibBlendMode<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Unpin for RaylibBlendMode<'a, T>
impl<'a, T> !UnwindSafe for RaylibBlendMode<'a, T>
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> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<D> RaylibBlendModeExt for D where
D: RaylibDraw, [src]
D: RaylibDraw,
fn begin_blend_mode(&mut self, blend_mode: BlendMode) -> RaylibBlendMode<Self>[src]
impl<D> RaylibMode2DExt for D where
D: RaylibDraw, [src]
D: RaylibDraw,
fn begin_mode_2D(&mut self, camera: impl Into<Camera2D>) -> RaylibMode2D<Self>[src]
impl<D> RaylibMode3DExt for D where
D: RaylibDraw, [src]
D: RaylibDraw,
fn begin_mode_3D(&mut self, camera: impl Into<Camera3D>) -> RaylibMode3D<Self>[src]
impl<D> RaylibScissorModeExt for D where
D: RaylibDraw, [src]
D: RaylibDraw,
fn begin_scissor_mode(
&mut self,
x: i32,
y: i32,
width: i32,
height: i32
) -> RaylibScissorMode<Self>[src]
&mut self,
x: i32,
y: i32,
width: i32,
height: i32
) -> RaylibScissorMode<Self>
impl<D> RaylibShaderModeExt for D where
D: RaylibDraw, [src]
D: RaylibDraw,
fn begin_shader_mode<'a>(
&'a mut self,
shader: &'a Shader
) -> RaylibShaderMode<Self>[src]
&'a mut self,
shader: &'a Shader
) -> RaylibShaderMode<Self>
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>,