Struct allegro_primitives::PrimitivesAddon [] [src]

pub struct PrimitivesAddon {
    // some fields omitted
}

Methods

impl PrimitivesAddon
[src]

fn init(core: &Core) -> Result<PrimitivesAddonString>

fn get_version() -> i32

fn get_core_mutex(&self) -> Arc<Mutex<()>>

fn draw_prim<T: VertexVector, B: BitmapLike = Bitmap>(&self, vtxs: &T, texture: Option<&B>, start: u32, end: u32, type_: PrimType) -> u32

fn draw_indexed_prim<T: VertexVector, B: BitmapLike = Bitmap>(&self, vtxs: &T, texture: Option<&B>, indices: &[i32], num_vtx: u32, type_: PrimType) -> u32

fn draw_line(&self, x1: f32, y1: f32, x2: f32, y2: f32, color: Color, thickness: f32)

fn draw_triangle(&self, x1: f32, y1: f32, x2: f32, y2: f32, x3: f32, y3: f32, color: Color, thickness: f32)

fn draw_rectangle(&self, x1: f32, y1: f32, x2: f32, y2: f32, color: Color, thickness: f32)

fn draw_rounded_rectangle(&self, x1: f32, y1: f32, x2: f32, y2: f32, rx: f32, ry: f32, color: Color, thickness: f32)

fn draw_circle(&self, cx: f32, cy: f32, r: f32, color: Color, thickness: f32)

fn draw_ellipse(&self, cx: f32, cy: f32, rx: f32, ry: f32, color: Color, thickness: f32)

fn draw_arc(&self, cx: f32, cy: f32, r: f32, start_theta: f32, delta_theta: f32, color: Color, thickness: f32)

fn draw_elliptical_arc(&self, cx: f32, cy: f32, rx: f32, ry: f32, start_theta: f32, delta_theta: f32, color: Color, thickness: f32)

fn draw_pieslice(&self, cx: f32, cy: f32, r: f32, start_theta: f32, delta_theta: f32, color: Color, thickness: f32)

fn draw_spline<T: Iterator<Item=(f32, f32)>>(&self, points: T, color: Color, thickness: f32) -> Result<()()>

fn draw_filled_triangle(&self, x1: f32, y1: f32, x2: f32, y2: f32, x3: f32, y3: f32, color: Color)

fn draw_filled_rectangle(&self, x1: f32, y1: f32, x2: f32, y2: f32, color: Color)

fn draw_filled_ellipse(&self, cx: f32, cy: f32, rx: f32, ry: f32, color: Color)

fn draw_filled_circle(&self, cx: f32, cy: f32, r: f32, color: Color)

fn draw_filled_pieslice(&self, cx: f32, cy: f32, r: f32, start_theta: f32, delta_theta: f32, color: Color)

fn draw_filled_rounded_rectangle(&self, x1: f32, y1: f32, x2: f32, y2: f32, rx: f32, ry: f32, color: Color)