I need to impl a private module so I can have a private get_paths
This commit is contained in:
@@ -153,32 +153,65 @@ impl Poly {
|
||||
|
||||
Poly {
|
||||
vertices: vec![
|
||||
(position.0, position.1 , normalized_depth), // top left
|
||||
(position.0, position.1 + size.1 , normalized_depth), // bottom left
|
||||
(position.0 + size.0, position.1 + size.1, normalized_depth), // bottom right
|
||||
(-0.5 , -0.5 , normalized_depth),
|
||||
(-1.0 , 1.0 , normalized_depth),
|
||||
(-0.25 , 0.0 , normalized_depth),
|
||||
|
||||
(position.0, position.1 , normalized_depth), // top left
|
||||
(position.0 + size.0, position.1 + size.1, normalized_depth), // bottom right
|
||||
(position.0 + size.0, position.1 , normalized_depth), // top right
|
||||
(-0.25 , 0.0 , normalized_depth),
|
||||
(-1.0 , 1.0 , normalized_depth),
|
||||
(0.0 , 0.5 , normalized_depth),
|
||||
|
||||
(position.0 - 0.1, position.1 , normalized_depth), // top left
|
||||
(position.0 - 0.1 + size.0, position.1 + size.1, normalized_depth), // bottom right
|
||||
(position.0 - 0.1 + size.0, position.1 , normalized_depth), // top right
|
||||
(0.25 , 0.0 , normalized_depth),
|
||||
(-1.0 , 1.0 , normalized_depth),
|
||||
(0.0 , 0.5 , normalized_depth),
|
||||
|
||||
(0.5 , -0.5 , normalized_depth),
|
||||
(-1.0 , 1.0 , normalized_depth),
|
||||
(0.25 , 0.0 , normalized_depth),
|
||||
|
||||
(0.25 , -0.5 , normalized_depth),
|
||||
(-1.0 , 1.0 , normalized_depth),
|
||||
(0.5 , -0.5 , normalized_depth),
|
||||
|
||||
(0.25 , -0.5 , normalized_depth),
|
||||
(-1.0 , 1.0 , normalized_depth),
|
||||
(0.0 , -0.1 , normalized_depth),
|
||||
|
||||
(-0.25 , -0.5 , normalized_depth),
|
||||
(-1.0 , 1.0 , normalized_depth),
|
||||
(0.0 , -0.1 , normalized_depth),
|
||||
|
||||
(-0.5 , -0.5 , normalized_depth),
|
||||
(-1.0 , 1.0 , normalized_depth),
|
||||
(-0.25 , -0.5 , normalized_depth),
|
||||
],
|
||||
|
||||
position: position,
|
||||
ti_position: vec![
|
||||
(-0.0, -0.0), // top left
|
||||
(-0.0, 1.0), // bottom left
|
||||
( 1.0, 1.0), // bottom right
|
||||
|
||||
(-0.0, -0.0), // top left
|
||||
( 1.0, 1.0), // bottom right
|
||||
( 1.0, -0.0), // top right
|
||||
|
||||
(-0.0, -0.0), // top left
|
||||
( 1.0, 1.0), // bottom right
|
||||
( 1.0, -0.0), // top right
|
||||
(0.0,0.0),
|
||||
(0.0,0.0),
|
||||
(0.0,0.0),
|
||||
(0.0,0.0),
|
||||
(0.0,0.0),
|
||||
(0.0,0.0),
|
||||
(0.0,0.0),
|
||||
(0.0,0.0),
|
||||
(0.0,0.0),
|
||||
(0.0,0.0),
|
||||
(0.0,0.0),
|
||||
(0.0,0.0),
|
||||
(0.0,0.0),
|
||||
(0.0,0.0),
|
||||
(0.0,0.0),
|
||||
(0.0,0.0),
|
||||
(0.0,0.0),
|
||||
(0.0,0.0),
|
||||
(0.0,0.0),
|
||||
(0.0,0.0),
|
||||
(0.0,0.0),
|
||||
(0.0,0.0),
|
||||
(0.0,0.0),
|
||||
(0.0,0.0),
|
||||
],
|
||||
size: size,
|
||||
color: color,
|
||||
|
||||
Reference in New Issue
Block a user