Struct allegro_primitives::PrimitivesAddon [−][src]
Implementations
impl PrimitivesAddon
[src]
pub fn init(_: &Core) -> Result<PrimitivesAddon, String>
[src]
pub fn get_version() -> i32
[src]
pub fn draw_prim<T: VertexSource + ?Sized, B: BitmapLike>(
&self,
vtxs: &T,
texture: Option<&B>,
start: u32,
end: u32,
type_: PrimType
) -> u32
[src]
&self,
vtxs: &T,
texture: Option<&B>,
start: u32,
end: u32,
type_: PrimType
) -> u32
pub fn draw_indexed_prim<T: VertexSource + ?Sized, B: BitmapLike>(
&self,
vtxs: &T,
texture: Option<&B>,
indices: &[i32],
start: u32,
end: u32,
type_: PrimType
) -> u32
[src]
&self,
vtxs: &T,
texture: Option<&B>,
indices: &[i32],
start: u32,
end: u32,
type_: PrimType
) -> u32
pub fn draw_line(
&self,
x1: f32,
y1: f32,
x2: f32,
y2: f32,
color: Color,
thickness: f32
)
[src]
&self,
x1: f32,
y1: f32,
x2: f32,
y2: f32,
color: Color,
thickness: f32
)
pub fn draw_triangle(
&self,
x1: f32,
y1: f32,
x2: f32,
y2: f32,
x3: f32,
y3: f32,
color: Color,
thickness: f32
)
[src]
&self,
x1: f32,
y1: f32,
x2: f32,
y2: f32,
x3: f32,
y3: f32,
color: Color,
thickness: f32
)
pub fn draw_rectangle(
&self,
x1: f32,
y1: f32,
x2: f32,
y2: f32,
color: Color,
thickness: f32
)
[src]
&self,
x1: f32,
y1: f32,
x2: f32,
y2: f32,
color: Color,
thickness: f32
)
pub fn draw_rounded_rectangle(
&self,
x1: f32,
y1: f32,
x2: f32,
y2: f32,
rx: f32,
ry: f32,
color: Color,
thickness: f32
)
[src]
&self,
x1: f32,
y1: f32,
x2: f32,
y2: f32,
rx: f32,
ry: f32,
color: Color,
thickness: f32
)
pub fn draw_circle(
&self,
cx: f32,
cy: f32,
r: f32,
color: Color,
thickness: f32
)
[src]
&self,
cx: f32,
cy: f32,
r: f32,
color: Color,
thickness: f32
)
pub fn draw_ellipse(
&self,
cx: f32,
cy: f32,
rx: f32,
ry: f32,
color: Color,
thickness: f32
)
[src]
&self,
cx: f32,
cy: f32,
rx: f32,
ry: f32,
color: Color,
thickness: f32
)
pub fn draw_arc(
&self,
cx: f32,
cy: f32,
r: f32,
start_theta: f32,
delta_theta: f32,
color: Color,
thickness: f32
)
[src]
&self,
cx: f32,
cy: f32,
r: f32,
start_theta: f32,
delta_theta: f32,
color: Color,
thickness: f32
)
pub fn draw_elliptical_arc(
&self,
cx: f32,
cy: f32,
rx: f32,
ry: f32,
start_theta: f32,
delta_theta: f32,
color: Color,
thickness: f32
)
[src]
&self,
cx: f32,
cy: f32,
rx: f32,
ry: f32,
start_theta: f32,
delta_theta: f32,
color: Color,
thickness: f32
)
pub fn draw_pieslice(
&self,
cx: f32,
cy: f32,
r: f32,
start_theta: f32,
delta_theta: f32,
color: Color,
thickness: f32
)
[src]
&self,
cx: f32,
cy: f32,
r: f32,
start_theta: f32,
delta_theta: f32,
color: Color,
thickness: f32
)
pub fn draw_spline<T: Iterator<Item = (f32, f32)>>(
&self,
points: T,
color: Color,
thickness: f32
) -> Result<(), ()>
[src]
&self,
points: T,
color: Color,
thickness: f32
) -> Result<(), ()>
pub fn draw_filled_triangle(
&self,
x1: f32,
y1: f32,
x2: f32,
y2: f32,
x3: f32,
y3: f32,
color: Color
)
[src]
&self,
x1: f32,
y1: f32,
x2: f32,
y2: f32,
x3: f32,
y3: f32,
color: Color
)
pub fn draw_filled_rectangle(
&self,
x1: f32,
y1: f32,
x2: f32,
y2: f32,
color: Color
)
[src]
&self,
x1: f32,
y1: f32,
x2: f32,
y2: f32,
color: Color
)
pub fn draw_filled_ellipse(
&self,
cx: f32,
cy: f32,
rx: f32,
ry: f32,
color: Color
)
[src]
&self,
cx: f32,
cy: f32,
rx: f32,
ry: f32,
color: Color
)
pub fn draw_filled_circle(&self, cx: f32, cy: f32, r: f32, color: Color)
[src]
pub fn draw_filled_pieslice(
&self,
cx: f32,
cy: f32,
r: f32,
start_theta: f32,
delta_theta: f32,
color: Color
)
[src]
&self,
cx: f32,
cy: f32,
r: f32,
start_theta: f32,
delta_theta: f32,
color: Color
)
pub fn draw_filled_rounded_rectangle(
&self,
x1: f32,
y1: f32,
x2: f32,
y2: f32,
rx: f32,
ry: f32,
color: Color
)
[src]
&self,
x1: f32,
y1: f32,
x2: f32,
y2: f32,
rx: f32,
ry: f32,
color: Color
)
pub fn draw_polyline(
&self,
vertices: &[(f32, f32)],
join_style: LineJoinType,
cap_style: LineCapType,
color: Color,
thickness: f32,
miter_limit: f32
)
[src]
&self,
vertices: &[(f32, f32)],
join_style: LineJoinType,
cap_style: LineCapType,
color: Color,
thickness: f32,
miter_limit: f32
)
pub fn draw_polygon(
&self,
vertices: &[(f32, f32)],
join_style: LineJoinType,
color: Color,
thickness: f32,
miter_limit: f32
)
[src]
&self,
vertices: &[(f32, f32)],
join_style: LineJoinType,
color: Color,
thickness: f32,
miter_limit: f32
)
pub fn draw_filled_polygon(&self, vertices: &[(f32, f32)], color: Color)
[src]
pub fn draw_filled_polygon_with_holes(
&self,
vertices: &[(f32, f32)],
holes: &[&[(f32, f32)]],
color: Color
)
[src]
&self,
vertices: &[(f32, f32)],
holes: &[&[(f32, f32)]],
color: Color
)
Auto Trait Implementations
impl RefUnwindSafe for PrimitivesAddon
impl Send for PrimitivesAddon
impl Sync for PrimitivesAddon
impl Unpin for PrimitivesAddon
impl UnwindSafe for PrimitivesAddon
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,
pub 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<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.
pub 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>,