This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate glutin; | |
extern crate trdl; | |
use std::os::raw::c_void; | |
fn make_shape(off_x: f32, off_y: f32, color: (f32, f32, f32)) -> (trdl::FilledPath) { | |
// let a0 = (150f32 + off_x, 150f32 + off_y); | |
// let b0 = (300f32 + off_x, 200f32 + off_y); | |
// let bc1 = (350f32 + off_x, 250f32 + off_y); | |
// let bc2 = (200f32 + off_x, 250f32 + off_y); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate glutin; | |
extern crate trdl; | |
use std::os::raw::c_void; | |
fn make_shape(off_x: f32, off_y: f32) -> (trdl::FilledPath) { | |
let a0 = (150f32 + off_x, 150f32 + off_y); | |
let b0 = (300f32 + off_x, 200f32 + off_y); | |
let bc1 = (350f32 + off_x, 250f32 + off_y); | |
let bc2 = (200f32 + off_x, 250f32 + off_y); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn insert_edge(&mut self, start_index: usize, end_index: usize) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn insert_edge<'a, 'b>(edge_list: &'b mut Vec<HalfEdge<'a>>, start_index: usize, end_index: usize) |